/* ==========================================================================
   La Tintorería Universal 2026
   Claro, sereno y limpio. Un solo acento: teal suave de la marca.
   Radios: botones en píldora, tarjetas e imágenes 16px, campos 10px.
   ========================================================================== */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-latin-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fcfdfd;
  --bg-alt: #f3f7f7;
  --surface: #ffffff;
  --ink: #1b2528;
  --ink-2: #56646a;
  --ink-3: #65737a;
  --line: #e4eaeb;

  /* Teal suave: #347c84 cumple AA como texto y con texto blanco encima. */
  --teal: #347c84;
  --teal-hover: #2b6b72;
  --teal-50: #f2f8f8;
  --teal-100: #e5f1f2;
  --teal-200: #cde4e6;
  --teal-400: #8dbfc3;

  --shadow: 0 1px 2px rgb(27 37 40 / 0.04), 0 24px 48px -32px rgb(27 60 66 / 0.18);

  --r-card: 16px;
  --r-field: 10px;
  --r-pill: 999px;

  --font: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 450; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; font-weight: 600; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 767px) { .wrap { padding-inline: 16px; } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-field);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal-200); color: var(--ink); }
html { scrollbar-color: var(--teal-200) var(--bg); accent-color: var(--teal); }
input, textarea { caret-color: var(--teal); }

.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--ink-2); max-width: 46ch; line-height: 1.6; }

/* --- Botones ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--r-pill);
  font: 500 1rem/1 var(--font);
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.btn-primary { background: var(--teal); color: #ffffff; }
.btn-primary:hover { background: var(--teal-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--teal-400); }
.btn-ghost:hover .icon { transform: none; }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--teal-400); }
.btn-light:hover .icon { transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 500; color: var(--teal); text-decoration: none;
}
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --- Cabecera ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.site-logo img { height: 40px; width: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 0.95rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav .current-menu-item > a { color: var(--teal); }
.nav-phone-mobile { display: none !important; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
}
.header-phone .icon { color: var(--teal); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }

@media (max-width: 1080px) {
  .header-phone span { display: none; }
}
@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .site-logo img { height: 34px; }
  .nav-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 16px 24px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
  .primary-nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav a { padding: 14px 12px; font-size: 1.1rem; border-radius: var(--r-field); }
  .nav-phone-mobile {
    display: inline-flex !important; align-items: center; gap: 10px;
    margin-top: 12px; padding: 14px 12px; font-weight: 600; text-decoration: none; color: var(--teal);
  }
}
@media (max-width: 420px) {
  .header-cta .btn-sm { padding: 0 14px; font-size: 0.88rem; }
}

/* --- Secciones ----------------------------------------------------------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-tight-top { padding-top: clamp(24px, 4vw, 48px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--ink-2); font-size: 1.1rem; max-width: 60ch; }
.section-title { max-width: 18ch; margin-bottom: clamp(36px, 5vw, 56px); }

/* --- Hero portada -------------------------------------------------------- */
.home-hero { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.home-hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: min(calc(100dvh - var(--header-h) - 64px), 760px);
}
.home-hero-copy h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); max-width: 20ch; padding-bottom: 4px; }
.home-hero-copy .lead { margin: 1.4rem 0 2rem; }
.home-hero-media {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 4 / 5; max-height: min(calc(100dvh - var(--header-h) - 96px), 640px);
  justify-self: end; width: 100%;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}
.hero-video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .home-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .home-hero-media { aspect-ratio: 4 / 3; max-height: none; justify-self: stretch; }
}

/* --- Declaración ------------------------------------------------------- */
.statement { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.statement p {
  margin: 0; max-width: 34ch;
  font-size: clamp(1.6rem, 3.1vw, 2.6rem); line-height: 1.25; letter-spacing: -0.025em;
  font-weight: 400; color: var(--ink-3); text-wrap: balance;
}
.statement strong { font-weight: 500; color: var(--ink); white-space: nowrap; }

/* --- Bento de servicios -------------------------------------------------- */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: minmax(280px, auto) minmax(220px, auto) auto;
}
.tile {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; color: inherit;
}
.tile h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 500; margin-bottom: 0.35em; }
.tile p { margin: 0; color: var(--ink-2); max-width: 42ch; }
.tile-a { grid-column: span 7; grid-row: span 2; min-height: 520px; }
.tile-b { grid-column: span 5; }
.tile-c { grid-column: span 5; }
.tile-d { grid-column: span 12; }
.tile-split {
  display: grid; grid-template-columns: 1fr 1.5fr; padding: 0;
  background: var(--surface); border: 1px solid var(--line);
}
.tile-split .tile-body { padding: clamp(24px, 3vw, 36px); align-self: end; }
.tile-split img { order: 2; width: 100%; height: 300px; object-fit: cover; object-position: center 40%; }

.tile-photo { color: #f4f8f8; }
.tile-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tile-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(16 34 37 / 0) 50%, rgb(16 34 37 / 0.62) 100%);
}
.tile-photo .tile-body { position: relative; z-index: 1; }
.tile-photo p { color: rgb(244 248 248 / 0.86); }
.tile-photo:hover img { transform: scale(1.02); }
.tile-tint { background: var(--teal-50); }
.tile-tint { border: 1px solid var(--teal-100); }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .tile-a { grid-column: span 2; grid-row: auto; min-height: 420px; }
  .tile-b, .tile-c { grid-column: span 1; min-height: 280px; }
  .tile-d { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile-a, .tile-b, .tile-c, .tile-d { grid-column: auto; }
  .tile-a { min-height: 360px; }
  .tile-split { grid-template-columns: 1fr; }
  .tile-split img { height: 220px; order: -1; }
}

/* --- Proceso (portada) --------------------------------------------------- */
.process-preview { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.process-preview-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; }
.process-preview-media img { width: 100%; height: 100%; object-fit: cover; }
.process-preview-copy > p { color: var(--ink-2); font-size: 1.1rem; }
.step-list { list-style: none; counter-reset: step; margin: 32px 0 36px; padding: 0; }
.step-list li {
  counter-increment: step;
  display: grid; grid-template-columns: 48px 1fr; align-items: baseline;
  padding: 14px 0; font-size: 1.06rem;
}
.step-list li + li { border-top: 1px solid var(--line); }
.step-list li::before {
  content: counter(step);
  font-weight: 500; color: var(--teal);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) {
  .process-preview { grid-template-columns: 1fr; }
  .process-preview-media { aspect-ratio: 4 / 3; }
}

/* --- Mosaico ------------------------------------------------------------- */
.mosaic {
  display: grid; gap: 16px;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 260px 260px;
}
.mosaic figure { margin: 0; border-radius: var(--r-card); overflow: hidden; background: var(--bg-alt); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.m-1 { grid-row: span 2; }
.m-2 { grid-row: span 2; }
.m-3 { grid-column: 3; }
.m-4 { grid-column: 3; }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px; }
  .m-1 { grid-column: span 2; grid-row: auto; }
  .m-2 { grid-row: span 2; grid-column: 1; }
  .m-3, .m-4 { grid-column: 2; }
}

/* --- Zona de servicio ---------------------------------------------------- */
.zone { border-block: 1px solid var(--line); }
.zone-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-block: 32px;
}
.zone-inner p { margin: 0; font-size: 1.15rem; flex: 1 1 360px; }

/* --- CTA final ----------------------------------------------------------- */
.section-cta { padding-block: clamp(48px, 7vw, 96px); }
.cta-panel {
  background: var(--teal-50); color: var(--ink);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-card);
  padding: clamp(36px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
  position: relative; overflow: hidden;
}
.cta-panel h2 { max-width: 16ch; }
.cta-panel p { color: var(--ink-2); margin: 0; max-width: 46ch; }
.cta-panel .btn-ghost { background: var(--surface); }
@media (max-width: 860px) { .cta-panel { grid-template-columns: 1fr; align-items: start; } }

/* --- Cabecera de páginas interiores ------------------------------------- */
.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 64px); }
.page-head h1 { max-width: 16ch; }
.page-head .lead { margin-top: 1.2rem; max-width: 52ch; }
.page-head .actions { margin-top: 2rem; }
.page-head.has-media .page-head-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-head-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .page-head.has-media .page-head-grid { grid-template-columns: 1fr; } }

/* --- Fibras (2x2, sin tarjetas) --------------------------------------- */
.fiber-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 80px); }
.fiber { padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--line); }
.fiber h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 500; margin-bottom: 0.4em; }
.fiber p { color: var(--ink-2); margin: 0; max-width: 40ch; }
@media (max-width: 700px) { .fiber-grid { grid-template-columns: 1fr; } }

/* --- Split imagen/texto ------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy p { color: var(--ink-2); font-size: 1.08rem; max-width: 52ch; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
}

/* --- Banda a sangre ------------------------------------------------------ */
.band { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; background: var(--bg-alt); color: var(--ink); }
.band-media { position: absolute; inset: 0 0 0 45%; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-alt) 0%, rgb(242 246 246 / 0) 40%); }
.band-inner { position: relative; width: 100%; padding-block: 72px; }
.band-copy { max-width: 480px; }
.band-copy p { color: var(--ink-2); font-size: 1.1rem; margin-bottom: 1.8rem; }
@media (max-width: 860px) {
  .band { flex-direction: column; align-items: stretch; min-height: 0; }
  .band-media { position: relative; inset: auto; height: 280px; }
  .band-media::after { background: linear-gradient(180deg, rgb(242 246 246 / 0) 55%, var(--bg-alt) 100%); }
  .band-inner { padding-block: 32px 56px; }
}

/* --- Timeline (proceso) ------------------------------------------------- */
.process { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.process-aside-sticky { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 16px; }
.process-aside-sticky img { border-radius: var(--r-card); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.process-aside-sticky img:first-child { aspect-ratio: 4 / 5; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-step { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding-bottom: 56px; position: relative; }
.timeline-step:not(:last-child)::before {
  content: ""; position: absolute; left: 27px; top: 64px; bottom: 8px; width: 1px; background: var(--line);
}
.timeline-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-pill);
  border: 1px solid var(--teal-200); background: var(--surface);
  font-weight: 500; font-size: 1.3rem; color: var(--teal);
}
.timeline-body h2 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); margin-top: 12px; }
.timeline-body p:last-child { color: var(--ink-2); font-size: 1.05rem; max-width: 56ch; margin: 0; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; }
  .process-aside { display: none; }
  .timeline-step { grid-template-columns: 56px 1fr; gap: 16px; padding-bottom: 40px; }
  .timeline-num { width: 48px; height: 48px; font-size: 1.2rem; }
  .timeline-step:not(:last-child)::before { left: 23px; top: 56px; }
}

/* --- Nosotros ------------------------------------------------------------ */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.story h2 { max-width: 14ch; }
.story-body p { font-size: 1.12rem; color: var(--ink-2); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

.facility-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.facility { border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.facility img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.facility-body { padding: 24px 28px 28px; }
.facility-body p { color: var(--ink-2); margin: 0; }
.facility-lg { grid-row: span 2; }
.facility-lg img { aspect-ratio: auto; flex: 1; min-height: 280px; }
.facility-tint { background: var(--teal-50); border-color: var(--teal-100); justify-content: flex-end; }
@media (max-width: 860px) {
  .facility-grid { grid-template-columns: 1fr; }
  .facility-lg { grid-row: auto; }
  .facility-lg img { aspect-ratio: 16 / 10; flex: none; }
}

.values { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(24px, 4vw, 64px); }
.value { grid-column: span 6; padding: 28px 0; border-top: 1px solid var(--line); }
.value:first-child { grid-column: span 12; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.value:first-child h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; }
.value p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) {
  .value, .value:first-child { grid-column: span 12; grid-template-columns: 1fr; gap: 8px; }
}

/* --- Contacto ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 4vw, 48px); }
.form-card h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 1.2em; }
.contact-form { display: grid; gap: 20px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field label span { color: var(--teal); }
.field small { color: var(--ink-3); font-size: 0.85rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-field);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--teal-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #c2412d; }
.form-legal { font-size: 0.85rem; color: var(--ink-3); margin: 0; }
.form-legal a, .consent a { color: var(--teal); }
.consent {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  font-size: 0.92rem; color: var(--ink-2); cursor: pointer;
}
.consent input {
  width: 20px; height: 20px; margin: 2px 0 0; cursor: pointer;
  accent-color: var(--teal);
}
.consent .req { color: var(--teal); }
.consent input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-field); margin-bottom: 24px; }
.notice p { margin: 0; }
.notice .icon { margin-top: 3px; }
.notice-success { background: var(--teal-50); color: var(--ink); }
.notice-success .icon { color: var(--teal); }
.notice-error { background: color-mix(in srgb, #c2412d 14%, var(--surface)); color: var(--ink); }
.notice-error .icon { color: #c2412d; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 0 0 24px; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .icon { width: 26px; height: 26px; color: var(--teal); margin-top: 2px; }
.contact-list span { display: block; font-size: 0.85rem; color: var(--ink-3); margin-bottom: 2px; }
.contact-list a, .contact-list p { font-weight: 500; font-size: 1.08rem; margin: 0; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--teal); }
.zone-card { background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--r-card); padding: 28px; }
.zone-card p { color: var(--ink-2); margin: 0; }

/* --- Prosa (legales, entradas) ------------------------------------------ */
.prose { max-width: 72ch; font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose a { color: var(--teal); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.post-cover { margin: 0 0 40px; border-radius: var(--r-card); overflow: hidden; }
.post-back { margin-top: 48px; }
.post-list { display: grid; gap: 0; max-width: 820px; }
.post-item { padding: 28px 0; border-top: 1px solid var(--line); }
.post-item h2 { font-size: 1.6rem; }
.post-item h2 a { text-decoration: none; }
.post-date { color: var(--ink-3); font-size: 0.9rem; margin-bottom: 6px; }
.empty { max-width: 520px; padding: 48px 0; }
.empty p { color: var(--ink-2); }
.notfound { min-height: 60dvh; display: flex; align-items: center; }

/* --- Pie ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; }
.footer-brand p { color: var(--ink-2); max-width: 32ch; margin-top: 16px; }
.footer-title { font-family: var(--font); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--ink-2); }
.footer-contact .icon { color: var(--teal); margin-top: 4px; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-bottom {
  margin-top: 56px; padding-block: 24px 32px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--ink-3);
}
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom a { color: var(--ink-3); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }

/* --- Cookies ------------------------------------------------------------- */
.cookie-card {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  width: min(420px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 22px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cookie-card.is-visible { opacity: 1; transform: none; }
.cookie-title { font-weight: 500; margin-bottom: 6px; }
.cookie-text { font-size: 0.92rem; color: var(--ink-2); }
.cookie-text a { color: var(--teal); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn-cookie {
  min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); cursor: pointer;
  font: 500 0.9rem/1 var(--font); border: 1px solid transparent; background: none; color: var(--ink);
}
.btn-cookie-text { margin-right: auto; padding-inline: 4px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.btn-cookie-outline { border-color: var(--line); }
.btn-cookie-outline:hover { border-color: var(--ink); }
.btn-cookie-solid { background: var(--teal); color: #ffffff; }
.btn-cookie-solid:hover { background: var(--teal-hover); }
.cookie-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cookie-row small { display: block; color: var(--ink-2); font-size: 0.85rem; }
.cookie-row input { width: 20px; height: 20px; accent-color: var(--teal); margin-top: 2px; }
#tu-cookie-settings .cookie-actions { margin-top: 12px; }

/* --- Movimiento ----------------------------------------------------------
   Un solo momento: al cargar, el texto del hero aparece y la imagen se
   destapa de abajo arriba, como una alfombra que sale limpia del tren.
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .home-hero-copy > *, .page-head-copy > * {
    animation: rise .9s var(--ease) both;
  }
  .home-hero-copy > :nth-child(2), .page-head-copy > :nth-child(2) { animation-delay: .08s; }
  .home-hero-copy > :nth-child(3), .page-head-copy > :nth-child(3) { animation-delay: .16s; }
  .home-hero-media, .page-head-media {
    animation: unveil 1.3s var(--ease) .1s both;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes unveil {
  from { clip-path: inset(100% 0 0 0 round var(--r-card)); }
  to { clip-path: inset(0 0 0 0 round var(--r-card)); }
}

/* --- Cómo funciona (portada, 3 pasos para tintorerías y lavanderías) --- */
.how-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px);
}
.how-step { padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.how-num {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: var(--r-pill); border: 1px solid var(--teal-200); background: var(--surface);
  font-weight: 500; font-size: 1.15rem; color: var(--teal);
}
.how-step h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); font-weight: 500; margin-bottom: 0.4em; }
.how-step p { color: var(--ink-2); margin: 0; max-width: 40ch; }
@media (max-width: 767px) {
  .how-steps { grid-template-columns: 1fr; gap: 0; }
  .how-step { padding-bottom: 24px; }
}
