/* ==========================================================================
   Dr. Victor Ojendis — Neurocirugía · Sistema visual
   Tokens, base, componentes. Escrito desde cero.
   ========================================================================== */
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/raleway-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Raleway Fallback'; src: local('Arial'); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
:root {
  --primary: #30405d;
  --primary-2: #3b4d70;
  --secondary: #a3b2c7;
  --secondary-ink: #586a87; /* texto sobre fondo claro (contraste AA) */
  --dark: #161b2f;
  --soft: #f6f7ff;
  --gray: #4d4e52;
  --white: #fff;
  --wpp: #25d366;
  --wpp-hover: #075e54;
  --accent-urgent: #c0392b;
  --accent-urgent-dark: #992d22;
  --line: rgba(48, 64, 93, .14);

  --radius: 17px;
  --pill: 30px;
  --container: 1320px;
  --shadow-sm: 0 4px 16px rgba(22, 27, 47, .06);
  --shadow: 0 14px 40px rgba(22, 27, 47, .10);
  --shadow-lg: 0 24px 60px rgba(22, 27, 47, .18);
  --sec-pad: 120px;
  --font: 'Raleway', 'Raleway Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 28px;
  color: var(--gray);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
i.fa-solid, i.fa-regular, i.fa-brands { display: inline-block; min-width: 1.05em; text-align: center; font-style: normal; }
img, picture, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 10000; background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--container) + 40px); margin-inline: auto; padding-inline: 20px; }

h1, h2, h3 { color: var(--dark); font-weight: 700; line-height: 1.2; }
.tagline { font-size: 18px; font-weight: 700; color: var(--secondary-ink); letter-spacing: .02em; margin-bottom: 12px; text-transform: none; }
.title { font-size: 44px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 20px; color: var(--primary); }
main { overflow-x: clip; }
.section { padding-block: var(--sec-pad); position: relative; }
.section--soft { background: var(--soft); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__sub { font-size: 17px; }

/* ---------- Botones pill con relleno desde esquinas opuestas ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: var(--pill);
  font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: .01em;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .25s var(--ease);
  --btn-bg: var(--primary); --btn-fg: #fff; --btn-fill: var(--dark);
  background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg);
}
.btn::before, .btn::after {
  content: ""; position: absolute; z-index: -1; width: 0; height: 0; background: var(--btn-fill);
  transition: width .5s var(--ease), height .5s var(--ease);
}
.btn::before { top: 0; left: 0; }
.btn::after { bottom: 0; right: 0; }
.btn:hover::before, .btn:hover::after, .btn:focus-visible::before, .btn:focus-visible::after { width: 100%; height: 100%; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { --btn-bg: var(--primary); --btn-fg: #fff; --btn-fill: var(--dark); }
.btn--wpp { --btn-bg: var(--wpp); --btn-fg: #063b1d; --btn-fill: var(--wpp-hover); }
.btn--wpp:hover, .btn--wpp:focus-visible { color: #fff; border-color: var(--wpp-hover); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--primary); --btn-fill: var(--secondary); }
.btn--urgent { --btn-bg: var(--accent-urgent); --btn-fg: #fff; --btn-fill: var(--accent-urgent-dark); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--primary); --btn-fill: var(--primary); border-color: var(--primary); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; margin-top: 40px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: var(--pill); font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.badge--urgent { background: var(--accent-urgent); color: #fff; box-shadow: 0 6px 20px rgba(192, 57, 43, .35); }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 9999; background: #fff; display: grid; place-items: center; animation: pre-fallback .01s 3s forwards; }
.preloader img { width: 82px; height: auto; animation: flipY 1.1s var(--ease) infinite; transform-style: preserve-3d; }
.preloader.is-done { opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
@keyframes flipY { 0% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes pre-fallback { to { opacity: 0; visibility: hidden; } }

/* ---------- Cursor personalizado ---------- */
.cursor-ring, .cursor-dot { display: none; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.has-cursor body, html.has-cursor a, html.has-cursor button { cursor: none; }
  html.has-cursor .cursor-ring, html.has-cursor .cursor-dot { display: block; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10001; border-radius: 50%; will-change: transform; }
  .cursor-ring { width: 25px; height: 25px; margin: -12.5px 0 0 -12.5px; border: 1px solid var(--secondary); background: transparent; transition: background .25s, width .25s, height .25s, margin .25s, opacity .25s; }
  .cursor-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--primary); opacity: .3; transition: transform .25s var(--ease), opacity .25s; }
  .cursor-ring.is-hover { background: rgba(163, 178, 199, .4); }
  .cursor-dot.is-hover { transform: scale(2.2); }
  .cursor-ring.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
}

/* ---------- Header de 3 niveles ---------- */
.site-header { position: relative; z-index: 500; }
.topbar { background: var(--secondary); color: var(--dark); font-size: 13.5px; font-weight: 600; line-height: 20px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 8px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: var(--dark); }
.topbar__item i { opacity: .7; }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--dark); transition: background .25s, color .25s; }
.topbar__social a:hover { background: var(--primary); color: #fff; }
.mainbar-wrap { height: var(--header-h); background: #fff; }
.mainbar { background: #fff; width: 100%; height: var(--header-h); box-shadow: 0 1px 0 var(--line); }
.mainbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.logo img { width: 224px; height: auto; }
.mainbar.is-fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 600; box-shadow: var(--shadow); animation: slideDown .5s var(--ease) both; }
@keyframes slideDown { from { transform: translateY(-120%); } to { transform: translateY(0); } }

.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-weight: 700; font-size: 15.5px; color: var(--dark); }
.nav__link i { font-size: 11px; transition: transform .3s; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .has-sub:hover > .nav__link::after, .has-sub:focus-within > .nav__link::after { transform: scaleX(1); }
.has-sub { position: relative; }
.has-sub:hover > .nav__link i, .has-sub:focus-within > .nav__link i { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: -40px; min-width: 520px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
  padding: 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  transform: scaleY(0); transform-origin: top; opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .25s, visibility 0s .35s;
}
.has-sub:hover .dropdown, .has-sub:focus-within .dropdown { transform: scaleY(1); opacity: 1; visibility: visible; transition-delay: 0s; }
.dropdown__col { display: flex; flex-direction: column; }
.dropdown__h { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary-ink); margin-bottom: 8px; }
.dropdown a { padding: 7px 10px; border-radius: 8px; font-size: 14.5px; line-height: 20px; color: var(--dark); font-weight: 600; transition: background .2s, color .2s, padding .25s; }
.dropdown a:hover { background: var(--soft); color: var(--primary); padding-left: 16px; }

.urgency { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: var(--pill); background: var(--soft); color: var(--dark); transition: background .3s, color .3s; }
.urgency:hover { background: var(--accent-urgent); color: #fff; }
.urgency__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-urgent); color: #fff; font-size: 17px; flex: none; }
.urgency:hover .urgency__ico { background: #fff; color: var(--accent-urgent); }
.urgency__tx { display: flex; flex-direction: column; line-height: 1.15; }
.urgency__tx small { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-urgent); }
.urgency:hover small { color: #fff; }
.urgency__tx strong { font-size: 17px; }

.burger { display: none; width: 46px; height: 46px; border: 0; background: var(--soft); border-radius: 12px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--primary); border-radius: 2px; }

/* ---------- Menú móvil ---------- */
.overlay { position: fixed; inset: 0; background: rgba(22, 27, 47, .5); z-index: 900; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.overlay.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 86vw; z-index: 1000; background: #fff; display: flex; flex-direction: column; transform: translateX(-102%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; overflow-y: auto; }
.mobile-menu.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px; }
.mobile-menu__head img { width: 168px; height: auto; }
.mobile-menu__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); color: var(--primary); font-size: 18px; }
.mobile-menu__nav { padding: 6px 18px; flex: 1; }
.mobile-menu__nav > a, .acc__btn { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font-weight: 700; font-size: 16px; color: var(--dark); text-align: left; }
.acc__panel { display: block; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc__panel a { display: block; padding: 10px 14px; font-size: 14.5px; line-height: 20px; color: var(--gray); font-weight: 600; border-bottom: 1px dashed var(--line); }
.acc__btn i { transition: transform .3s; }
.acc.is-open .acc__btn i { transform: rotate(45deg); }
.mobile-menu__contact { padding: 18px; display: grid; gap: 10px; background: var(--soft); }
.mobile-menu__contact p { font-size: 13px; text-align: center; word-break: break-all; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero__photo { position: absolute; inset: 0; }
.hero__photo picture, .hero__photo img { width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 78% 28%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(22, 27, 47, .97) 0%, rgba(22, 27, 47, .9) 34%, rgba(48, 64, 93, .55) 62%, rgba(22, 27, 47, .15) 100%); }
.hero__in { position: relative; z-index: 2; padding-block: 110px 120px; min-height: 640px; display: flex; align-items: center; }
.hero__copy { max-width: 640px; }
.hero__title { color: #fff; font-size: 62px; font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 22px 0 22px; }
.hero__lead { font-size: 19px; line-height: 31px; color: rgba(255, 255, 255, .86); margin-bottom: 34px; max-width: 560px; }
.trust { position: relative; z-index: 3; background: rgba(255, 255, 255, .07); backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, .14); }
.trust__list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-block: 20px; }
.trust__list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.trust__list i { color: var(--secondary); font-size: 18px; }

/* ---------- Rejillas y tarjetas ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.symptom, .benefit, .service { background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.symptom { display: flex; flex-direction: column; color: inherit; }
.symptom:hover, .service:hover, .benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--secondary); }
.symptom__ico, .benefit__ico, .service__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--soft); color: var(--primary); font-size: 22px; margin-bottom: 20px; transition: background .35s, color .35s; }
.symptom:hover .symptom__ico, .service:hover .service__ico, .benefit:hover .benefit__ico { background: var(--primary); color: #fff; }
.symptom h3, .benefit h3, .service h3 { font-size: 19px; margin-bottom: 10px; color: var(--dark); }
.symptom p, .benefit p, .service p { font-size: 15px; line-height: 25px; }
.symptom__more { margin-top: auto; padding-top: 18px; font-weight: 700; font-size: 14px; color: var(--primary); }
.symptom__more i { transition: transform .3s; margin-left: 4px; }
.symptom:hover .symptom__more i { transform: translateX(5px); }
.service { display: flex; flex-direction: column; align-items: flex-start; }
.service p { margin-bottom: 22px; }
.service .btn { margin-top: auto; padding: 10px 22px; font-size: 14px; }

/* ---------- Sobre el doctor ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
.about__img { position: relative; border-radius: var(--radius); }
.about__img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; }
.about__img::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--secondary); border-radius: var(--radius); z-index: -1; }
.about__seal { position: absolute; right: -22px; bottom: 34px; background: var(--primary); color: #fff; padding: 16px 22px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.25; max-width: 210px; }
.about__seal strong { font-size: 28px; font-weight: 800; }
.about__seal span { font-size: 12.5px; font-weight: 600; opacity: .9; }
.about__copy > p { margin-bottom: 26px; font-size: 17px; }
.timeline { position: relative; margin-bottom: 26px; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 41px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 22px; padding-block: 12px; font-size: 15.5px; line-height: 25px; }
.timeline__year { position: relative; z-index: 1; display: grid; place-items: center; height: 34px; margin-top: 2px; background: var(--primary); color: #fff; border-radius: var(--pill); font-weight: 800; font-size: 14px; }
.timeline strong { color: var(--dark); }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 32px; }
.chips li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 22px; padding: 12px 14px; background: var(--soft); border-radius: 12px; color: var(--dark); font-weight: 600; }
.chips i { color: var(--primary); margin-top: 3px; }

/* ---------- Banda CTA ---------- */
.cta-band { margin-top: 64px; display: grid; grid-template-columns: 300px 1fr; background: var(--primary); border-radius: calc(var(--radius) + 6px); overflow: hidden; color: #fff; box-shadow: var(--shadow-lg); }
.cta-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; max-height: 440px; }
.cta-band__copy { padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.cta-band__title { color: #fff; font-size: 32px; line-height: 1.25; }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 17px; }

/* ---------- Primera consulta ---------- */
.first { display: grid; grid-template-columns: 7fr 5fr; gap: 70px; align-items: start; }
.steps { display: grid; gap: 22px; margin-top: 30px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; }
.steps li > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 18px; }
.steps strong { display: block; font-size: 18px; color: var(--dark); margin-bottom: 4px; }
.steps p { font-size: 15.5px; }
.first__card { background: #fff; border-radius: var(--radius); padding: 38px 36px; box-shadow: var(--shadow); border: 1px solid var(--line); position: sticky; top: 130px; }
.first__card h3 { font-size: 18px; margin-bottom: 10px; }
.first__price { font-size: 17px; margin-bottom: 8px; }
.first__price strong { font-size: 46px; color: var(--primary); font-weight: 800; letter-spacing: -.02em; }
.first__note { font-size: 13.5px; line-height: 21px; opacity: .85; margin-bottom: 8px; }
.first__card hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.insurers { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.insurers li { padding: 5px 13px; background: var(--soft); border-radius: var(--pill); font-size: 13px; font-weight: 700; color: var(--primary); line-height: 20px; }
.first__card .btn { margin-top: 14px; }

/* ---------- Opiniones ---------- */
.reviews { padding-bottom: 54px; }
.review { height: auto; background: var(--soft); border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; }
.review__q { font-size: 30px; color: var(--secondary); margin-bottom: 14px; }
.review blockquote { font-size: 17px; line-height: 28px; color: var(--dark); font-weight: 500; margin-bottom: 22px; }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; line-height: 20px; }
.review figcaption strong { color: var(--primary); font-size: 16px; }
.review figcaption span, .review figcaption small { font-size: 13px; }
.review figcaption small { color: var(--secondary-ink); font-weight: 700; margin-top: 2px; }
.swiper-pagination-bullet-active { background: var(--primary) !important; }

/* ---------- Consultorios ---------- */
.office { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.office__map { position: relative; height: 280px; background: linear-gradient(135deg, var(--soft), #e6eaf4); }
.office__map-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--primary); font-size: 14px; }
.office__map-ph i { font-size: 38px; }
.office__map iframe { position: relative; width: 100%; height: 100%; border: 0; background: transparent; }
.office__body { padding: 30px 32px 34px; display: grid; gap: 8px; }
.office__tag { display: inline-block; justify-self: start; padding: 4px 12px; border-radius: var(--pill); background: var(--soft); color: var(--primary); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.office h3 { font-size: 23px; margin-bottom: 4px; }
.office p { font-size: 15px; display: flex; gap: 10px; }
.office p i { color: var(--primary); margin-top: 5px; width: 16px; text-align: center; }
.office .btn-row { margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 70px; align-items: start; }
.faq__intro { position: sticky; top: 130px; }
.faq__intro p { margin-bottom: 26px; }
.accordion { display: grid; gap: 14px; counter-reset: faq; }
.accordion__item { background: var(--soft); border-radius: var(--radius); overflow: hidden; border: 1px solid transparent; transition: border-color .3s, background .3s; }
.accordion__item.is-open { background: #fff; border-color: var(--secondary); box-shadow: var(--shadow-sm); }
.accordion__btn { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 26px; border: 0; background: none; text-align: left; font-size: 17.5px; font-weight: 700; line-height: 26px; color: var(--dark); }
.accordion__n { color: var(--secondary-ink); font-size: 15px; font-weight: 800; }
.accordion__btn i { margin-left: auto; color: var(--primary); transition: transform .35s var(--ease); }
.accordion__item.is-open .accordion__btn i { transform: rotate(135deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.accordion__panel p { padding: 0 26px 26px 66px; font-size: 16px; }

/* ---------- Pie ---------- */
.footer { background: var(--dark); color: rgba(255, 255, 255, .78); }
.footer__cta { background: var(--primary); }
.footer__cta-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 48px; flex-wrap: wrap; }
.footer__cta-title { color: #fff; font-size: 30px; margin-bottom: 6px; }
.footer__cta p { color: rgba(255, 255, 255, .8); }
.footer__main { padding-block: 80px 56px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1.2fr 1fr; gap: 48px; }
.footer__brand img { width: 240px; height: auto; margin-bottom: 20px; }
.footer__brand p { font-size: 14.5px; line-height: 24px; margin-bottom: 14px; }
.footer__ced { font-size: 13.5px !important; padding: 12px 14px; border-left: 3px solid var(--secondary); background: rgba(255, 255, 255, .05); }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background .3s, transform .3s; }
.footer__social a:hover { background: var(--secondary); color: var(--dark); transform: translateY(-3px); }
.footer__h { color: #fff; font-size: 17px; margin-bottom: 20px; }
.footer__list { display: grid; gap: 12px; font-size: 14.5px; line-height: 22px; }
.footer__list li { display: flex; gap: 10px; }
.footer__list li > div { min-width: 0; }
.footer__list li > i { margin-top: 4px; color: var(--secondary); width: 16px; flex: none; text-align: center; }
.footer__list span { opacity: .8; font-size: 13.5px; }
.footer__list a { color: rgba(255, 255, 255, .82); transition: color .2s; }
.footer__list a:hover { color: #fff; }
.footer__list--links li { display: block; }
.footer__list--links a { position: relative; padding-left: 0; transition: padding .25s, color .2s; }
.footer__list--links a:hover { padding-left: 8px; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__legal-in { display: flex; justify-content: space-between; align-items: center; gap: 16px 30px; flex-wrap: wrap; padding-block: 24px 28px; font-size: 13px; line-height: 20px; }
.footer__legal-in nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal-in a { color: rgba(255, 255, 255, .82); }
.footer__legal-in a:hover { color: #fff; text-decoration: underline; }

/* ---------- Contacto fijo ---------- */
.side-contact { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 700; display: flex; flex-direction: column; gap: 8px; }
.side-contact a { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 52px; height: 52px; padding: 0 18px 0 16px; background: var(--primary); color: #fff; border-radius: 14px 0 0 14px; font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap; box-shadow: var(--shadow); transition: transform .3s var(--ease), background .3s; }
.side-contact a i { font-size: 18px; min-width: 18px; text-align: center; }
@media (min-width: 761px) and (max-width: 1279px) { .side-contact a { padding: 0; width: 48px; min-width: 48px; height: 48px; } .side-contact a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.side-contact a:hover, .side-contact a:focus-visible { transform: translateX(-6px); background: var(--dark); }
.side-contact__wpp { background: var(--wpp) !important; color: #063b1d !important; }
.side-contact__wpp:hover { background: var(--wpp-hover) !important; color: #fff !important; }
.bottom-bar, .wpp-fab { display: none; }
.wpp-fab { position: fixed; right: 16px; bottom: 84px; z-index: 750; width: 56px; height: 56px; border-radius: 50%; background: var(--wpp); color: #063b1d; font-size: 30px; place-items: center; box-shadow: 0 10px 28px rgba(7, 94, 84, .45); }

/* ---------- Revelados ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: transform, opacity; }
.js [data-reveal="up"] { transform: translateY(40px); }
.js [data-reveal="left"] { transform: translateX(-90px); }
.js [data-reveal="right"] { transform: translateX(90px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] { visibility: hidden; }
.js [data-split].is-ready { visibility: visible; }
.split-line { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-split] { visibility: visible; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .nav__link { padding-inline: 10px; font-size: 15px; }
  .logo img { width: 196px; }
  .urgency__tx strong { font-size: 16px; }
}
@media (max-width: 1100px) {
  .nav, .urgency { display: none; }
  .burger { display: flex; }
  .topbar__sedes { display: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .about, .first, .faq { grid-template-columns: 1fr; gap: 56px; }
  .about__img { max-width: 520px; }
  .first__card, .faq__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 52px; }
}
@media (max-width: 760px) {
  :root { --sec-pad: 80px; --header-h: 74px; }
  body { padding-bottom: 66px; }
  .title { font-size: 32px; }
  .tagline { font-size: 16px; }
  .section__head { margin-bottom: 36px; }
  .topbar { display: none; }
  .logo img { width: 168px; }
  .hero__photo img { object-position: 70% 20%; }
  .hero__photo::after { background: linear-gradient(180deg, rgba(22, 27, 47, .6) 0%, rgba(22, 27, 47, .88) 45%, rgba(22, 27, 47, .96) 100%); }
  .hero__in { padding-block: 56px 64px; min-height: 0; }
  .hero__title { font-size: 38px; }
  .hero__lead { font-size: 16.5px; line-height: 27px; }
  .hero__copy .btn-row .btn, .btn-row--center .btn { width: 100%; }
  .trust__list { gap: 10px; padding-block: 16px; }
  .trust__list li { width: 100%; font-size: 14px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .about__seal { right: 10px; }
  .about__img::before { inset: 14px -10px -14px 10px; }
  .chips { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band img { max-height: 280px; }
  .cta-band__copy { padding: 34px 26px; }
  .cta-band__title { font-size: 25px; }
  .first__card { padding: 30px 24px; }
  .accordion__btn { padding: 18px 18px; font-size: 16px; gap: 12px; }
  .accordion__panel p { padding: 0 18px 22px 18px; }
  .office__map { height: 220px; }
  .office__body { padding: 24px 22px 28px; }
  .footer__cta-title { font-size: 24px; }
  .footer__cta-in .btn-row, .footer__cta-in .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 38px; }
  .footer__main { padding-block: 56px 36px; }
  .footer__legal-in { flex-direction: column; align-items: flex-start; }
  .side-contact { display: none; }
  .bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 -6px 24px rgba(22, 27, 47, .12); }
  .bottom-bar .btn { padding: 12px 10px; }
  .wpp-fab { display: grid; }
}

/* ==========================================================================
   Páginas interiores
   ========================================================================== */
.page-hero { position: relative; background: linear-gradient(120deg, var(--dark) 0%, var(--primary) 100%); color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(163, 178, 199, .25); box-shadow: 0 0 0 60px rgba(163, 178, 199, .05), 0 0 0 130px rgba(163, 178, 199, .03); pointer-events: none; }
.page-hero__in { position: relative; padding-block: 56px 80px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; font-weight: 600; margin-bottom: 30px; color: rgba(255, 255, 255, .7); }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.page-hero__tag { display: inline-block; padding: 6px 14px; border-radius: var(--pill); background: rgba(163, 178, 199, .2); color: #dbe3ef; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.page-hero__title { color: #fff; font-size: 50px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; max-width: 900px; margin-bottom: 20px; }
.page-hero__lead { font-size: 19px; line-height: 31px; color: rgba(255, 255, 255, .86); max-width: 760px; margin-bottom: 32px; }

.svc { padding-block: 80px 90px; }
.svc__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; align-items: start; }
.prose section { margin-bottom: 52px; scroll-margin-top: 120px; }
.prose h2 { font-size: 30px; color: var(--primary); margin-bottom: 18px; letter-spacing: -.01em; }
.prose p { margin-bottom: 18px; font-size: 17px; line-height: 30px; }
.prose__list { margin: 4px 0 22px; display: grid; gap: 10px; }
.prose__list li { position: relative; padding: 14px 18px 14px 50px; background: var(--soft); border-radius: 12px; font-size: 16px; line-height: 26px; color: var(--dark); }
.prose__list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 18px; top: 14px; color: var(--primary); font-size: 14px; }
.prose__facts { display: grid; gap: 10px; margin: 24px 0 6px; }
.prose__facts li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--dark); font-size: 15.5px; line-height: 24px; }
.prose__facts i { color: var(--primary); margin-top: 4px; }
.prose__more a { font-weight: 700; }
.prose__more i { transition: transform .3s; }
.prose__more a:hover i { transform: translateX(5px); }
.callout { display: flex; gap: 18px; padding: 22px 26px; margin-bottom: 44px; background: #fdf1ef; border: 1px solid rgba(192, 57, 43, .35); border-left: 6px solid var(--accent-urgent); border-radius: 14px; }
.callout > i { color: var(--accent-urgent); font-size: 26px; margin-top: 4px; }
.callout strong { display: block; color: var(--accent-urgent-dark); font-size: 17px; margin-bottom: 4px; }
.callout p { margin: 0; font-size: 16px; line-height: 26px; color: #4a2420; }
.disclaimer { display: flex; gap: 12px; padding: 18px 20px; background: var(--soft); border-radius: 12px; font-size: 14px !important; line-height: 23px !important; }
.disclaimer i { color: var(--primary); margin-top: 3px; }
.prose .accordion__btn { font-size: 16.5px; }
.prose .accordion__panel p { font-size: 16px; line-height: 27px; margin-bottom: 0; }

.svc__side { position: sticky; top: 112px; display: grid; gap: 22px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.side-card h2 { font-size: 18px; margin-bottom: 14px; }
.side-card p { font-size: 15px; line-height: 24px; }
.side-card--cta { background: var(--primary); border-color: var(--primary); color: #fff; display: grid; gap: 12px; }
.side-card--cta h2 { color: #fff; margin: 0; }
.side-card--cta p { color: rgba(255, 255, 255, .85); }
.side-card--cta .btn--primary { --btn-bg: #fff; --btn-fg: var(--primary); --btn-fill: var(--secondary); }
.toc ul { display: grid; gap: 2px; }
.toc a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; line-height: 21px; font-weight: 600; color: var(--gray); border-left: 3px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.toc a:hover { background: var(--soft); color: var(--primary); border-left-color: var(--primary); }
.side-card__sede { display: grid; gap: 2px; margin-bottom: 14px; }
.side-card__sede:last-child { margin-bottom: 0; }
.side-card__sede span { font-size: 14px; }
.side-card__sede a { font-weight: 700; font-size: 14px; }
.title--sm { font-size: 32px; margin-bottom: 30px; }
.rel-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); color: var(--gray); font-size: 15px; line-height: 24px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.rel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--secondary); }
.rel-card strong { font-size: 19px; color: var(--dark); line-height: 1.3; }
.rel-card__tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-ink); }
.rel-card em { margin-top: auto; padding-top: 8px; font-style: normal; font-weight: 700; color: var(--primary); }

/* ---------- Sobre mí ---------- */
.bio { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.bio__photo { position: sticky; top: 112px; margin: 0; }
.bio__photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 25%; }
.bio__photo figcaption { margin-top: 12px; font-size: 13.5px; color: var(--gray); opacity: .85; }
.bio__copy h2 { font-size: 30px; color: var(--primary); margin: 44px 0 16px; letter-spacing: -.01em; }
.bio__copy h2:first-child { margin-top: 0; }
.bio__copy p { margin-bottom: 18px; font-size: 17px; line-height: 30px; }
.cred { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.cred__item { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.cred__item small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-ink); margin-bottom: 6px; }
.cred__item strong { display: block; color: var(--dark); font-size: 17px; line-height: 24px; }
.cred__item span { display: block; font-size: 14px; line-height: 22px; margin-top: 4px; }
.timeline--wide li { grid-template-columns: 76px 1fr; }
.timeline--wide::before { left: 45px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 340px; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 12px 16px; font-size: 13.5px; line-height: 20px; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-wide img { object-position: 50% 60%; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 36px; box-shadow: var(--shadow); display: grid; gap: 20px; }
.form h2 { font-size: 26px; color: var(--primary); }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: 14.5px; color: var(--dark); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid #cfd6e3; border-radius: 12px; font: inherit; color: var(--dark); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(48, 64, 93, .12); }
.form__note { font-size: 13.5px; line-height: 22px; opacity: .85; }
.form__hint { font-size: 14px; padding: 12px 14px; background: var(--soft); border-radius: 10px; line-height: 22px; }
.contact__info { display: grid; gap: 20px; }
.contact__sede { padding: 26px 26px 24px; background: var(--soft); border-radius: var(--radius); }
.contact__sede h3 { font-size: 19px; margin-bottom: 8px; }
.contact__sede p { font-size: 15px; line-height: 24px; margin-bottom: 6px; }
.contact__map { margin-top: 12px; border-radius: 12px; overflow: hidden; position: relative; height: 200px; background: linear-gradient(135deg, #fff, #e6eaf4); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact__direct { display: grid; gap: 12px; }

/* ---------- Legales y 404 ---------- */
.legal { max-width: 860px; margin-inline: auto; padding-inline: 20px; }
.legal h2 { font-size: 24px; color: var(--primary); margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16.5px; line-height: 29px; margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal__meta { padding: 14px 18px; background: var(--soft); border-radius: 12px; font-size: 14px !important; }
.e404 { text-align: center; padding-block: 120px; }
.e404__n { font-size: 130px; font-weight: 800; line-height: 1; color: var(--secondary); letter-spacing: -.04em; }
.e404 h1 { font-size: 38px; color: var(--primary); margin: 10px 0 16px; }
.e404 .btn-row { justify-content: center; margin-top: 28px; }

@media (max-width: 1100px) {
  .svc__grid, .bio, .contact { grid-template-columns: 1fr; gap: 48px; }
  .svc__side, .bio__photo { position: static; }
  .bio__photo { max-width: 460px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g-wide { grid-column: span 2; }
  .page-hero__title { font-size: 42px; }
}
@media (max-width: 760px) {
  .page-hero__in { padding-block: 36px 52px; }
  .page-hero__title { font-size: 31px; }
  .page-hero__lead { font-size: 16.5px; line-height: 27px; }
  .page-hero .btn-row .btn { width: 100%; }
  .page-hero::before { display: none; }
  .svc { padding-block: 52px 60px; }
  .prose h2, .bio__copy h2 { font-size: 25px; }
  .prose p, .bio__copy p { font-size: 16.5px; line-height: 28px; }
  .callout { padding: 18px; gap: 14px; }
  .title--sm { font-size: 26px; }
  .cred { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-wide { grid-column: auto; }
  .gallery img, .gallery .g-wide img { height: 280px; }
  .form { padding: 28px 22px; }
  .e404__n { font-size: 90px; }
  .e404 h1 { font-size: 28px; }
}

/* ---------- Páginas locales: tarjetas de ruta ---------- */
.routes { display: grid; gap: 12px; margin: 26px 0 8px; }
.route { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); color: var(--gray); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.route:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--secondary); }
.route__mode { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--soft); color: var(--primary); font-size: 20px; transition: background .3s, color .3s; }
.route:hover .route__mode { background: var(--primary); color: #fff; }
.route__body { display: grid; gap: 2px; min-width: 0; }
.route__body strong { color: var(--dark); font-size: 16px; line-height: 22px; }
.route__body small, .route__meta small { font-size: 13.5px; line-height: 20px; }
.route__meta { display: grid; text-align: right; line-height: 1.2; }
.route__meta b { font-size: 20px; color: var(--primary); }
.routes__note { display: flex; gap: 10px; font-size: 13.5px !important; line-height: 21px !important; opacity: .85; margin: 4px 0 0 !important; }
.routes__note i { margin-top: 3px; color: var(--primary); }
@media (max-width: 760px) {
  .route { grid-template-columns: 44px 1fr; padding: 14px 16px; }
  .route__mode { width: 44px; height: 44px; font-size: 17px; }
  .route__meta { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; text-align: left; padding-left: 60px; }
}

/* Enlaces dentro de párrafos: subrayados para distinguirse sin depender del color */
p a:not(.btn), li a:not(.btn):not(.route):not(.rel-card) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.topbar a, .footer a, .toc a, .crumbs a, .nav a, .dropdown a, .rel-card, .route, .symptom, .side-contact a { text-decoration: none !important; }
.footer__legal-in p a, .footer p a { text-decoration: underline !important; }

@media (min-width: 1280px) { .side-contact a { width: 150px; justify-content: flex-start; } }
