/* Self-hosted Google Fonts — auto-generated */

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic-latin-ext-6NUG8FyLNQOQZAnv9ZwNjucMAkn8xNi7emAe9nioTfd_uw.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic-latin-6NUG8FyLNQOQZAnv9ZwNjucMAkn8xNi7emAe9nimTfc.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/fraunces-normal-latin-ext-6NUI8FyLNQOQZAnv9bYEvCeYdG9Ea92uemAO_0ikVfM.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/fraunces-normal-latin-6NUI8FyLNQOQZAnv9bYEvCeYdG9Ea92uemAO8Uik.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/inter-normal-latin-ext-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/inter-normal-latin-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-normal-latin-ext-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-normal-latin-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-normal-latin-ext-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-normal-latin-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-normal-latin-ext-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-normal-latin-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* 7. Nav
   ----------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem var(--container-pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  transition: background .4s var(--ease-out), backdrop-filter .4s var(--ease-out), padding .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(245,240,230,0.86);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
  padding-block: 0.85rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.nav-logo {
  display: block;
  height: clamp(38px, 4vw, 52px);
  width: auto;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.nav-logo:hover { opacity: 0.78; }
.nav.is-scrolled .nav-logo {
  height: clamp(34px, 3.4vw, 44px);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.4rem);
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.4rem;
  transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right .4s var(--ease-out);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.7rem 1.3rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

/* Dropdown menu inside the top nav */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 0.32rem;
}
.nav-dropdown-chevron {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
}
.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -8px);
  margin-top: 0.5rem;
  min-width: 360px;
  background: rgba(251, 248, 241, 0.97);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s var(--ease-out);
  box-shadow: 0 30px 60px -30px rgba(26,26,26,0.22), 0 0 0 1px var(--line-soft);
  z-index: 200;
  pointer-events: none;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
/* Invisible bridge between trigger and menu so the dropdown stays open on hover */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.6rem;
}

.nav-dropdown-menu a {
  padding: 0.65rem 0.85rem !important;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: background .25s var(--ease-out), color .25s var(--ease-out), padding-left .25s var(--ease-out);
  line-height: 1.3;
  border-bottom: 0;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  background: var(--bg-2);
  color: var(--accent);
  padding-left: 1.1rem !important;
}
.nav-dropdown-menu-section {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 0.75rem 0.85rem 0.35rem;
  margin-top: 0.3rem;
  border-top: 1px solid var(--line-soft);
}
.nav-dropdown-menu-section:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0.35rem;
}

/* Indented sub-items inside a dropdown (e.g. children of Regenerativa) */
.nav-dropdown-menu a.nav-dropdown-sub {
  padding-left: 1.7rem !important;
  position: relative;
  color: var(--ink-mute);
}
.nav-dropdown-menu a.nav-dropdown-sub::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.nav-dropdown-menu a.nav-dropdown-sub:hover,
.nav-dropdown-menu a.nav-dropdown-sub:focus {
  padding-left: 2rem !important;
  color: var(--accent);
}

/* Mobile (sidebar): collapsible accordion — main sections show on burger open,
   each one expands its subsections only when tapped (handled in main.js). */
@media (max-width: 959px) {
  .nav-dropdown { width: 100%; flex-direction: column; align-items: stretch; }
  .nav-dropdown::after { display: none; }

  /* Trigger row: full-width tap target with chevron right-aligned */
  .nav-dropdown-trigger {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.55rem 0 !important;
    gap: 0.6rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-dropdown-trigger::after { display: none !important; }

  /* Chevron visible on mobile to signal expandability */
  .nav-dropdown-chevron {
    display: block;
    width: 13px;
    height: 13px;
    opacity: 0.55;
    transition: transform .35s var(--ease-out), opacity .3s var(--ease-out);
  }
  .nav-dropdown.is-open .nav-dropdown-chevron {
    transform: rotate(180deg);
    opacity: 1;
  }

  /* Submenu collapsed by default */
  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    min-width: 0;
    gap: 0;
    border-left: 1px solid var(--line);
    margin: 0 0 0 0.85rem;
    padding: 0 0 0 0.9rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height .4s var(--ease-out), opacity .3s var(--ease-out), visibility .4s var(--ease-out), margin-top .35s var(--ease-out), margin-bottom .35s var(--ease-out), padding-top .35s var(--ease-out), padding-bottom .35s var(--ease-out);
  }

  /* Expanded state */
  .nav-dropdown.is-open .nav-dropdown-menu {
    max-height: 720px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin-top: 0.5rem;
    margin-bottom: 0.6rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }

  .nav-dropdown-menu a {
    font-family: var(--sans) !important;
    font-size: 0.92rem !important;
    padding: 0.5rem 0 !important;
    color: var(--ink-mute);
    line-height: 1.3;
  }
  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a:focus {
    padding-left: 0 !important;
    color: var(--accent);
  }
  .nav-dropdown-menu-section {
    padding: 0.6rem 0 0.25rem;
    border-top: 0;
    margin-top: 0.4rem;
  }
  /* JS-injected overview link — points to the section landing page so users
     can still reach it from the mobile accordion (where the trigger only
     expands the submenu). */
  .nav-dropdown-menu .nav-dropdown-overview {
    color: var(--accent) !important;
    font-family: var(--serif) !important;
    font-size: 0.95rem !important;
    font-style: italic;
    padding: 0.4rem 0 0.55rem !important;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 0.25rem;
  }
}
/* Desktop: keep the overview hidden — the trigger anchor already navigates there */
@media (min-width: 960px) {
  .nav-dropdown-menu .nav-dropdown-overview { display: none; }
}

.nav-burger { display: none; width: 36px; height: 36px; position: relative; }
.nav-burger span {
  position: absolute; left: 8px; right: 8px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out), top .35s var(--ease-out);
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 22px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { top: 17px; transform: rotate(-45deg); }



/* 15. Footer
   ----------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--accent);
  color: var(--bg-2);
  padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
}
.footer a { color: var(--bg-2); transition: color .3s var(--ease-out); }
.footer a:hover { color: var(--bg); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245,240,230,0.18);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; }
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}
.footer-brand em { color: var(--bg); font-style: italic; }
.footer-logo {
  display: block;
  height: clamp(72px, 9vw, 110px);
  width: auto;
  margin-bottom: 1.2rem;
}
.footer-small {
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.7;
}
.footer-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.7rem;
}
.footer p { font-size: 0.9rem; line-height: 1.55; }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.78rem;
  opacity: 0.5;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Síguenos en redes — footer (icono crema sobre verde, hereda color de .footer a) */
.footer-social-label { margin-top: 1.6rem; }
.footer-social {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.footer-social svg {
  display: block;
  width: 26px;
  height: 26px;
}



/* 16. Responsive nav (mobile)
   ----------------------------------------------------------- */
@media (max-width: 959px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(100%, 340px);
    height: 100vh;
    height: 100dvh;
    background: var(--paper);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.2rem;
    padding: 5rem 1.8rem 2rem;
    transform: translateX(100%);
    transition: transform .5s var(--ease-out);
    box-shadow: -20px 0 40px -20px rgba(26,26,26,0.2);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-links > a,
  .nav-links .nav-dropdown-trigger {
    font-size: 1.15rem;
    font-family: var(--serif);
    font-weight: 400;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links > a {
    padding: 0.85rem 0;
  }
  .nav-links > a::after { display: none; }
  .nav.is-menu-open .nav-links { transform: none; }
  .nav-burger { display: block; z-index: 1100; }

  /* CTA inside the open mobile sidebar — inline, right after the last
     dropdown (Equipo). Injected from main.js so the original header CTA
     also stays present inside the menu (some users open the menu first). */
  /* Mobile: the header CTA stays visible to the right of the logo, next
     to the burger. Compact padding so it fits with the burger on narrow
     viewports. Explicit grid-column so the layout is: logo · spacer ·
     CTA · burger. */
  .nav {
    grid-template-columns: auto 1fr auto auto;
    gap: 0.6rem;
  }
  .nav-brand { grid-column: 1; }
  .nav-cta {
    grid-column: 3;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
  }
  .nav-burger { grid-column: 4; }
  .nav-mobile-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
    padding: 0.95rem 1.4rem;
    background: var(--ink);
    color: var(--bg) !important;
    border-radius: var(--radius-sm);
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border-bottom: 0 !important;
    transition: background .3s var(--ease-out), transform .3s var(--ease-out);
  }
  .nav-mobile-cta:hover,
  .nav-mobile-cta:focus-visible {
    background: var(--accent);
    transform: translateY(-1px);
  }
}
/* Hide the injected mobile CTA on desktop — the header keeps its own */
@media (min-width: 960px) {
  .nav-mobile-cta { display: none !important; }
}

@media (max-width: 539px) {
  .hero-scroll { display: none; }
  .doctor-name {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
    text-wrap: balance;
  }
  .footer-bottom { font-size: 0.72rem; }
}



/* Google Reviews — marco del widget propio (.rv-*) */
.section-reviews {
  background: linear-gradient(180deg, var(--bg) 0%, var(--paper) 60%, var(--bg) 100%);
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.reviews-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-width: 0; /* evita que el contenido ancho desborde y "coma" la otra columna */
}
.reviews-eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.reviews-title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0.3rem;
  font-variation-settings: "opsz" 36, "SOFT" 60;
}
.reviews-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}
.reviews-frame {
  background: var(--np-bg);
  border: 1px solid var(--np-line);
  border-radius: 4px 20px 20px 20px;
  box-shadow: none;
  padding: 0.4rem;
  min-height: 300px;
  overflow: hidden;
  position: relative;
  container-type: inline-size; /* base para decidir nº de tarjetas por ancho real */
}
/* Framing de EmbedSocial (temporal, solo Dra. Diago hasta migrar su feed) */
.reviews-frame .embedsocial-hashtag {
  display: block;
  width: 100%;
  min-height: 280px;
}

/* ---- Widget de reseñas propio (.rv-*) — sustituye a EmbedSocial ---- */
.reviews-frame .rv-widget {
  --rv-per: 1; /* nº de tarjetas visibles; lo suben las container queries de abajo */
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 280px;
  padding: clamp(0.6rem, 1.5vw, 1rem);
}
/* El mismo carrusel se adapta al ancho disponible en todas las páginas. */
@container (min-width: 440px) { .reviews-frame .rv-widget { --rv-per: 2; } }
@container (min-width: 680px) { .reviews-frame .rv-widget { --rv-per: 3; } }
.rv-widget.rv-loading {
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 0.85rem;
}
.rv-widget.rv-loading::after {
  content: "Cargando reseñas…";
}

/* Cabecera: nota media + enlace a Google */
.rv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}
.rv-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rv-score-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  font-variation-settings: "opsz" 28, "SOFT" 60;
}
.rv-score-max {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  align-self: flex-end;
  margin-bottom: 0.18rem;
}
.rv-stars {
  display: inline-flex;
  gap: 1px;
}
.rv-star {
  width: 16px;
  height: 16px;
  fill: var(--line);
}
.rv-star.is-on {
  fill: #f5a623;
}
/* Estrella fraccionaria: base gris + capa dorada recortada por ancho (--width inline). */
.rv-star-partial {
  position: relative;
  display: inline-flex;
  width: 16px;
  height: 16px;
}
.rv-star-partial .rv-star {
  position: absolute;
  inset: 0;
}
.rv-star-fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.rv-star-fill .rv-star { fill: #f5a623; }
.rv-google-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.rv-google-link:hover { opacity: 0.65; }

/* Cabecera híbrida: un bloque por proveedor (Google + Doctoralia), cada uno con
   su logo, nota, estrellas y enlace a su ficha. */
.rv-providers {
  display: flex;
  align-items: center;
  gap: 1rem 2.2rem;
  flex-wrap: wrap;
}
.rv-provider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.rv-provider:hover { opacity: 0.7; }
.rv-provider-logo { display: inline-flex; flex: 0 0 auto; }
.rv-provider-logo svg,
.rv-provider-logo img { width: 26px; height: 26px; display: block; }
.rv-provider-data { display: flex; flex-direction: column; gap: 2px; }
.rv-provider-name {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1;
}
.rv-provider-top { display: flex; align-items: center; gap: 0.4rem; }
.rv-provider-score {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  font-variation-settings: "opsz" 28, "SOFT" 60;
}
.rv-provider-count {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}
/* Logo de Doctoralia (img teal): esquinas suavizadas para casar con la "G". */
.rv-dmark { border-radius: 5px; }

/* Carrusel */
.rv-viewport {
  overflow: hidden;
  flex: 1;
}
.rv-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .rv-track { transition: none; }
}
.rv-card {
  flex: 0 0 calc(100% / var(--rv-per, 1));
  max-width: calc(100% / var(--rv-per, 1));
  box-sizing: border-box;
  display: flex;
  padding: 7px; /* hueco entre tarjetas + aire para la sombra */
}
.rv-card-inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.08);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}
.rv-card-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.rv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.rv-avatar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
}
.rv-meta { flex: 1; min-width: 0; }
.rv-author {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rv-when {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--ink-mute);
  margin: 0;
}
.rv-gmark { width: 20px; height: 20px; flex: 0 0 auto; }
.rv-text {
  font-family: var(--serif);
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rv-card .rv-stars .rv-star { width: 15px; height: 15px; }
/* Controles */
.rv-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-soft);
}
/* Sin desplazamiento posible (caben todas): ocultar flechas y puntos */
.rv-widget.rv-static .rv-controls { display: none; }
.rv-nav {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.rv-nav:hover { background: var(--bg-2); border-color: var(--accent); }
.rv-nav svg { width: 16px; height: 16px; }
.rv-dots { display: flex; flex-wrap: wrap; justify-content: center; min-width: 0; gap: 6px; }
.rv-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.rv-dot.is-on { background: var(--accent); transform: scale(1.25); }

.rv-fallback {
  text-align: center;
  margin: auto;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-mute);
}
.rv-fallback p { margin: 0 0 0.6rem; }



/* ===================== Test MIDAS (autoevaluación migraña) ===================== */
.section-midas {
  background: linear-gradient(180deg, var(--bg) 0%, var(--paper) 50%, var(--bg) 100%);
}
.midas {
  max-width: 560px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px -34px rgba(26, 26, 26, 0.4);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.midas-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.midas-progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.midas-step {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.midas-intro {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin: 0 0 0.4rem;
}
.midas-q {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 1.6rem;
  font-variation-settings: "opsz" 36, "SOFT" 60;
}
.midas-q-note {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-style: normal;
  color: var(--ink-mute);
  margin-top: 0.4rem;
}
.midas-field {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: auto;
}
/* Opciones 0–3 (Epworth) */
.midas-opts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: auto;
}
.midas-opt {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.midas-opt:hover { border-color: var(--accent); background: var(--bg-2); }
.midas-opt.is-sel { border-color: var(--accent); background: var(--accent); color: var(--paper); }
.midas-input {
  width: 5.5rem;
  font-family: var(--serif);
  font-size: 2rem;
  text-align: center;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.4rem;
  -moz-appearance: textfield;
}
.midas-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.midas-input::-webkit-outer-spin-button,
.midas-input::-webkit-inner-spin-button { margin: 0; }
.midas-unit {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-mute);
}
.midas-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.midas-actions .btn { flex: 0 0 auto; }
.midas-back[disabled] { visibility: hidden; }

/* Resultado */
.midas-result { text-align: center; margin: auto 0; }
.midas-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 40, "SOFT" 40;
}
.midas-result-label {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.midas-score {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-mute);
  margin: 0 0 1rem;
}
.midas-score strong { color: var(--accent); }
.midas-result-text {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 auto 1.6rem;
  max-width: 42ch;
}
.midas-actions-result { justify-content: center; flex-wrap: wrap; }
.midas-tip {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin: 1.2rem 0 0;
}
.midas-disclaimer {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-mute);
  text-align: center;
  max-width: 560px;
  margin: 1.1rem auto 0;
  line-height: 1.5;
}
.midas-noscript { font-family: var(--sans); color: var(--ink-mute); text-align: center; }



/* =============================================================
   Cookie consent — modal + persistent pill
   ============================================================= */

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  /* Mobile: extra top padding so the panel never reaches the top of the
     viewport (was getting clipped behind the Safari URL bar). Bottom keeps
     the original 1rem so the panel still sits anchored low on the screen.
     env(safe-area-inset-top) protects against notches. */
  padding: max(3.5rem, calc(env(safe-area-inset-top, 0px) + 1rem)) 1rem 1rem;
}
.cc-modal.is-open { display: flex; }

.cc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.42);
  backdrop-filter: blur(4px) saturate(120%);
  -webkit-backdrop-filter: blur(4px) saturate(120%);
  animation: ccFade 0.4s var(--ease-out);
}
@keyframes ccFade { from { opacity: 0; } to { opacity: 1; } }

.cc-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: 0 40px 80px -30px rgba(26,26,26,0.32);
  animation: ccRise 0.5s var(--ease-out);
  /* svh = small-viewport height (iOS URL bar visible) so the panel never
     extends behind the URL bar. Subtract enough for both the top and bottom
     paddings of .cc-modal on mobile. */
  max-height: calc(100svh - 4.5rem);
  overflow-y: auto;
}
@keyframes ccRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@media (min-width: 720px) {
  .cc-modal { align-items: center; padding: 2rem; }
  .cc-panel { max-height: calc(100svh - 4rem); }
}

.cc-panel-head { margin-bottom: 1.4rem; }
.cc-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.cc-panel h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.cc-lede {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.cc-lede a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  transition: color .3s var(--ease-out);
}
.cc-lede a:hover { color: var(--ink); border-color: var(--ink); }

.cc-categories {
  margin: 0 0 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.cc-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.cc-cat-text { flex: 1; }
.cc-cat-label {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.25rem;
  font-variation-settings: "opsz" 36, "SOFT" 60;
}
.cc-cat-locked {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: 0.5rem;
  vertical-align: middle;
}
.cc-cat-desc {
  display: block;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-mute);
}

.cc-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 4px;
}
.cc-switch input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  z-index: 2;
}
.cc-switch.is-locked input { cursor: not-allowed; }
.cc-switch-track {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  border-radius: 999px;
  transition: background .3s var(--ease-out);
}
.cc-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform .3s var(--ease-out);
}
.cc-switch input:checked + .cc-switch-track {
  background: var(--accent);
}
.cc-switch input:checked + .cc-switch-track::after {
  transform: translateX(20px);
}
.cc-switch.is-locked input + .cc-switch-track {
  background: var(--accent-2);
  opacity: 0.65;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}
.cc-btn {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.cc-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cc-btn-ghost { color: var(--ink-soft); }
.cc-btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.cc-btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

/* Persistent round button bottom-left (cookie icon only) */
.cc-pill {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 8500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-family: var(--sans);
  font-size: 0;
  line-height: 0;
  color: var(--accent);
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 30px -15px rgba(26,26,26,0.2);
  transition: transform .3s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.cc-pill:hover,
.cc-pill:focus-visible {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.cc-pill svg { display: block; width: 22px; height: 22px; }
@supports (padding: env(safe-area-inset-bottom)) {
  .cc-pill {
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: calc(1rem + env(safe-area-inset-left));
  }
}

body.cc-modal-open { overflow: hidden; }

/* Consent gate for external embeds and widgets.
   The blocker overlays the host until consent is granted. */
.cc-embed-blocker {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border-radius: inherit;
}
.cc-embed-inner { max-width: 40ch; }
.cc-embed-text {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.cc-embed-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

/* =============================================================
   Floating WhatsApp button — mobile-only sticky pill, mirrors the
   cookies pill on the opposite side. Black icon (the user wanted
   the WhatsApp glyph but in black, not the brand green) so it
   sits as a discreet utility rather than a brand promotion.
   ============================================================= */
.wa-pill {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 8500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 10px 30px -15px rgba(26,26,26,0.2);
  transition: transform .3s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.wa-pill:hover,
.wa-pill:focus-visible {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.wa-pill svg { display: block; width: 22px; height: 22px; }
@supports (padding: env(safe-area-inset-bottom)) {
  .wa-pill {
    bottom: calc(1rem + env(safe-area-inset-bottom));
    right: calc(1rem + env(safe-area-inset-right));
  }
}
/* Desktop: hide. The user has the full header CTA there; the floating
   pill is for thumb-reach on phones only. */
@media (min-width: 720px) {
  .wa-pill { display: none; }
}



.np-container {
  width: min(100%, 1360px);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}

.np-section {
  position: relative;
  padding-block: clamp(5rem, 9vw, 8.5rem);
  background: var(--np-bg);
}

/* Alternancia editorial de fondos entre bloques de contenido */
.neuro-propuesta section.np-section:nth-of-type(odd) {
  background: var(--np-bg);
}

.neuro-propuesta section.np-section:nth-of-type(even) {
  background: var(--np-paper);
}

.np-seo-heading,
.np-kicker {
  margin: 0 0 clamp(1.25rem, 2.6vw, 2rem);
  color: var(--np-accent);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 550;
  letter-spacing: 0.155em;
  line-height: 1.45;
  text-transform: uppercase;
}

.np-display,
.np-hero-name {
  margin: 0;
  color: var(--np-ink);
  font-family: var(--serif);
  font-weight: 360;
  letter-spacing: -0.048em;
  line-height: 0.96;
  font-variation-settings: "opsz" 144, "SOFT" 48;
  text-wrap: balance;
}

.np-display {
  max-width: 15ch;
  font-size: clamp(3rem, 5.7vw, 6rem);
}

.np-display-medium {
  max-width: 17ch;
  font-size: clamp(2.7rem, 4.5vw, 4.8rem);
}

.np-display-center {
  margin-inline: auto;
}

.np-section-lead {
  max-width: 56ch;
  margin: 1.5rem 0 0;
  color: var(--np-muted);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.65;
}

.np-lead-center {
  margin-inline: auto;
}

.np-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.np-button-primary {
  background: var(--np-ink);
  color: var(--np-bg);
}

.np-button-primary:hover {
  background: var(--np-accent);
  transform: translateY(-2px);
}

.np-button:active {
  transform: translateY(1px);
}

.np-text-link,
.np-inline-link {
  position: relative;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 0.55rem;
  color: var(--np-ink);
  font-size: 0.9rem;
  font-weight: 550;
}

.np-text-link::after,
.np-inline-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.3rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.np-text-link:hover::after,
.np-inline-link:hover::after {
  transform: scaleX(0.4);
}

/* Hero */
.np-hero {
  position: sticky;
  top: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(510px, 48%) minmax(0, 52%);
  min-height: min(100dvh, 880px);
  padding-top: 76px;
  border-bottom: 1px solid var(--np-line);
  background: var(--np-bg);
}

/* El contenido posterior se desliza por encima del hero fijo, como en la
   alternativa editorial de Neurología. */
.np-hero ~ * {
  position: relative;
  z-index: 1;
}

.np-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(3rem, 6vw, 6.5rem) clamp(2rem, 5vw, 6rem);
}

.np-seo-heading-hero {
  margin-bottom: clamp(1.5rem, 3vh, 2.4rem);
}

.np-hero-name {
  max-width: 9.8ch;
  font-size: clamp(4rem, 6.4vw, 7.3rem);
}

.np-hero-name em {
  color: var(--np-accent);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.np-hero-lead {
  max-width: 42ch;
  margin: clamp(1.6rem, 3.3vh, 2.6rem) 0 0;
  color: #343a35;
  font-size: clamp(1.04rem, 1.3vw, 1.22rem);
  line-height: 1.62;
}

.np-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.5rem;
  margin-top: clamp(1.8rem, 3.5vh, 2.8rem);
}

.np-hero-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #d9cec0;
}

.np-hero-media picture {
  position: absolute;
  inset: 0;
  display: block;
}

.np-hero-media picture,
.np-hero-media img {
  width: 100%;
  height: 100%;
}

.np-hero-media img {
  object-fit: cover;
  object-position: center 30%;
}

.neuro-propuesta .np-hero-media-clinic img {
  object-position: 30% center;
}

.np-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(26, 29, 26, 0) 65%, rgba(26, 29, 26, 0.48));
}

.np-hero-media figcaption {
  position: absolute;
  z-index: 1;
  right: clamp(1.25rem, 3vw, 2.5rem);
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  left: clamp(1.25rem, 3vw, 2.5rem);
  color: #fffaf0;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.np-breadcrumb {
  border-bottom: 1px solid var(--np-line);
  background: var(--np-paper-light);
}

.np-breadcrumb p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding-block: 0.85rem;
  color: var(--np-muted);
  font-size: 0.76rem;
}

.np-breadcrumb a:hover {
  color: var(--np-accent);
}

/* Autoridad */
.np-authority {
  border-block: 1px solid var(--np-line);
  background: var(--np-paper);
}

.np-authority-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}

.np-authority-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px 18px 4px 18px;
  background: #d8cfc2;
}

.np-authority-media picture,
.np-authority-media img {
  width: 100%;
  height: 100%;
}

.np-authority-media img {
  object-fit: cover;
  object-position: center 47%;
}

.np-authority-copy .np-display {
  max-width: 15ch;
}

.np-body-copy {
  max-width: 61ch;
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 0;
  color: #343a35;
  font-size: 1.02rem;
  line-height: 1.7;
}

.np-credentials {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  border-top: 1px solid var(--np-line);
}

.np-credentials > div {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--np-line);
}

.np-credentials dt {
  color: var(--np-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.np-credentials dd {
  color: var(--np-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.np-authority-copy .np-inline-link {
  margin-top: 1.5rem;
}

/* Síntomas */
.np-symptoms-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.np-symptoms header {
  position: sticky;
  top: 112px;
}

.np-symptom-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--np-line);
  list-style: none;
}

.np-symptom-list li {
  min-height: 142px;
  padding: 1.25rem 1.4rem 1.4rem 0;
  border-bottom: 1px solid var(--np-line);
}

.np-symptom-list li:nth-child(even) {
  padding-right: 0;
  padding-left: 1.4rem;
  border-left: 1px solid var(--np-line);
}

.np-symptom-list span {
  color: var(--np-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.np-symptom-list p {
  max-width: 27ch;
  margin: 1rem 0 0;
  color: var(--np-ink);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.58rem);
  font-weight: 380;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.np-symptoms-link {
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

/* Método */
.np-method {
  border-block: 1px solid var(--np-line);
  background:
    radial-gradient(circle at 9% 17%, rgba(48, 70, 54, 0.06), transparent 28%),
    var(--np-paper);
}

.np-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.np-method header {
  position: sticky;
  top: 112px;
}

.np-method .np-display {
  max-width: 13ch;
}

.np-method-intro {
  margin: 0;
  color: #343a35;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.7;
}

.np-method-pull {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--np-accent);
  color: var(--np-accent);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.35vw, 2.2rem);
  font-style: italic;
  line-height: 1.28;
  font-variation-settings: "opsz" 64, "SOFT" 85;
}

.np-method-list {
  margin: clamp(2.3rem, 4vw, 3.4rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--np-line);
  list-style: none;
}

.np-method-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--np-line);
}

.np-method-list span {
  color: var(--np-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.np-method-list p {
  margin: 0;
  color: var(--np-muted);
  font-size: 0.91rem;
  line-height: 1.58;
}

.np-method-list h3 {
  margin: 0 0 0.45rem;
  color: var(--np-ink);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  font-weight: 390;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

/* Primera visita y segunda opinión */
.np-centered-head {
  max-width: 1060px;
  margin-inline: auto;
  text-align: center;
}

.np-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(2rem, 4vw, 4rem);
  margin: clamp(3.2rem, 6vw, 5.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.np-process > li {
  position: relative;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--np-ink);
}

.np-process-num,
.np-process-label {
  color: var(--np-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.np-process-label {
  margin: 1rem 0 0;
}

@media (min-width: 960px) {
  .np-process-label {
    display: inline-block;
    margin: 0 0 0 0.65rem;
    vertical-align: baseline;
  }
}

.np-process h3 {
  margin: 0.8rem 0 0;
  color: var(--np-ink);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 380;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.np-process h3 + p {
  margin: 1rem 0 0;
  color: var(--np-muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

.np-process-media {
  position: relative;
  max-width: 1120px;
  aspect-ratio: 16 / 7;
  margin: clamp(3rem, 6vw, 5.5rem) auto 0;
  overflow: hidden;
  border-radius: 4px 18px 18px 18px;
  background: #d8cfc2;
}

.np-process-media picture,
.np-process-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.np-process-media img {
  object-fit: cover;
  object-position: center;
}

.np-process-media figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 3rem 1.25rem 1rem;
  color: var(--np-paper-light);
  background: linear-gradient(180deg, transparent, rgba(26, 29, 26, 0.72));
  font-size: 0.7rem;
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.np-outcome {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 1040px;
  margin: clamp(3rem, 6vw, 5.5rem) auto 0;
  padding: clamp(1.7rem, 3vw, 2.6rem);
  border: 1px solid var(--np-line);
  border-radius: 4px 18px 18px 18px;
  background: var(--np-paper-light);
}

.np-outcome-label {
  margin: 0;
  color: var(--np-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.np-outcome p:last-child {
  max-width: 42ch;
  margin: 0;
  color: var(--np-ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  font-weight: 380;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.np-second-opinion {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  max-width: 1180px;
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  overflow: hidden;
  border: 1px solid var(--np-line);
  border-radius: 20px 4px 20px 20px;
  background: var(--np-bg);
}

.np-second-opinion figure {
  min-height: 580px;
  overflow: hidden;
}

.np-second-opinion picture,
.np-second-opinion img {
  width: 100%;
  height: 100%;
}

.np-second-opinion img {
  object-fit: cover;
  object-position: center 62%;
}

.np-second-opinion > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 5rem);
}

.np-second-opinion h3 {
  max-width: 12ch;
  margin: 0;
  color: var(--np-ink);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4.25rem);
  font-weight: 360;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.np-second-opinion h3 + p {
  margin-top: 1.8rem;
}

.np-second-opinion p:not(.np-kicker) {
  max-width: 54ch;
  margin-bottom: 0;
  color: #3e433f;
  line-height: 1.65;
}

.np-second-opinion p + p {
  margin-top: 0.9rem;
}

.np-second-opinion .np-inline-link {
  margin-top: 1.4rem;
}

/* Trayecto específico de la landing de Castellón */
.np-route {
  border-block: 1px solid var(--np-line);
  background: var(--np-paper);
}

.np-route-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.np-route-layout > * {
  min-width: 0;
}

.np-route .np-display {
  max-width: 12ch;
}

.np-route-facts {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--np-line);
  list-style: none;
}

.np-route-facts li {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1.28fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--np-line);
}

.np-route-facts span {
  color: var(--np-muted);
  font-size: 0.72rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.np-route-facts strong {
  color: var(--np-ink);
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.45;
}

.np-route-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 2rem;
}

.np-route-map {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--np-line);
  border-radius: 18px 18px 4px 18px;
  background: var(--np-paper-light);
  aspect-ratio: auto;
}

.np-route-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

/* Reseñas */
.np-reviews {
  border-block: 1px solid var(--np-line);
  background: var(--np-paper-light);
}

.np-reviews-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 0 clamp(3rem, 7vw, 8rem);
  align-items: end;
}

.np-reviews-head .np-seo-heading {
  grid-column: 1 / -1;
}

.np-reviews-head .np-section-lead {
  margin-bottom: 0.35rem;
}

.np-reviews-grid {
  margin-top: clamp(2.8rem, 5vw, 4.5rem);
}

/* Patologías */
.np-services-head {
  max-width: 980px;
}

.np-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2.5rem, 5vw, 5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--np-line);
}

.np-service-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 0 1rem;
  align-items: start;
  min-width: 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--np-line);
  color: inherit;
  transition: padding 0.28s var(--ease-out);
}

.np-service-row:hover {
  padding-left: 0.45rem;
}

.np-service-num {
  padding-top: 0.25rem;
  color: var(--np-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.np-service-copy {
  display: block;
  min-width: 0;
}

.np-service-row h3 {
  margin: 0;
  color: var(--np-ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.8vw, 1.72rem);
  font-weight: 390;
  letter-spacing: -0.025em;
  line-height: 1.18;
  transition: color 0.25s var(--ease-out);
}

.np-service-row:hover h3 {
  color: var(--np-accent);
}

.np-service-row p {
  max-width: 56ch;
  margin: 0.55rem 0 0;
  color: var(--np-muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.np-service-arrow {
  padding-top: 0.25rem;
  color: var(--np-accent);
  transition: transform 0.25s var(--ease-out);
}

.np-service-row:hover .np-service-arrow {
  transform: translateX(4px);
}

/* Neurosonología */
.np-doppler {
  border-top: 1px solid var(--np-line);
  background: var(--np-paper);
}

.np-doppler-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.np-doppler-list {
  border-top: 1px solid var(--np-line);
}

.np-doppler-list a {
  position: relative;
  display: block;
  padding: 1.5rem 3rem 1.5rem 0;
  border-bottom: 1px solid var(--np-line);
}

.np-doppler-list .np-kicker {
  margin-bottom: 0.65rem;
}

.np-doppler-list h3 {
  margin: 0;
  color: var(--np-ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.25vw, 2.1rem);
  font-weight: 380;
  letter-spacing: -0.025em;
}

.np-doppler-list p {
  max-width: 54ch;
  margin: 0.7rem 0 0;
  color: var(--np-muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.np-doppler-list a > span:last-child {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  color: var(--np-accent);
  transform: translateY(-50%);
  transition: transform 0.25s var(--ease-out);
}

.np-doppler-list a:hover > span:last-child {
  transform: translate(4px, -50%);
}

.np-areas {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-block: 1px solid var(--np-line);
  background: var(--np-bg);
}

.np-areas .np-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(2rem, 5vw, 5rem);
  align-items: baseline;
}

.np-areas p {
  margin: 0;
  color: var(--np-muted);
  font-size: 0.76rem;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.np-areas ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-areas a {
  padding-bottom: 0.16rem;
  border-bottom: 1px solid currentColor;
  color: var(--np-ink);
  font-size: 0.88rem;
  transition: color 0.25s var(--ease-out);
}

.np-areas a:hover {
  color: var(--np-accent);
}

/* FAQ */
.np-faq-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.np-faq header {
  position: sticky;
  top: 112px;
}

.np-faq-list {
  border-top: 1px solid var(--np-line);
}

.np-faq-list details {
  border-bottom: 1px solid var(--np-line);
}

.np-faq-list summary {
  position: relative;
  padding: 1.25rem 2.6rem 1.25rem 0;
  color: var(--np-ink);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.6vw, 1.36rem);
  font-weight: 390;
  line-height: 1.32;
  list-style: none;
  cursor: pointer;
}

.np-faq-list summary::-webkit-details-marker {
  display: none;
}

.np-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 1.18rem;
  right: 0.25rem;
  color: var(--np-accent);
  font-family: var(--sans);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.25s var(--ease-out);
}

.np-faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.np-faq-list details > div {
  padding: 0 2.6rem 1.45rem 0;
}

.np-faq-list details p {
  max-width: 64ch;
  margin: 0;
  color: var(--np-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.np-footer {
  border-top: 0;
}

/* Contenido visible por defecto; main.js activa el estado animado al arrancar. */
.neuro-propuesta .reveal {
  opacity: 1;
  transform: none;
}

.is-ready .neuro-propuesta .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}

@media (max-width: 1180px) {
  .np-hero {
    grid-template-columns: minmax(470px, 46%) minmax(0, 54%);
  }

  .np-hero-copy {
    padding-inline: clamp(2rem, 4vw, 4rem);
  }

  .np-hero-name {
    font-size: clamp(3.8rem, 6.1vw, 6rem);
  }

}

@media (max-width: 959px) {
  .neuro-propuesta .nav {
    min-height: 70px;
  }

  .np-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 70px;
  }

  .np-hero-copy {
    padding: clamp(4rem, 10vw, 6rem) var(--container-pad) clamp(3rem, 8vw, 4.5rem);
  }

  .np-hero-name {
    max-width: 10.5ch;
    font-size: clamp(3.7rem, 11vw, 6.2rem);
  }

  .np-hero-lead {
    max-width: 48ch;
  }

  .np-hero-media {
    height: min(72dvh, 720px);
  }

  .neuro-propuesta .np-hero-media-clinic {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .np-hero-media img {
    object-position: 30% center;
  }

  .np-authority-grid,
  .np-symptoms-layout,
  .np-method-grid,
  .np-route-layout,
  .np-reviews-head,
  .np-doppler-layout,
  .np-faq-layout {
    grid-template-columns: 1fr;
  }

  .np-authority-grid,
  .np-symptoms-layout,
  .np-method-grid,
  .np-route-layout,
  .np-doppler-layout,
  .np-faq-layout {
    gap: 2.8rem;
  }

  .np-authority-media {
    width: min(100%, 520px);
    aspect-ratio: 4 / 5;
  }

  .np-authority-media img {
    object-position: center 45%;
  }

  .np-symptoms header,
  .np-method header,
  .np-faq header {
    position: static;
  }

  .np-process {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .np-process > li {
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr);
    gap: 0 1rem;
  }

  .np-process-num {
    grid-row: 1 / 4;
  }

  .np-process-label,
  .np-process h3,
  .np-process h3 + p {
    grid-column: 2;
  }

  .np-process-label {
    margin-top: 0;
  }

  .np-second-opinion {
    grid-template-columns: 1fr;
  }

  .np-second-opinion figure {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .np-second-opinion img {
    object-position: center 68%;
  }

  .np-reviews-head {
    gap: 1.6rem;
  }

  .np-reviews-head .np-section-lead {
    margin-top: 0;
  }

  .np-service-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .np-section {
    padding-block: 4.5rem;
  }

  .np-seo-heading,
  .np-kicker {
    font-size: 0.72rem;
  }

  .np-display {
    font-size: clamp(2.65rem, 11vw, 4rem);
  }

  .np-display-medium {
    font-size: clamp(2.5rem, 10.2vw, 3.65rem);
  }

  .np-hero {
    position: relative;
    display: block;
    height: 100svh;
    min-height: 100svh;
    padding-top: 70px;
    overflow: hidden;
  }

  .np-hero-copy {
    position: relative;
    z-index: 2;
    justify-content: center;
    min-height: calc(100svh - 70px);
    padding: 3.7rem var(--container-pad) 2.4rem;
    background: transparent;
  }

  .np-hero-name {
    color: #111713;
    font-size: clamp(3.5rem, 15vw, 5.3rem);
  }

  .np-hero-name em {
    color: #23382a;
  }

  .np-seo-heading-hero {
    color: #1b2f22;
    font-weight: 650;
  }

  .np-hero-lead {
    color: #111713;
    font-size: 1rem;
    font-weight: 500;
  }

  .np-hero .np-text-link {
    color: #111713;
    font-weight: 650;
  }

  .np-hero-media {
    position: fixed;
    inset: 70px 0 0;
    z-index: 0;
    height: auto;
  }

  .neuro-propuesta .np-hero-media-clinic {
    height: auto;
    aspect-ratio: auto;
  }

  .np-hero-media img {
    object-position: 30% center;
  }

  .np-hero-media::after {
    background:
      radial-gradient(ellipse 95% 58% at 50% 50%,
        rgba(245, 240, 230, 0.62) 0%,
        rgba(245, 240, 230, 0.32) 60%,
        rgba(245, 240, 230, 0.06) 100%),
      linear-gradient(180deg,
        rgba(245, 240, 230, 0.20) 0%,
        rgba(245, 240, 230, 0.05) 35%,
        rgba(245, 240, 230, 0.05) 70%,
        rgba(245, 240, 230, 0.26) 100%);
  }

  .np-hero-media figcaption {
    display: none;
  }

  .np-breadcrumb p span:last-child,
  .np-breadcrumb p span:nth-last-child(2) {
    display: none;
  }

  .np-authority-media {
    width: calc(100% + var(--container-pad));
    margin-right: calc(-1 * var(--container-pad));
    border-radius: 16px 0 0 16px;
  }

  .np-symptom-list {
    grid-template-columns: 1fr;
  }

  .np-symptom-list li,
  .np-symptom-list li:nth-child(even) {
    min-height: 0;
    padding: 1rem 0;
    border-left: 0;
  }

  .np-symptom-list p {
    max-width: 31ch;
    margin-top: 0.65rem;
  }

  .np-outcome {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .np-second-opinion {
    width: calc(100% + var(--container-pad));
    margin-right: calc(-1 * var(--container-pad));
    border-right: 0;
    border-radius: 18px 0 0 18px;
  }

  .np-second-opinion figure {
    aspect-ratio: 4 / 3;
  }

  .np-second-opinion > div {
    padding: 2.5rem 1.25rem 2.8rem;
  }

  .np-second-opinion h3 {
    font-size: clamp(2.4rem, 11vw, 3.45rem);
  }

  .np-process-media {
    width: calc(100% + var(--container-pad));
    aspect-ratio: 4 / 3;
    margin-right: calc(-1 * var(--container-pad));
    border-radius: 18px 0 0 18px;
  }

  .np-route-facts li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .np-route-actions,
  .np-route-actions .np-button,
  .np-route-actions .np-inline-link {
    width: 100%;
  }

  .np-route-actions .np-inline-link {
    justify-content: center;
  }

  .np-route-map,
  .np-route-map iframe {
    min-height: 420px;
  }

  .np-service-row {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0 0.7rem;
  }

  .np-service-row:hover {
    padding-left: 0;
  }

  .np-service-row p {
    font-size: 0.85rem;
  }

  .np-areas .np-container,
  .np-areas ul {
    display: block;
  }

  .np-areas ul {
    margin-top: 1.2rem;
  }

  .np-areas li + li {
    margin-top: 0.65rem;
  }

  .np-faq-list summary {
    font-size: 1.1rem;
  }

}

@media (max-width: 520px) {
  .np-actions {
    display: grid;
    width: 100%;
  }

  .np-button,
  .np-text-link {
    width: 100%;
    justify-content: center;
  }

  .np-text-link::after {
    right: 15%;
    left: 15%;
  }

  .np-credentials > div,
  .np-method-list li {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .np-process > li {
    grid-template-columns: 2.3rem minmax(0, 1fr);
    gap: 0 0.75rem;
  }

  .np-service-num {
    font-size: 0.66rem;
  }
}

@media (max-width: 520px) and (max-height: 650px) {
  .np-hero-copy {
    padding-top: 2rem;
  }

  .np-seo-heading-hero {
    margin-bottom: 1rem;
  }

  .np-hero-lead {
    margin-top: 1rem;
  }

  .np-actions {
    margin-top: 1.2rem;
  }
}


/* Sistema único Alternativa. Componentes editoriales, sin la antigua capa visual. */
:root {
  --bg:#f5f0e6; --bg-2:#ece5d9; --bg-3:#e1d6c1; --paper:#fbf8f1;
  --ink:#1a1d1a; --ink-soft:#343a35; --ink-mute:#60645e; --ink-fade:#60645e;
  --accent:#304636; --accent-2:#5a7160; --line:rgba(26,29,26,.15); --line-soft:rgba(26,29,26,.08);
  --sans:"Inter",system-ui,sans-serif; --serif:"Fraunces",Georgia,serif;
  --ease-out:cubic-bezier(.16,1,.3,1); --ease-in:cubic-bezier(.7,0,.84,0); --ease-soft:cubic-bezier(.25,.46,.45,.94);
  --container-pad:clamp(1.25rem,4vw,4rem); --section-pad-y:clamp(4.5rem,8vw,8rem);
  --radius-sm:5px; --radius:8px; --radius-lg:12px;
  --np-bg:var(--bg); --np-paper:var(--bg-2); --np-paper-light:var(--paper); --np-ink:var(--ink);
  --np-muted:var(--ink-mute); --np-accent:var(--accent); --np-accent-soft:#dce3d8; --np-line:var(--line);
}
*,*::before,*::after {box-sizing:border-box;margin:0}
html {-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:100px;overflow-x:clip}
body {font-family:var(--sans);font-size:16px;line-height:1.65;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;isolation:isolate;overflow-x:clip}
img,svg,video {display:block;max-width:100%} img {height:auto} picture {display:block}
button,input,select,textarea {font:inherit;color:inherit} button {cursor:pointer;border:0;background:none}
a {color:inherit;text-decoration:none} p {text-wrap:pretty} em {font-style:italic}
h1,h2,h3,h4,h5,h6 {font-weight:400;line-height:1.15;text-wrap:balance}
::selection {background:var(--accent);color:var(--bg)}
:focus-visible {outline:2px solid var(--accent);outline-offset:5px}
[hidden] {display:none!important}
.skip-link {position:fixed;top:-100px;left:1rem;padding:.7rem 1rem;background:var(--ink);color:var(--bg);z-index:99999}
.skip-link:focus {top:1rem}
.container {width:min(100%,1360px);padding-inline:var(--container-pad);margin-inline:auto}
.section {padding-block:var(--section-pad-y);position:relative;background:var(--bg)}
.section:nth-of-type(even) {background:var(--bg-2)}
.section-head {margin-bottom:clamp(2.5rem,5vw,4rem)}
.huge,.ed-heading {font-family:var(--serif);font-size:clamp(2.35rem,4.2vw,4.8rem);font-weight:360;line-height:1.04;letter-spacing:-.045em;max-width:24ch;font-variation-settings:"opsz" 144,"SOFT" 48}
.huge em,.ed-heading em {color:var(--accent)}
.lead {font-size:clamp(1.02rem,1.3vw,1.17rem);line-height:1.65;color:var(--ink-mute);max-width:65ch;margin-top:1.5rem}
.huge-center,.lead-center,.section-head-center {margin-inline:auto;text-align:center}
.num,.eyebrow,.np-seo-heading,.np-kicker,.ed-eyebrow,.alt-kicker,.booking-concept-eyebrow,.seo-subsection-h2,.seo-subsection-h3 {
  color:var(--accent);font-family:var(--sans);font-size:.74rem;font-style:normal;font-weight:550;letter-spacing:.155em;line-height:1.45;text-transform:uppercase;
}
:is(.num,.eyebrow,.np-seo-heading,.np-kicker,.ed-eyebrow,.alt-kicker,.booking-concept-eyebrow,.seo-subsection-h2,.seo-subsection-h3) em {font:inherit;color:inherit}
.num,.eyebrow,.ed-eyebrow {margin-bottom:1.5rem}
.reveal,.reveal[data-split] {opacity:1;transform:none}
.word-clip {display:inline-block;overflow:clip;vertical-align:top}.word {display:inline-block}
.btn {display:inline-flex;gap:.7rem;align-items:center;justify-content:center;min-height:52px;padding:.9rem 1.55rem;border:1px solid var(--line);border-radius:5px;font-size:.9rem;font-weight:600;line-height:1.3;transition:background .2s,color .2s}
.btn-primary {background:var(--ink);color:var(--bg);border-color:var(--ink)}.btn-primary:hover {background:var(--accent)}
.btn-ghost {background:transparent;color:var(--ink)}.btn-ghost:hover {background:var(--paper)}
.hero-actions {display:flex;gap:1rem;flex-wrap:wrap;margin-top:2rem}
.splash {display:none}
.nav {min-height:76px;padding-block:.8rem;background:rgba(245,240,230,.96);border-bottom:1px solid var(--line-soft)}
.nav.is-scrolled {padding-block:.7rem;background:rgba(245,240,230,.98)}
.ed-hero-scroll {font-size:.7rem;color:var(--ink-mute);margin-top:1.5rem}
.ed-booking-specialties {list-style:none;padding:0;width:100%;margin-top:1.5rem}
.ed-booking-specialties li {display:grid;grid-template-columns:1.5rem 1fr;gap:1rem;border-top:1px solid var(--line);padding:.7rem 0;font-size:.85rem}
.ed-booking-specialties small {display:block;font-size:.73rem;color:var(--ink-mute)}
.ed-booking-specialties strong {font-weight:500}.booking-concept-talk {font-size:.85rem;text-decoration:underline;text-underline-offset:4px}
.footer-grid {grid-template-columns:1.25fr repeat(3,1fr)}

/* Lectura por capítulos: el contenido no comparte una columna con una fotografía. */
.ed-chapter {padding-block:clamp(3.75rem,7vw,6.5rem);border-top:1px solid var(--line);background:var(--bg)}
.ed-chapter:nth-of-type(even) {background:var(--bg-2)}
.ed-chapter-inner {max-width:1240px;margin:auto;padding-inline:var(--container-pad)}
.ed-chapter-head {max-width:920px;margin:0 auto 2.5rem;text-align:center;display:flex;flex-direction:column;align-items:center}
.ed-chapter-head .np-seo-heading {max-width:88ch;margin-bottom:1.4rem}
.ed-chapter-head .ed-heading {max-width:26ch}
.ed-chapter-head .lead {max-width:70ch}
.ed-paragraphs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem 3.5rem;align-items:start}
.ed-paragraphs>p {margin:0;font-size:1.02rem;line-height:1.8;color:var(--ink-soft)}
.ed-paragraphs>p:only-child {grid-column:1/-1;max-width:78ch;margin-inline:auto}
.ed-paragraphs>p:first-child:nth-last-child(3) {grid-column:1/-1;max-width:85ch;margin-inline:auto;font-size:1.12rem}
.ed-chapter-body>p {max-width:78ch;margin:1.35rem auto;font-size:1.02rem;line-height:1.8}
.ed-chapter-body :is(ul,ol) {padding-left:1.4rem;max-width:88ch;margin:1.5rem auto}
.ed-chapter-body li {padding:.45rem 0;line-height:1.7}
.ed-chapter-body :is(h3,h4) {font-family:var(--serif);font-size:clamp(1.6rem,2.5vw,2.35rem);margin:2rem 0 1rem;letter-spacing:-.025em}
.ed-chapter-body a:not(.btn) {text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.ed-chapter-body blockquote {max-width:860px;margin:3rem auto;padding:2.2rem 0;border-block:1px solid var(--line);font-family:var(--serif);font-size:clamp(1.65rem,2.8vw,2.7rem);line-height:1.25;letter-spacing:-.025em;text-align:center;color:var(--accent)}
.ed-media {margin:clamp(2.5rem,5vw,4rem) auto 0;max-width:1120px;overflow:hidden}
.ed-media picture {overflow:hidden;border-radius:8px}
.ed-media img {width:100%;max-height:540px;object-fit:cover;object-position:center}
.ed-media--portrait {max-width:520px}.ed-media--portrait img {max-height:680px;object-fit:contain}
.ed-media--doctor {max-width:420px}
.ed-media--logo {max-width:260px;margin-top:1.5rem}
.ed-media.ed-media--doctor img,.ed-media.ed-media--logo img {height:auto;max-height:none;object-fit:contain}
.ed-media figcaption {margin-top:.8rem;color:var(--ink-mute);font-size:.78rem;line-height:1.5}
.ed-doctor-layout {display:grid;grid-template-columns:minmax(260px,.78fr) minmax(0,1.22fr);gap:clamp(2.5rem,6vw,6rem);align-items:start}
.ed-doctor-media,.ed-doctor-copy {min-width:0}
.ed-doctor-media .ed-media--doctor {margin-top:0;width:100%}
.ed-doctor-copy .ed-chapter-head {text-align:left;align-items:flex-start;margin-bottom:2rem}
.ed-doctor-copy .ed-heading {font-size:clamp(2rem,3.2vw,3.4rem)}
.ed-doctor-copy .ed-paragraphs {grid-template-columns:minmax(0,1fr);gap:1.25rem}
.ed-doctor-copy .ed-paragraphs>p {max-width:none;margin-inline:0}
.ed-doctor-copy .doctor-intro-cta {display:flex;flex-wrap:wrap;gap:1rem;margin-top:2rem}
.ed-media--doctor.intro-photo-mobile {display:none}
.ed-local-document .np-service-row {grid-template-columns:minmax(0,1fr) auto}
.ed-local-document .np-process>li {grid-template-columns:minmax(0,1fr)}
.ed-local-document .np-process :is(.np-process-label,h3,h3+p) {grid-column:1}
.ed-local-document :is(.np-credentials>div,.np-symptom-list>li,.np-method-list>li) {grid-template-columns:minmax(0,1fr)}
.ed-local-document :is(.np-credentials dt,.np-symptom-list>li>span,.np-method-list>li>span) {display:none}
.ed-local-document .ed-link:not(:has(.svc-card-num,.related-eyebrow)) .svc-card-arrow {grid-row:1}
@media(max-width:959px) {
  .ed-doctor-layout {grid-template-columns:minmax(0,1fr)}
  .ed-doctor-media {width:min(100%,420px);margin-inline:auto}
}
@media(max-width:720px) {
  .ed-media--doctor.intro-photo-desktop {display:none}
  .ed-media--doctor.intro-photo-mobile {display:block}
}
.ed-embed {position:relative;min-height:400px;background:var(--bg-2);border-radius:8px}
.ed-embed iframe {display:block;width:100%;height:400px;border:0}
.ed-media-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem}.ed-media-row .ed-media {width:100%}
.ed-media-row img {height:340px;object-fit:cover}
.ed-service-hero .np-hero-name {max-width:15ch;font-size:clamp(3.2rem,5.4vw,6.2rem);line-height:1.01;overflow-wrap:normal;hyphens:manual}
.ed-service-hero .np-hero-lead {max-width:47ch}
.ed-service-hero .np-kicker {margin:1.4rem 0 0;font-size:.65rem;max-width:54ch}
.ed-service-hero .np-hero-media img {object-position:var(--hero-position,center);transform:scale(1.06);transform-origin:top left}
.ed-service-hero .np-hero-media figcaption {max-width:100%;font-size:.74rem}
.ed-local-hero .np-hero-name {max-width:14ch}
.ed-legal-hero {min-height:660px}
.ed-reasons {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line)}
.ed-reasons article {padding:1.5rem 1.5rem 1.5rem 0;border-bottom:1px solid var(--line)}
.ed-reasons article:nth-child(even) {padding-left:1.5rem;border-left:1px solid var(--line)}
.ed-reason-title {font-family:var(--serif);font-size:1.6rem;letter-spacing:-.025em;line-height:1.15;margin-bottom:1rem}
.ed-reasons p {font-size:.96rem;color:var(--ink-mute);line-height:1.7}
.ed-process-title {font-family:var(--serif);font-size:clamp(1.4rem,2vw,2rem);line-height:1.15;letter-spacing:-.025em;margin:1rem 0}
.ed-summary-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 3rem}
.ed-summary-grid>li {padding:1.5rem 0;border-top:1px solid var(--line);list-style:none;font-family:var(--serif);font-size:1.4rem;line-height:1.3}
.ed-summary-grid {padding:0}
.ed-step-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3rem}
.ed-step {border-top:1px solid var(--ink);padding-top:1.5rem}.ed-step h3 {font-family:var(--serif);font-size:1.8rem;line-height:1.15;margin:1rem 0}.ed-step p {color:var(--ink-mute)}
.ed-link-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 3rem}
.ed-link {display:grid;grid-template-columns:1fr auto;gap:.8rem 1.5rem;padding:1.75rem 0;border-top:1px solid var(--line);transition:color .2s}
.ed-link:hover {color:var(--accent)}.ed-link h3 {font-family:var(--serif);font-size:clamp(1.35rem,2vw,1.85rem);line-height:1.2;letter-spacing:-.025em}
.ed-link p {grid-column:1/-1;color:var(--ink-mute);font-size:.94rem;max-width:65ch}
.ed-link :is(.related-eyebrow,.svc-card-num) {grid-column:1/-1;font-size:.7rem;letter-spacing:.155em;text-transform:uppercase;color:var(--accent)}
.ed-link :is(.related-arrow,.svc-card-arrow) {grid-column:2;grid-row:2;font-size:1.7rem}
.ed-faq-layout {display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);gap:5rem}
.ed-faq-layout>header {position:sticky;top:110px;align-self:start}
.faq-item {border-top:1px solid var(--line)}.faq-item:last-child {border-bottom:1px solid var(--line)}
.faq-item summary {cursor:pointer;padding:1.45rem 2rem 1.45rem 0;position:relative;list-style:none;font-size:1rem;font-weight:500;line-height:1.45}
.faq-item summary::-webkit-details-marker {display:none}.faq-item summary:after {content:'+';position:absolute;right:0;top:1.1rem;font-size:1.5rem;font-weight:300}
.faq-item[open] summary:after {content:'−'}.faq-answer {padding:0 1rem 1.7rem 0;color:var(--ink-mute);font-size:.95rem;line-height:1.75}.faq-answer p+p {margin-top:1rem}
.cta-talk-title {font-size:.75rem;font-family:var(--sans);font-weight:550;text-transform:uppercase;letter-spacing:.155em;margin-bottom:1.5rem}.cta-talk-title em {font:inherit}
.ed-location {display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}.ed-location p {margin-bottom:1rem}
.np-areas li {font-size:.88rem;color:var(--np-muted)}
.np-areas--inline {margin-top:2.5rem;padding-block:2rem 0;border-bottom:0;background:transparent}
.np-areas--inline .np-container {width:100%;padding-inline:0}
.map-embed {position:relative;min-height:360px;overflow:hidden;background:var(--bg-2);border-radius:8px}.map-embed iframe {display:block;width:100%;height:380px;border:0}
.map-actions {display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.5rem}.map-caption {margin-top:1rem;font-size:.82rem;color:var(--ink-mute)}
.doctoralia-frame {position:relative;min-height:580px;background:var(--paper);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.doctoralia-frame iframe {width:100%;min-height:580px;border:0}
.booking-frame {position:relative;min-height:460px;padding:clamp(1rem,2.5vw,2rem);background:var(--paper);border:1px solid var(--line);border-radius:8px}
.booking-frame iframe {display:block;width:100%;border:0;min-height:420px}
.booking-frame>a[data-zl-widget-facility] {display:block;width:100%}
.booking-fine {max-width:65ch;margin:1.5rem auto 0;text-align:center;font-size:.88rem;color:var(--ink-mute)}
.booking-fine a {text-decoration:underline;text-underline-offset:4px}.booking-fallback {padding:2rem;text-align:center}
.video-embed {position:relative;aspect-ratio:16/9;max-width:100%;margin:2.5rem auto;overflow:hidden;border-radius:8px}.video-embed iframe {width:100%;height:100%;border:0}
.comparison-table-wrap {overflow-x:auto;margin:2.5rem auto}.comparison-table {width:100%;border-collapse:collapse;font-size:.94rem}.comparison-table th,.comparison-table td {padding:1rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.comparison-table th {font-weight:550}
.before-after {display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin:2.5rem 0}.ba-card {padding:2rem;background:var(--paper)}.ba-card h3 {margin-top:0}.ba-label {font-size:.74rem;text-transform:uppercase;letter-spacing:.15em}.ba-stats {display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:1.5rem 0}.ba-stat strong {display:block;font-family:var(--serif);font-size:2rem}
.site-map-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3rem}.site-map-grid ul {list-style:none;padding:0}.site-map-grid li {padding:.65rem 0;border-bottom:1px solid var(--line)}
.site-map-grid h2 {font-family:var(--serif);font-size:2rem;margin-bottom:1.5rem}
.nap-block {padding-top:1rem}.nap-block strong {display:block;font-weight:550}
.service-index {position:relative;background:var(--bg-2);padding:1.2rem var(--container-pad);border-bottom:1px solid var(--line)}
.service-index ol {display:flex;gap:.55rem 1.8rem;flex-wrap:wrap;list-style:none;padding:0;max-width:1220px;margin:auto}
.service-index a {font-size:.79rem;line-height:1.6;text-decoration:underline;text-underline-offset:4px;color:var(--ink-mute)}
.service-index.service-index--buttons {
  position:relative;
  background:var(--paper);
  padding:1rem 0;
  border-bottom:1px solid var(--line);
}
.service-index--buttons ol {
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(13rem,1fr);
  gap:.65rem;
  width:min(100%,1360px);
  max-width:none;
  margin-inline:auto;
  padding:.25rem var(--container-pad) .6rem;
  list-style:none;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;
  scroll-padding-inline:var(--container-pad);
  scrollbar-width:thin;
  scrollbar-color:var(--line) transparent;
}
.service-index--buttons li {display:flex;min-width:0;scroll-snap-align:start}
.service-index--buttons a {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:6.5rem;
  padding:1rem;
  border:1px solid var(--line-soft);
  border-radius:0;
  background:var(--bg-2);
  color:var(--ink-soft);
  font-size:.82rem;
  font-weight:500;
  line-height:1.5;
  text-align:center;
  text-decoration:none;
  text-wrap:pretty;
  overflow-wrap:anywhere;
  transition:background .2s,border-color .2s,color .2s;
}
.service-index--buttons a:hover {background:var(--bg-3);border-color:var(--line);color:var(--ink)}
.service-index--buttons a:focus-visible {outline:2px solid var(--accent);outline-offset:2px}
.service-index--buttons a:active {background:var(--bg-3);border-color:var(--accent)}
@media(max-width:959px) {
  .np-process .ed-process-title,.np-process .ed-process-title+p {grid-column:2}
  .footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:2.5rem}
  .ed-paragraphs,.ed-media-row,.ed-step-grid,.ed-faq-layout,.ed-location {grid-template-columns:1fr;gap:1.4rem}
  .ed-chapter-head {text-align:left;align-items:flex-start}.ed-chapter-head .ed-heading {max-width:25ch}
  .ed-chapter-head .np-seo-heading {margin-bottom:1rem}
  .ed-paragraphs>p:first-child:nth-last-child(3) {font-size:1.02rem}
  .ed-faq-layout>header {position:static;margin-bottom:2rem}
  .ed-media img {max-height:440px}.ed-step-grid {gap:2rem}
  .ed-service-hero .np-hero-name {font-size:clamp(2.8rem,8vw,4.5rem);max-width:16ch}
  .ed-link-list {gap:0 2rem}.site-map-grid {grid-template-columns:1fr 1fr}
}
@media(max-width:599px) {
  .footer-grid {grid-template-columns:1fr;gap:2rem}.footer-bottom {display:flex;flex-direction:column;align-items:flex-start;gap:1rem}
  .ed-link-list,.ed-summary-grid,.before-after,.site-map-grid {grid-template-columns:1fr}
  .ed-reasons {grid-template-columns:1fr}.ed-reasons article:nth-child(even) {padding-left:0;border-left:0}
  .ed-chapter {padding-block:3.25rem}.ed-paragraphs>p {line-height:1.75}
  .ed-media img {max-height:340px}.ed-media--portrait img {max-height:560px}
}
@media(max-width:720px) {
  .service-index--buttons ol {
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-flow:row;
    grid-auto-columns:auto;
    gap:.6rem;
    padding-bottom:.25rem;
    overflow:visible;
    scroll-snap-type:none;
  }
  .service-index--buttons li:last-child:nth-child(odd) {grid-column:1/-1}
  .service-index--buttons a {min-height:4.5rem;padding:.85rem .75rem}
  .ed-service-hero,.specialty-editorial .np-hero {height:auto;min-height:100svh}
  .ed-service-hero .np-hero-media::after {background:linear-gradient(100deg,rgba(245,240,230,.94),rgba(245,240,230,.7) 60%,rgba(245,240,230,.4))}
  .ed-service-hero .np-hero-copy {padding-block:3.5rem 2.5rem}
  .np-seo-heading,.np-kicker,.num,.eyebrow {font-size:.72rem}
}
@media(prefers-reduced-motion:reduce) {html {scroll-behavior:auto}*,*::before,*::after {animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}


/* Pausas visuales en el flujo de lectura; nunca como columna lateral fija. */
.ed-media--editorial {width:100%;margin-top:clamp(2rem,4vw,3.5rem)}
.ed-media--editorial picture {background:var(--bg-2);border-radius:var(--radius)}
.ed-media--editorial img {width:100%;height:auto;max-height:none;aspect-ratio:16/9;object-fit:cover;object-position:center}
.ed-media--editorial figcaption {display:block;position:static;padding:0;background:none;color:var(--ink-mute);font-size:.75rem;line-height:1.6;margin-top:.85rem}
.ed-media--uncropped {max-width:600px}
.ed-media--uncropped img {aspect-ratio:auto;object-fit:contain}
.np-doppler-layout>.ed-media--editorial {grid-column:1/-1}
@media(max-width:599px) {
  .ed-media--editorial img {aspect-ratio:4/3}
  .ed-media--uncropped img {aspect-ratio:auto}
}


/* Cierre compartido: la composición aprobada de la portada, sin estilos de página. */
.site-final-cta {
  --site-final-bg: #f5f0e6;
  --site-final-paper: #fbf8f1;
  --site-final-ink: #1a1d1a;
  --site-final-muted: #686961;
  --site-final-accent: #304636;
  --site-final-line: rgba(26, 29, 26, 0.16);
  padding: clamp(5.5rem, 12vw, 12rem) clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid var(--site-final-line);
  background: var(--site-final-bg);
  color: var(--site-final-ink);
  text-align: center;
}

.site-final-inner {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.site-final-eyebrow {
  margin: 0 0 clamp(1.25rem, 2.6vw, 2rem);
  color: var(--site-final-accent);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 550;
  letter-spacing: 0.155em;
  line-height: 1.45;
  text-transform: uppercase;
}

.site-final-eyebrow em {
  color: inherit;
  font: inherit;
}

.site-final-title {
  max-width: 10ch;
  margin: 0 auto;
  color: var(--site-final-ink);
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8.6vw, 9rem);
  font-weight: 350;
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-variation-settings: "opsz" 144, "SOFT" 48;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.site-final-title--long {
  max-width: 18ch;
  font-size: clamp(2.8rem, 5vw, 6rem);
  line-height: 1;
}

.site-final-title em {
  color: var(--site-final-accent);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.site-final-lead {
  max-width: 44ch;
  margin: 2rem auto 0;
  color: var(--site-final-muted);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.site-final-lead + .site-final-lead {
  margin-top: 1rem;
}

.site-final-button {
  display: inline-flex;
  min-width: 200px;
  min-height: 64px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2.3rem;
  padding: 1.1rem 2.4rem;
  border: 1px solid var(--site-final-ink);
  border-radius: 5px;
  background: var(--site-final-ink);
  color: var(--site-final-bg);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.site-final-button:hover {
  border-color: var(--site-final-accent);
  background: var(--site-final-accent);
  color: var(--site-final-bg);
  transform: translateY(-2px);
}

.site-final-button:active {
  transform: translateY(1px);
}

.site-final-button:focus-visible,
.site-final-card:focus-visible {
  outline: 2px solid var(--site-final-accent);
  outline-offset: 5px;
}

.site-final-talk {
  margin: clamp(2.6rem, 5.5vw, 4.2rem) 0 0;
  color: var(--site-final-ink);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  font-weight: 360;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.site-final-talk em {
  color: var(--site-final-accent);
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 100;
}

.site-final-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 920px;
  margin: 1.9rem auto 0;
}

.site-final-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.1rem 1.35rem;
  border: 1px solid var(--site-final-line);
  background: var(--site-final-paper);
  color: var(--site-final-ink);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.site-final-card:hover {
  border-color: var(--site-final-ink);
  transform: translateY(-2px);
}

.site-final-card:active {
  transform: translateY(1px);
}

.site-final-label {
  color: var(--site-final-accent);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-final-value {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  font-weight: 390;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.site-final-card[href^="mailto:"] .site-final-value {
  font-size: clamp(0.98rem, 1.15vw, 1.15rem);
}

.site-final-fine {
  color: var(--site-final-muted);
  font-family: var(--sans);
  font-size: 0.74rem;
  line-height: 1.5;
}

.site-final-card--accent {
  border-color: var(--site-final-accent);
  background: var(--site-final-accent);
  color: var(--site-final-bg);
}

.site-final-card--accent:hover {
  border-color: var(--site-final-accent);
}

.site-final-card--accent .site-final-label,
.site-final-card--accent .site-final-fine {
  color: rgba(245, 240, 230, 0.75);
}

.site-final-note {
  max-width: 72ch;
  margin: 2.4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--site-final-line);
  color: var(--site-final-muted);
  font-family: var(--sans);
  font-size: 0.76rem;
  line-height: 1.55;
}

@media (min-width: 960px) {
  .site-final-card[href^="mailto:"] .site-final-value {
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .site-final-cta {
    padding: 5.6rem 1.25rem;
  }

  .site-final-eyebrow {
    font-size: 0.72rem;
  }

  .site-final-title {
    font-size: clamp(3.8rem, 17vw, 6rem);
  }

  .site-final-title--long {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
  }

  .site-final-button {
    width: 100%;
    max-width: 360px;
  }

  .site-final-cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
  }
}
