/* =====================================================================
   AMAR Pediatría · Sistema de diseño
   Paleta y tipografía extraídas del diseño de marca.
   Marca de referencia: Swily Bright Italic + Avenir.
   Fuentes de marca locales primero; Cormorant Garamond + Sen como respaldo.
   Pendientes: archivos completos con licencia web de Swily Bright Italic y Avenir.
   No se distribuyen subconjuntos extraídos de PDF ni fuentes del sistema.
   ===================================================================== */

/* ---------- Tokens ---------- */
@font-face { font-family:"AMAR Swily"; src:url("../assets/fonts/swily/SwilyBright-Italic.otf") format("opentype"); font-style:italic; font-weight:400 700; font-display:swap; }
@font-face { font-family:"AMAR Avenir"; src:local("AvenirLTPro-Roman"), local("Avenir Book"), local("Avenir-Book"); font-style:normal; font-weight:400; font-display:swap; }
@font-face { font-family:"AMAR Avenir"; src:local("AvenirLTPro-Oblique"), local("Avenir Book Oblique"); font-style:italic; font-weight:400; font-display:swap; }
@font-face { font-family:"AMAR Avenir"; src:local("Avenir Heavy"), local("Avenir-Heavy"); font-style:normal; font-weight:600 800; font-display:swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../assets/fonts/cormorant/regular-500.ttf") format("truetype"); font-style: normal; font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../assets/fonts/cormorant/regular-600.ttf") format("truetype"); font-style: normal; font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../assets/fonts/cormorant/italic-500.ttf") format("truetype"); font-style: italic; font-weight: 400 700; font-display: swap; }

@font-face {
  font-family: "Sen";
  src: url("../assets/fonts/sen/sen-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sen";
  src: url("../assets/fonts/sen/sen-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sen";
  src: url("../assets/fonts/sen/sen-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sen";
  src: url("../assets/fonts/sen/sen-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sen";
  src: url("../assets/fonts/sen/sen-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --cream:        #F1EAD8;   /* fondo principal */
  --cream-2:      #F7F2E7;   /* secciones claras / tarjetas */
  --cream-3:      #FBF8F1;   /* casi blanco cálido */
  --paper:        #FFFFFF;

  --ink:          #135F5E;   /* texto principal */
  --ink-soft:     #135F5E;   /* el cuerpo mantiene el verde de marca */
  --ink-faint:    #346B65;   /* metadatos con contraste sobre crema */

  --teal:         #135F5E;   /* color de marca primario (verde petróleo) */
  --teal-dark:    #104C4B;
  --teal-tint:    #DCE7E3;

  --blue:         #A0B1C2;   /* azul empolvado */
  --blue-tint:    #DDE6EE;

  --gold:         #E3BC54;   /* mostaza */
  --gold-soft:    #E3BC54;
  --blush:        #E3B4B4;   /* rosa empolvado */
  --blush-tint:   #F3E0E1;
  --coral:        #D76B53;   /* coral de iconografía */
  --coral-heading:#8F4031;   /* titular grande sobre un bloque rosa */

  --line:         rgba(43, 54, 64, .14);
  --line-soft:    rgba(43, 54, 64, .08);
  --shadow-sm:    0 2px 10px rgba(43, 54, 64, .06);
  --shadow:       0 14px 40px -18px rgba(43, 54, 64, .28);
  --shadow-lg:    0 30px 70px -30px rgba(43, 54, 64, .40);

  /* Tipografía */
  --font-display: "AMAR Swily", "Swily Bright", "Cormorant Garamond", Georgia, serif;
  --font-sans: "AMAR Avenir", "Avenir", "Avenir Next", "Sen", sans-serif;

  /* Medidas */
  --container: 1200px;
  --container-narrow: 880px;
  --radius:    22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --space:     clamp(4rem, 9vw, 8rem);  /* ritmo vertical entre secciones */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html { overflow-x: clip; }

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul { list-style: none; padding: 0; }

::selection { background: var(--teal); color: var(--cream-3); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--ink);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
}

h1, .h1 { font-size: clamp(2.6rem, 1.7rem + 4.2vw, 5.1rem); }
h2, .h2 { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem); }
h3, .h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }

em, .italic { font-style: italic; }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 500; }

p { text-wrap: pretty; }
.lead {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink-soft);
}


/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}
.narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space); }
.section-sm { padding-block: clamp(3rem, 6vw, 5rem); }

.bg-cream2 { background: var(--cream-2); }
.bg-paper  { background: var(--cream-3); }
.bg-teal   { background: var(--teal); color: var(--cream-3); }
.bg-blue   { background: var(--blue-tint); }
.bg-blush  { background: var(--blush-tint); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

.section-head { max-width: 640px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.95em 1.8em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  text-align: center;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--teal); color: var(--cream-3); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-dark); box-shadow: var(--shadow); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d7aa3f; }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream-3); }

.btn-light { border-color: rgba(255,255,255,.7); color: var(--cream-3); }
.btn-light:hover { background: var(--cream-3); color: var(--teal-dark); border-color: var(--cream-3); }

.btn-solid-light { background: var(--cream-3); color: var(--teal-dark); }
.btn-solid-light:hover { background: #fff; }

.btn-sm { padding: 0.7em 1.3em; font-size: 0.84rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal);
  letter-spacing: .01em;
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--teal-dark);
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.55rem 1rem;
}
.announce a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.5); }
.announce strong { font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 234, 216, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 239, 227, .92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

/* Marca / logo */
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-logo {
  width: clamp(118px, 10vw, 148px);
  height: auto;
  object-fit: contain;
}
.site-footer .brand-logo {
  width: clamp(112px, 9vw, 138px);
  opacity: 1;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: 0.18em;
  color: var(--teal);
  padding-left: 0.18em;
}
.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.35em;
  padding-left: 0.3em;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav > a:not(.btn) {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  position: relative;
  padding-block: 0.4rem;
  white-space: nowrap;
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav > a:not(.btn):hover::after,
.nav > a.is-active::after { transform: scaleX(1); }
.nav > a.is-active { color: var(--teal); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { max-width: 36rem; }
.hero h1 { margin: 1.2rem 0 0; }
.hero h1 .accent { color: var(--teal); font-style: italic; }
.hero .lead { margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.hero-figure {
  position: relative;
  border-radius: 220px 220px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  box-shadow: var(--shadow-lg);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-badge {
  position: absolute;
  left: -10px; bottom: 26px;
  background: var(--cream-3);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  line-height: 1.25;
}
.hero-badge b { font-weight: 700; }
.hero-badge .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; flex: none; }

/* ---------- Trust strip ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 3.5rem);
  align-items: center;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.trust svg { color: var(--teal); flex: none; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Tarjeta de pilar (3 columnas color) ---------- */
.pillar {
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line-soft);
}
.pillar h3 { font-style: italic; margin-bottom: 0.7rem; }
.pillar p { font-size: 0.96rem; color: inherit; opacity: .92; margin-bottom: 1.6rem; }
.pillar .btn { margin-top: auto; align-self: flex-start; }
.pillar.gold  { background: var(--gold-soft); color: #4a3d10; }
.pillar.teal  { background: var(--teal); color: var(--cream-2); }
.pillar.teal h3 { color: #fff; }
.pillar.blue  { background: var(--blue); color: #20384a; }

/* ---------- Service overlay tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2.15;
  display: block;
  box-shadow: var(--shadow-sm);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,46,55,.05) 30%, rgba(35,46,55,.62) 100%);
}
.tile .tile-label {
  position: absolute;
  inset: auto 1rem 1.1rem;
  z-index: 2;
  color: #fff;
}
.tile .tile-label h3 {
  color: #fff;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
}
.tile .tile-label span {
  display: inline-block;
  margin-top: .35rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: .03em;
  opacity: .9;
}
.tile:hover img { transform: scale(1.05); }

/* ---------- Split (imagen + texto) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4;
}
.split-media.tall { aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body h2 { margin-bottom: 1.1rem; }
.split-body .lead { margin-bottom: 1.4rem; }

.feature-list { display: grid; gap: 1.1rem; margin: 1.6rem 0 2rem; }
.feature-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.feature-list .ico {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal);
  display: grid; place-items: center; margin-top: 2px;
}
.feature-list b { font-weight: 700; display: block; }
.feature-list span.t { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Servicios detallados ---------- */
.svc-card {
  background: var(--cream-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 1.2rem;
  background: var(--teal-tint); color: var(--teal);
}
.svc-card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.svc-card p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 1.2rem; }
.svc-card .link-arrow { margin-top: auto; }
.svc-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
}

/* ---------- Pasos ---------- */
.steps { counter-reset: step; display: grid; gap: clamp(1.2rem,2.5vw,1.8rem); }
.step { display: flex; gap: 1.3rem; align-items: flex-start; }
.step .num {
  counter-increment: step;
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  display: grid; place-items: center;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Perfil doctora ---------- */
.doc {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.doc.reverse .doc-photo { order: 2; }
.doc-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  max-width: 380px;
}
.doc-photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-body h3 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); }
.doc-role { color: var(--teal); font-weight: 700; font-size: 0.95rem; letter-spacing: normal; text-transform: none; margin: 0.5rem 0 1rem; }
.doc-creds { margin-top: 1.4rem; display: grid; gap: 0.55rem; }
.doc-creds li { display: flex; gap: 0.7rem; font-size: 0.9rem; color: var(--ink-soft); }
.doc-creds li::before { content: "—"; color: var(--teal); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.tag {
  font-size: 0.78rem; font-weight: 600; letter-spacing: .02em;
  padding: 0.4em 0.9em; border-radius: var(--radius-pill);
  background: var(--cream-2); border: 1px solid var(--line); color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
}
.faq-q .pm { flex: none; width: 30px; height: 30px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--teal); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-q .pm::before { width: 15px; height: 1.5px; }
.faq-q .pm::after  { width: 1.5px; height: 15px; }
.faq-item.open .pm::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease);
}
.faq-a-inner { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 70ch; }
.faq-a-inner a { color: var(--teal); border-bottom: 1px solid var(--teal); }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem,2.5vw,1.8rem); }
.quote {
  background: var(--cream-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  display: flex; flex-direction: column;
}
.quote .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 1rem; font-size: 0.95rem; }
.quote p { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.45; color: var(--ink); margin-bottom: 1.3rem; }
.quote .who { margin-top: auto; font-size: 0.84rem; color: var(--ink-soft); }
.quote .who b { color: var(--ink); font-weight: 700; display: block; font-family: var(--font-sans); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--teal);
  color: var(--cream-2);
  border-radius: var(--radius);
  padding: clamp(2.4rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 1rem auto 0; max-width: 46ch; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .watermark {
  position: absolute; left: 50%; bottom: -0.35em; transform: translateX(-50%);
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(6rem, 18vw, 16rem); color: rgba(255,255,255,.06);
  pointer-events: none; line-height: 1; white-space: nowrap;
}

/* ---------- Blog cards ---------- */
.post-card {
  background: var(--cream-3);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-media { aspect-ratio: 3 / 2; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-body { padding: clamp(1.3rem, 2.5vw, 1.7rem); display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.post-body p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 1.2rem; }
.post-meta { margin-top: auto; font-size: 0.8rem; color: var(--ink-faint); display: flex; gap: 0.6rem; align-items: center; }
.post-card.featured { grid-column: span 2; }
.post-card.featured .post-media { aspect-ratio: auto; }

/* ---------- Tienda ---------- */
.product {
  background: var(--cream-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media { aspect-ratio: 1 / 1; background: var(--blue-tint); overflow: hidden; position: relative; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; top: 0.9rem; left: 0.9rem;
  background: var(--cream-3); color: var(--teal);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4em 0.8em; border-radius: var(--radius-pill);
}
.product-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.product-body p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1rem; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink); }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.45rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit; font-size: 0.98rem;
  padding: 0.85em 1.1em;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--cream-3);
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint);
}
.form-note { font-size: 0.8rem; color: var(--ink-faint); }
.form-note a { color: var(--teal); border-bottom: 1px solid var(--teal); }

.newsletter-inline { display: flex; gap: 0.6rem; flex-wrap: wrap; max-width: 460px; }
.newsletter-inline input {
  flex: 1; min-width: 200px;
  padding: 0.85em 1.2em;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--cream-3);
  font-family: inherit; font-size: 0.95rem;
}
.newsletter-inline input:focus { outline: none; border-color: var(--teal); }

/* ---------- Info / contacto cards ---------- */
.info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.3rem 1.4rem;
  background: var(--cream-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.info-card .ico { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; }
.info-card b { display: block; font-size: 0.95rem; }
.info-card a, .info-card span { color: var(--ink-soft); font-size: 0.92rem; }
.info-card a:hover { color: var(--teal); }

/* ---------- Page hero (subpáginas) ---------- */
.page-hero { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.breadcrumb { font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 1.2rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--ink); }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { max-width: 50ch; }

/* ---------- Artículo ---------- */
.article { max-width: 720px; margin-inline: auto; }
.article p { margin-bottom: 1.3rem; color: var(--ink); }
.article h2 { margin: 2.4rem 0 1rem; }
.article h3 { margin: 1.8rem 0 0.8rem; }
.article ul.bullets { margin: 0 0 1.4rem; display: grid; gap: 0.6rem; padding-left: 0; }
.article ul.bullets li { display: flex; gap: 0.7rem; }
.article ul.bullets li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.6rem; border-radius: 50%; background: var(--teal); }
.article blockquote {
  border-left: 3px solid var(--teal);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: 1.8rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink);
}
.article-figure { margin: 2rem 0; border-radius: var(--radius); overflow: hidden; }
.callout {
  background: var(--blue-tint); border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem; margin: 2rem 0; font-size: 0.96rem; color: var(--ink);
}
.callout b { color: var(--teal-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D2D9; padding-top: clamp(3.5rem, 6vw, 5rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3rem;
}
.site-footer .brand-word { color: var(--cream); }
.site-footer .brand-sub { color: #8C97A0; }
.footer-about { margin-top: 1.2rem; font-size: 0.92rem; color: #9AA4AC; max-width: 32ch; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.footer-social a {
  min-height: 40px; padding: .55rem .9rem; border-radius: 999px; font-size: .8rem;
  border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center; color: var(--cream);
  transition: background-color .25s var(--ease), border-color .25s;
}
.footer-social a:hover { background: var(--teal); border-color: var(--teal); }
.footer-col h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--cream); margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: #9AA4AC; }
.footer-col a:hover { color: var(--cream); }
.footer-contact li { font-size: 0.9rem; color: #9AA4AC; margin-bottom: 0.6rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 3px; color: var(--blue); }
.footer-news p { font-size: 0.9rem; color: #9AA4AC; margin-bottom: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.6rem 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.8rem; color: #828D95;
}
.footer-bottom a:hover { color: var(--cream); }
.footer-legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(244, 239, 227, .95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; }

/* ---------- Reveal animation (solo con JS activo; nunca oculta sin JS) ---------- */
.js.reveal-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js.reveal-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilidades ---------- */
.mt-1 { margin-top: 0.6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.maxw-prose { max-width: 60ch; }
.divider { height: 1px; background: var(--line); border: 0; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 96;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    background: var(--cream-2);
    padding: 5.5rem 1.5rem 2.5rem;
    transform: translateY(-.5rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .35s var(--ease), opacity .25s var(--ease), visibility 0s linear .35s;
    overflow-y: auto;
  }
  .nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .nav > a:not(.btn) { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.1rem); font-weight: 500; color: var(--ink); padding-block: 0.5rem; width: auto; }
  .nav > a:not(.btn)::after { display: none; }
  .nav > a.is-active { color: var(--teal); }
  .nav .nav-cta { margin-top: 1.6rem; width: auto; min-width: 220px; font-family: var(--font-sans); font-size: 0.9rem; }
  .brand { position: relative; z-index: 102; }
  .nav-toggle { display: flex; position: relative; z-index: 102; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 460px; margin-inline: auto; order: -1; aspect-ratio: 4/3.6; border-radius: 160px 160px var(--radius) var(--radius); }
  .hero-copy { max-width: none; text-align: center; }
  .hero-actions { justify-content: center; }

  .grid-3, .grid-4, .tiles, .quotes { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { aspect-ratio: 4/3; max-width: 560px; margin-inline: auto; }
  .doc, .doc.reverse { grid-template-columns: 1fr; }
  .doc.reverse .doc-photo { order: 0; }
  .doc-photo { max-width: 320px; }
  .post-card.featured { grid-column: span 1; }

  .mobile-cta { display: flex; }
  body { padding-bottom: 5rem; }
  .site-footer { padding-bottom: 4.5rem; }
}

@media (max-width: 560px) {
  :root { --radius: 18px; }
  .grid-2, .grid-3, .grid-4, .tiles, .quotes, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-figure { border-radius: 120px 120px var(--radius) var(--radius); }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-band .btn { width: auto; }
  .trust { gap: 1rem 1.5rem; }
}

/* Identidad revisada · septiembre 2026 */
.brand-logo { filter: none; width: clamp(124px, 10vw, 144px); }
.brand-symbol { width: 48px; height: 48px; object-fit: contain; margin-bottom: 1.2rem; }
img[src*="assets/icons/"] { filter: none; }
h1, h2, h3 { text-wrap: balance; }
h1 { letter-spacing: -.025em; }
h2 { letter-spacing: -.018em; }
p, a { overflow-wrap: break-word; }
.hero-grid { grid-template-columns: 1.05fr .95fr; }
.hero-figure { aspect-ratio: 1 / 1.04; border-radius: 46% 46% 18px 18px; box-shadow: none; }
.hero-figure img { object-position: center; }
.hero-badge { left: 18px; right: 18px; bottom: 18px; width: fit-content; }
.hero .hero-message { font-size: clamp(1.28rem, 1.1rem + .7vw, 1.7rem); line-height: 1.5; color: var(--ink); max-width: 36ch; margin-top: 1.4rem; }
.hero .hero-detail { color: var(--ink-soft); margin-top: 1rem; max-width: 46ch; }
.hero-locations { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.4rem; }
.hero-locations span { font-size:.8rem; border:1px solid var(--line); padding:.3rem .75rem; border-radius:99px; }
.service-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--line); }
.service-overview a { display:flex; gap:1rem; align-items:flex-start; border-bottom:1px solid var(--line); padding:1.6rem 1.2rem 1.6rem 0; transition:background .2s; }
.service-overview a:hover { background:var(--cream-2); }
.service-overview img { flex:none; width:35px; height:35px; object-fit:contain; }
.service-overview h3 { font-size:1.55rem; line-height:1.18; }
.service-overview p { color:var(--ink-soft); font-size:.9rem; margin-top:.5rem; }
.section-link { display:flex; gap:1.5rem; justify-content:space-between; align-items:flex-end; }
.section-link .section-head { margin-bottom:2.5rem; }
.section-link > a { margin-bottom:2.5rem; flex:none; }
.resource-notice { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; }
.resource-notice img { border-radius:var(--radius); max-height:440px; width:100%; object-fit:cover; }
.site-footer { background:var(--cream-2); color:var(--ink); border-top:1px solid var(--line); }
.footer-about, .footer-col a, .footer-contact li, .footer-news p, .footer-bottom { color:var(--ink-soft); }
.footer-col h4, .footer-contact svg, .footer-social a { color:var(--ink); }
.footer-col a:hover, .footer-bottom a:hover { color:var(--teal); }
.footer-social a { border-color:var(--line); }
.footer-social a:hover { color:white; }
.footer-bottom { border-color:var(--line); }
.footer-col a.btn { color:var(--cream-3); }
.skip-link { position:fixed; top:.5rem; left:1rem; z-index:200; background:var(--ink); color:white; padding:.75rem 1rem; transform:translateY(-180%); }
.skip-link:focus { transform:none; }
.faq-a { visibility:hidden; }
.faq-item.open .faq-a { visibility:visible; }
html:not(.js) .faq-a { max-height:none; visibility:visible; }
html:not(.js) .faq-q .pm { display:none; }
.article { padding-inline:1.25rem; }
[hidden] { display:none !important; }
@media (max-width:1100px) and (min-width:881px) { .nav { gap:.8rem; } .nav > a:not(.btn) { font-size:.76rem; letter-spacing:0; } .header-inner { gap:1rem; } .nav-cta { padding-inline:1.1em; } }
@media (max-width:880px) { .hero-grid { grid-template-columns:1fr; } .hero-figure { order:0; width:100%; max-width:520px; aspect-ratio:4/3; } .hero-copy { text-align:left; } .hero-actions { justify-content:flex-start; } .hero h1 { max-width:14ch; } .service-overview { grid-template-columns:repeat(2,minmax(0,1fr)); } .resource-notice { grid-template-columns:1fr; gap:2rem; } .nav { overscroll-behavior:contain; } }
@media (max-width:560px) { .service-overview { grid-template-columns:1fr; } .section-link { display:block; } .section-link .section-head { margin-bottom:1.3rem; } .section-link > a { display:inline-flex; } .hero-badge { font-size:.72rem; padding:.75rem; } .hero h1 { font-size:clamp(2.7rem, 12vw, 3.6rem); } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } .js.reveal-ready .reveal { opacity:1; transform:none; } }
/* En móvil, la fotografía acompaña al titular antes del texto de presentación. */
@media (max-width:560px) {
  .hero-grid { gap:0; }
  .hero-copy { display:contents; }
  .hero h1 { margin-top:1rem; max-width:none; }
  .hero-figure { grid-row:3; margin-top:1.5rem; aspect-ratio:4/3.6; }
  .hero .hero-message { margin-top:1.5rem; }
  .hero .trust { margin-bottom:1rem; }
}

/* Revisión de marca · septiembre 2026. */
h1, h2, h3, .display { font-style:italic; }
h1, h2 { color:var(--teal); }
h1 em, h2 em { color:inherit; }
h3 { color:var(--teal); }
.site-footer h4 { font-family:var(--font-sans); font-style:normal; }
.cta-band { background:var(--blush); color:var(--teal); }
.cta-band h2 { color:var(--coral-heading); }
.cta-band p { color:var(--teal); background:var(--cream-3); padding:1rem 1.3rem; border-radius:var(--radius-sm); }
.cta-band .watermark { color:rgba(19,95,94,.06); }
.cta-band .btn-solid-light { background:var(--teal); color:var(--cream-3); }
.cta-band .btn-light { color:var(--teal); border-color:var(--teal); background:var(--cream-3); }
.cta-band .btn-light:hover { color:var(--cream-3); background:var(--teal); }
@media(prefers-reduced-motion:no-preference) {
 .reveal-ready .reveal { transition:opacity .75s var(--ease), transform .75s var(--ease); }
 .grid > .reveal:nth-child(2), .home-step:nth-child(2), .home-appointment:nth-child(2) { transition-delay:.1s; }
 .grid > .reveal:nth-child(3), .home-step:nth-child(3) { transition-delay:.18s; }
}

@media(max-width:600px) {
 .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:2.2rem 1.2rem; }
 .footer-brand,.footer-news { grid-column:1 / -1; }
 .footer-col { min-width:0; }
 .footer-col a { overflow-wrap:anywhere; }
}

/* Iconos del footer: objetivos cómodos y nombres accesibles en los enlaces. */
.footer-social a { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border-radius:50%; }
.footer-social svg { display:block; flex:none; }
