/* ============================================================
   JD Lacouture — design tokens, 3 visual directions, type, motion
   ============================================================ */

:root {
  /* Brand palette — exact from JD Lacouture brand manual */
  --brand:      #01426A;   /* navy · PANTONE 7694 C */
  --brand-deep: #003E51;   /* deep petrol · PANTONE 3035 C (logo) */
  --brand-2:    #007680;   /* teal · PANTONE 7714 C (accent) */
  --brand-3:    #00629B;   /* blue · PANTONE 3015 C */
  --brand-soft: #e6eef3;   /* pale blue wash */
  --brand-gray: #97999B;   /* PANTONE Cool Gray 7C */

  /* Neutrals */
  --paper:  #f5f4f0;       /* warm off-white */
  --paper-2:#ffffff;
  --ink:    #14252f;
  --ink-2:  #5a6b75;       /* muted text */
  --line:   rgba(1,66,106,.14);

  /* Section-driven theme vars (set by .surface-* classes) */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--ink-2);
  --hair: var(--line);
  --accent: var(--brand-2);

  /* Type — brand: Fieldwork≈Hanken (títulos/párrafos), Rams≈Outfit (destacados) */
  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-accent: "Outfit", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.022em;

  /* Motion (scaled by [data-motion]) */
  --reveal-y: 26px;
  --reveal-dur: 1.05s;
  --reveal-blur: 8px;
  --ease: cubic-bezier(.16,.84,.32,1);

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 88px);
  --hero-bg: #012337;        /* always-dark hero backdrop */
}

/* ---------- Typography presets ---------- */
[data-type="grotesk"] {
  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-accent: "Outfit", system-ui, sans-serif;
  --display-weight: 600; --display-tracking: -0.024em;
}
[data-type="editorial"] {
  --font-display: "Spectral", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-accent: "Spectral", Georgia, serif;
  --display-weight: 500; --display-tracking: -0.01em;
}
[data-type="archivo"] {
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-accent: "Archivo", system-ui, sans-serif;
  --display-weight: 600; --display-tracking: -0.028em;
}

/* ---------- Motion presets ---------- */
[data-motion="off"]    { --reveal-y: 0px;  --reveal-dur: 0.01s; --reveal-blur: 0px; }
[data-motion="subtle"] { --reveal-y: 16px; --reveal-dur: 0.8s;  --reveal-blur: 4px; }
[data-motion="full"]   { --reveal-y: 34px; --reveal-dur: 1.15s; --reveal-blur: 10px; }

/* ============================================================
   VISUAL DIRECTIONS
   ============================================================ */

/* V1 — Editorial Claro (default light) handled by base tokens. */

/* V2 — Clínico Oscuro: deep navy base, light type, dramatic */
[data-variant="dark"] {
  --paper:  #07202e;
  --paper-2:#04161f;
  --ink:    #eaf1f4;
  --ink-2:  #9fb6c1;
  --line:   rgba(255,255,255,.14);
  --brand:  #f5f4f0;
  --brand-2:#3fa3ad;     /* lifted teal */
  --brand-soft: #0e2c3a;
  --hero-bg: #04161f;
}

/* V3 — Editorial Cálido: warm sand neutrals, humanist */
[data-variant="warm"] {
  --paper:  #f1ebe1;
  --paper-2:#faf6ee;
  --ink:    #2a2521;
  --ink-2:  #6f655a;
  --line:   rgba(42,37,33,.16);
  --brand:  #2f2a24;
  --brand-2:#a8602f;     /* terracotta accent */
  --brand-soft: #e6dccd;
  --hero-bg: #2e271f;
}

/* ---------- Surfaces (alternating sections) ---------- */
.surface-paper { --bg: var(--paper);   --fg: var(--ink); --fg-muted: var(--ink-2); --hair: var(--line); --accent: var(--brand-2); }
.surface-light { --bg: var(--paper-2); --fg: var(--ink); --fg-muted: var(--ink-2); --hair: var(--line); --accent: var(--brand-2); }
/* Inverse block: navy panel with light text, in every variant */
.surface-ink {
  --bg: var(--brand); --fg: var(--paper-2); --fg-muted: rgba(255,255,255,.66);
  --hair: rgba(255,255,255,.16); --accent: var(--brand-2);
}
[data-variant="dark"] .surface-ink { --bg: #0b2a38; --fg: var(--ink); --fg-muted: var(--ink-2); }
[data-variant="warm"] .surface-ink { --fg:#faf6ee; --fg-muted: rgba(255,255,255,.7); }

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

section { background: var(--bg); color: var(--fg); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.kicker {
  font-family: var(--font-accent);
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .55; }

h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.04; margin: 0; text-wrap: balance; }
.display { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
.h-xl { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
.h-lg { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.05; }
.h-md { font-size: clamp(1.7rem, 2.9vw, 2.5rem); line-height: 1.1; }
.h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.5; color: var(--fg-muted); max-width: 46ch; text-wrap: pretty; }
p { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: .005em;
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--brand); color: var(--paper-2); }
[data-variant="dark"] .btn-solid { background: var(--brand-2); color: #07111c; }
.btn-solid:hover { background: var(--brand-2); }
.surface-ink .btn-solid { background: var(--accent); color: #fff; }
.surface-ink .btn-solid:hover { filter: brightness(1.1); background: var(--accent); }
[data-variant="dark"] .btn-solid:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--hair); }
.btn-ghost:hover { border-color: var(--fg); }
.btn svg { width: 16px; height: 16px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(var(--reveal-y)); filter: blur(var(--reveal-blur));
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease), filter var(--reveal-dur) var(--ease);
  transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; transition: none; } }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); transition: background .4s, backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line); padding-top: 12px; padding-bottom: 12px; }
.nav-logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; font-size: 15.5px; color: var(--ink); white-space: nowrap; }
.nav-logo img { width: 32px; height: 32px; object-fit: contain; transition: filter .4s; flex: none; }
.nav-logo .wm { display: flex; flex-direction: column; line-height: 1.05; }
.nav-logo .wm small { font-family: var(--font-accent); font-weight: 500; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }
@media (max-width: 1080px) { .nav-logo .wm small { display: none; } }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink); padding: 9px 14px; border-radius: 999px; opacity: .82; transition: opacity .2s, background .2s; white-space: nowrap; }
.nav-links a:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-btn { font-size: 13px; font-weight: 600; letter-spacing: .06em; padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.lang-btn:hover { border-color: var(--ink); }
.nav .btn { padding: 11px 20px; font-size: 14px; }

/* hamburger + mobile drawer */
.nav-burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-burger span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 360px); z-index: 110;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; padding: 92px 32px 40px;
  overflow-y: auto; transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
  box-shadow: -24px 0 70px -30px rgba(0,0,0,.55); }
.nav-drawer.open { transform: none; visibility: visible; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 105; background: rgba(7,22,33,.6);
  opacity: 0; visibility: hidden; transition: opacity .4s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer-close { position: absolute; top: 22px; right: 24px; width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; color: var(--ink); display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.drawer-close:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.drawer-close svg { width: 26px; height: 26px; }
.drawer-links { display: flex; flex-direction: column; gap: 2px; }
.drawer-links a { font-family: var(--font-accent); font-weight: 600; font-size: 1.3rem;
  letter-spacing: -.01em; color: var(--ink); padding: 15px 0; border-bottom: 1px solid var(--hair); }
.drawer-links a:hover { color: var(--accent); }
.nav-drawer .btn-solid { align-self: flex-start; margin-top: 22px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .nav:not(.scrolled) .nav-burger span { background: #fff; }
}

/* Top state: nav sits over the always-dark hero — force light chrome in every variant */
.nav:not(.scrolled) .nav-logo,
.nav:not(.scrolled) .nav-links a,
.nav:not(.scrolled) .lang-btn { color: #fff; }
.nav:not(.scrolled) .nav-logo .wm small { color: rgba(255,255,255,.8); }
.nav:not(.scrolled) .nav-logo img { filter: brightness(0) invert(1); }
.nav:not(.scrolled) .lang-btn { border-color: rgba(255,255,255,.45); }
.nav:not(.scrolled) .nav-links a:hover { background: rgba(255,255,255,.15); }
.nav:not(.scrolled) .lang-btn:hover { border-color: #fff; }
.nav:not(.scrolled) .btn-solid { background: #fff; color: #13243a; }
.nav:not(.scrolled) .btn-solid:hover { background: var(--brand-2); color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; padding-bottom: clamp(40px, 7vh, 90px); }
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--hero-bg); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-media image-slot { width: 100%; height: 100%; }
.hero-media image-slot::part(frame) { background: var(--hero-bg); }
.hero-media image-slot::part(empty) { color: rgba(255,255,255,.62); }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,18,30,.42) 0%, rgba(8,18,30,.12) 32%, rgba(8,18,30,.55) 100%); }
[data-variant="warm"] .hero-media::after { background: linear-gradient(180deg, rgba(40,30,20,.34) 0%, rgba(40,30,20,.08) 36%, rgba(40,30,20,.6) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero .kicker { color: #fff; opacity: .9; }
.hero h1 { color: #fff; max-width: 16ch; font-family: var(--font-accent); }
.hero-sub { color: rgba(255,255,255,.86); margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero .btn-solid { background: #fff; color: var(--brand); }
.hero .btn-solid:hover { background: var(--brand-2); color: #fff; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.hero-id { position: absolute; right: var(--gutter); bottom: clamp(40px,7vh,90px); z-index: 2;
  text-align: right; color: #fff; max-width: 280px; }
.hero-id .nm { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.hero-id .dg { font-size: 13.5px; color: rgba(255,255,255,.78); margin-top: 4px; letter-spacing: .01em; }
@media (max-width: 760px) { .hero-id { display: none; } }

/* hero carousel dots — vertical stack on the right */
.hero-dots { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3;
  display: flex; flex-direction: column; gap: 12px; }
.hero-dot { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.4); transition: background .3s var(--ease), height .3s var(--ease); }
.hero-dot:hover { background: rgba(255,255,255,.7); }
.hero-dot.active { background: #fff; height: 26px; }
@media (max-width: 760px) {
  .hero-dots { right: 50%; top: auto; bottom: 22px; transform: translateX(50%); flex-direction: row; }
  .hero-dot.active { height: 9px; width: 26px; }
}

/* ============================================================
   INTRO / PILLARS
   ============================================================ */
.section { padding: clamp(72px, 11vh, 150px) 0; }
.section-tight-top { padding-top: clamp(28px, 4vh, 56px); }
.section-head { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 880px; }
.section-head .h2 { margin-top: 6px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair);
  border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; margin-top: clamp(44px, 7vh, 80px); }
.pillar { background: var(--bg); padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 16px; min-height: 280px; }
.pillar .pn { font-family: var(--font-accent); font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .04em; }
.pillar h3 { font-size: clamp(1.3rem, 1.8vw, 1.75rem); }
.pillar p { color: var(--fg-muted); font-size: 16px; line-height: 1.6; margin: 0; }
.pillar .pn-row { display:flex; align-items:center; gap:14px; }
.pillar .pn-rule { flex:1; height:1px; background: var(--hair); }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 0; } }

/* main centers of care */
.hubs { margin-top: clamp(28px,4vh,46px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  padding: 22px clamp(20px,3vw,32px); border-radius: 16px; border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--accent) 6%, transparent); }
.hubs-label { font-family: var(--font-accent); font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); }
.hubs-list { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.hub { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-accent);
  font-weight: 600; font-size: clamp(15px,1.3vw,18px); color: var(--fg); letter-spacing: -.01em; }
.hub svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
@media (max-width: 600px) { .hubs { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* big statement band */
.statement { padding: clamp(80px,13vh,170px) 0; }
.statement p { font-family: var(--font-accent); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(1.8rem, 3.6vw, 3.1rem); line-height: 1.16; max-width: 20ch; margin: 0; }
.statement .accent { color: var(--accent); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 84px); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; height: clamp(440px, 60vh, 680px); object-fit: cover; object-position: center 28%; border-radius: 20px; }
.about-media image-slot { width: 100%; height: clamp(440px, 60vh, 680px); }
.about-media .mark { position: absolute; right: -10px; bottom: -10px; width: clamp(120px,16vw,180px); height: auto; opacity: .9; filter: drop-shadow(0 14px 30px rgba(0,0,0,.18)); }
.about-body .h2 { margin: 14px 0 26px; }
.about-body p { color: var(--fg-muted); font-size: 17px; line-height: 1.62; margin: 0 0 18px; max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin: 36px 0; padding: 30px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.stat .k { font-family: var(--font-accent); font-weight: 600; font-size: clamp(1.9rem,3vw,2.6rem); letter-spacing: -.02em; color: var(--accent); }
.stat .v { font-size: 13.5px; color: var(--fg-muted); margin-top: 4px; line-height: 1.35; }
.creds { margin-top: 30px; }
.creds.teaching { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--hair); }
.teaching-text { color: var(--fg-muted); font-size: 15.5px; line-height: 1.6; margin: 0 0 14px; max-width: 54ch; }
.teaching-link { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.teaching-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.teaching-link:hover svg { transform: translateX(4px); }
.creds h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; font-weight: 600; }
.creds ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.creds li { font-size: 14.5px; line-height: 1.4; color: var(--fg); position: relative; padding-left: 18px; }
.creds li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pubchips { display:flex; flex-wrap:wrap; gap:8px; }
.pubchips a { font-size: 13px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--hair); color: var(--fg); transition: border-color .2s, background .2s; }
.pubchips a:hover { border-color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-media { order: -1; } .creds, .stats { grid-template-columns: 1fr; } .stats { gap: 18px; } }

/* ============================================================
   SOCIETIES (marquee)
   ============================================================ */
.societies { padding: clamp(48px,7vh,84px) 0; overflow: hidden; }
.soc-head { margin-bottom: 28px; }
.marquee { position: relative; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 38s linear infinite; }
.societies:hover .marquee-track { animation-play-state: paused; }
.soc-chip { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  border: 1px solid var(--hair); border-radius: 999px; padding: 14px 24px;
  font-family: var(--font-accent); font-size: clamp(14px,1.1vw,16px); font-weight: 500; color: var(--fg); }
.soc-chip img { width: 22px; height: 22px; object-fit: contain; opacity: .9; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Reduced-motion / motion-off: keep a compact, manually-scrollable horizontal strip. */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .marquee-track { animation: none; }
}
[data-motion="off"] .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
[data-motion="off"] .marquee-track { animation: none; }

/* Societies as a list (sobre.html) */
.soc-list { list-style: none; margin: clamp(36px,5vh,60px) 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair);
  border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; }
.soc-list li { background: var(--bg); display: flex; align-items: center; gap: 16px;
  padding: 22px clamp(20px,2.4vw,30px); font-family: var(--font-accent); font-weight: 500;
  font-size: clamp(15px,1.2vw,17px); color: var(--fg); line-height: 1.35; }
.soc-list .soc-mk { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); }
.soc-list .soc-mk img { width: 20px; height: 20px; object-fit: contain; }
@media (max-width: 720px) { .soc-list { grid-template-columns: 1fr; } }

/* Credentials two-column (sobre.html) */
.cred-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px);
  margin-top: clamp(28px,3.5vh,44px); padding-top: clamp(28px,3.5vh,44px); border-top: 1px solid var(--hair); }
@media (max-width: 760px) { .cred-cols { grid-template-columns: 1fr; gap: 30px; } }

/* Publications + teaching inside the bio column (sobre.html) */
.bio-pubs { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hair); }
.bio-teaching { margin-top: 22px; }
.bio-text .creds h4 { margin-bottom: 12px; }

/* Stats + societies block (sobre.html) */
.stats-merged { margin-top: clamp(40px,6vh,72px); }
.soc-block { margin-top: clamp(26px,3.4vh,40px); padding-top: clamp(26px,3.4vh,40px); border-top: 1px solid var(--hair); }
.soc-h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; font-weight: 600; }
.soc-block .soc-list { margin-top: 0; }

/* ===== About page restructure (index + numbered sections) ===== */
.about-index { list-style: none; margin: clamp(30px,4vh,46px) 0 0; padding: 0; border-top: 1px solid var(--hair); }
.about-index li { border-bottom: 1px solid var(--hair); }
.about-index a { display: flex; align-items: baseline; gap: 20px; padding: 20px 6px; color: var(--fg);
  transition: padding-left .28s var(--ease), color .25s; }
.about-index a:hover { padding-left: 16px; color: var(--accent); }
.about-index .idx-n { font-family: var(--font-accent); font-weight: 600; font-size: 14px; color: var(--accent); min-width: 30px; flex: none; }
.about-index .idx-t { font-family: var(--font-accent); font-weight: 500; letter-spacing: -.01em;
  font-size: clamp(1.05rem,1.7vw,1.4rem); line-height: 1.25; }

.about-sec { scroll-margin-top: 88px; padding-block: clamp(40px,6vh,68px); }
.about-sec + .about-sec { border-top: 1px solid var(--hair); }
.about-sec .sec-num { color: var(--accent); font-weight: 600; font-family: var(--font-accent); }
.h-sm { font-size: clamp(1.5rem,2.4vw,2.05rem); line-height: 1.1; }
.as-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px,5vw,72px); align-items: start; }
.as-head { position: sticky; top: 96px; }
.as-head .h-sm { margin-top: 10px; }
.as-body.prose { max-width: 62ch; }
.as-body.prose p { color: var(--fg-muted); font-size: 17px; line-height: 1.66; margin: 0 0 18px; }
.as-body .pubchips { margin-top: 22px; }
.as-body .teaching-link { margin-top: 6px; }
.soc-intro { max-width: 70ch; margin: clamp(24px,3vh,36px) 0 0; }
.soc-intro + .soc-list { margin-top: clamp(28px,3.6vh,44px); }
.stats-band { margin: 0; }
@media (max-width: 860px) {
  .as-grid { grid-template-columns: 1fr; gap: 20px; }
  .as-head { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .marquee-track { animation: none; }
}
[data-motion="off"] .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
[data-motion="off"] .marquee-track { animation: none; }

/* ============================================================
   LOCATIONS
   ============================================================ */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(40px,6vh,72px); }
.loc-card { position: relative; border-radius: 20px; overflow: hidden; background: var(--bg); border: 1px solid var(--hair);
  display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.loc-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(1,42,58,.45); border-color: transparent; }
.loc-banner { position: relative; height: 200px; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 70%, var(--brand-3) 130%); }
.loc-banner .photo { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.loc-card:hover .loc-banner .photo { transform: scale(1.05); }
.loc-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,38,58,.72)); }
.loc-banner .mk { position: absolute; right: -34px; top: -34px; width: 150px; height: 150px; opacity: .14;
  filter: brightness(0) invert(1); }
.loc-banner .city { position: absolute; left: 24px; bottom: 18px; z-index: 1; color: #fff;
  font-family: var(--font-accent); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; }
.loc-banner .city svg { width: 15px; height: 15px; opacity: .85; }
.loc-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.loc-body h3 { font-size: clamp(1.25rem,1.7vw,1.55rem); }
.loc-body .addr { color: var(--fg-muted); font-size: 14.5px; line-height: 1.55; margin: 12px 0 20px; flex: 1; }
.loc-link { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.loc-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.loc-link:hover svg { transform: translateX(4px); }
@media (max-width: 920px) { .loc-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tst-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: clamp(40px,6vh,72px); }
.tst { padding: 34px 32px; border-radius: 20px; border: 1px solid var(--hair); background: var(--bg);
  display: flex; flex-direction: column; gap: 18px; }
.tst .mark { font-family: var(--font-display); font-size: 56px; line-height: .6; color: var(--accent); opacity: .5; height: 24px; }
.tst-top { display: flex; align-items: center; gap: 13px; }
.tst-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-family: var(--font-accent); font-weight: 600; font-size: 1.15rem; }
[data-variant="dark"] .tst-avatar { background: var(--brand-2); color: #07111c; }
.tst-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tst-name { font-family: var(--font-accent); font-weight: 600; font-size: 1.02rem; color: var(--fg); letter-spacing: -.01em; }
.tst-meta { font-size: 12.5px; color: var(--fg-muted); }
.tst-g { width: 20px; height: 20px; flex: none; }
.stars { display: inline-flex; gap: 3px; color: #f5a623; }
.stars svg.off { color: color-mix(in srgb, currentColor 22%, transparent); }
.tst-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.rating-badge { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; padding: 18px 22px;
  border: 1px solid var(--hair); border-radius: 16px; background: var(--bg); }
.rating-badge > svg { width: 22px; height: 22px; }
.rb-stars { display: flex; align-items: center; gap: 10px; }
.rb-num { font-family: var(--font-accent); font-weight: 700; font-size: 1.35rem; color: var(--fg); letter-spacing: -.01em; }
.rb-sub { font-size: 12.5px; color: var(--fg-muted); }
@media (max-width: 620px) { .tst-head { flex-direction: column; align-items: flex-start; } .rating-badge { width: 100%; } }
.tst q { font-size: 17px; line-height: 1.55; quotes: none; flex: 1; }
.tst .who { font-size: 13.5px; color: var(--fg-muted); }
.tst-note { font-size: 12.5px; color: var(--fg-muted); margin-top: 22px; font-style: italic; }
.tst-cta { margin-top: clamp(32px,4vh,48px); display: flex; justify-content: center; }
.tst-cta .btn { gap: 10px; }
.tst-cta .btn svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .tst-grid { grid-template-columns: 1fr; } }
.tst-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .tst-grid-2 { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,96px); align-items: start; }
.contact-l .h2 { margin: 14px 0 18px; }
.wa-card { margin-top: 30px; display: inline-flex; align-items: center; gap: 16px; padding: 18px 24px; border-radius: 16px;
  border: 1px solid var(--hair); background: var(--bg); transition: transform .25s var(--ease), border-color .2s; }
.wa-card:hover { transform: translateY(-2px); border-color: var(--fg); }
.wa-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.wa-card .ic svg { width: 22px; height: 22px; }
.wa-card .num { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.wa-card .lbl { font-size: 12.5px; color: var(--fg-muted); }
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; letter-spacing: .04em; color: var(--fg-muted); font-weight: 500; }
.field input, .field textarea { font-family: var(--font-body); font-size: 15px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--hair); border-radius: 11px; padding: 13px 15px; outline: none; transition: border-color .2s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.form .btn-solid { justify-content: center; margin-top: 6px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form .row2 { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--brand); color: var(--paper-2); padding: clamp(60px,9vh,110px) 0 40px; }
[data-variant="warm"] .footer { color: #faf6ee; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .nm { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.footer-brand .tg { color: rgba(255,255,255,.62); font-size: 14px; margin-top: 10px; max-width: 26ch; line-height: 1.5; }
.footer h5 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 16px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer a, .footer li { color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.45; }
.footer a:hover { color: #fff; }
.footer .ig-link { display: inline-flex; align-items: center; gap: 7px; }
.footer .ig-ico { width: 16px; height: 16px; flex: none; }
.footer-bottom { max-width: var(--maxw); margin: 56px auto 0; padding: 22px var(--gutter) 0; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.55); }
@media (max-width: 820px) { .footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer .wrap { grid-template-columns: 1fr; } }

/* page-internal hero (subpages) */
.subhero { padding: clamp(130px,18vh,200px) 0 clamp(50px,8vh,90px); background: var(--bg); color: var(--fg); }
.subhero .display { max-width: 18ch; margin-top: 10px; }
.subhero .lede { margin-top: 24px; }
.prose { max-width: 64ch; }
.prose p { color: var(--fg-muted); font-size: 17px; line-height: 1.65; margin: 0 0 18px; }

/* Subpages: nav is always solid (no dark hero behind it) */
.nav.static { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line); }
.nav-links a.current { opacity: 1; color: var(--accent); }

/* breadcrumb on subhero */
.crumbs { font-family: var(--font-accent); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); display: inline-flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }

/* ============================================================
   SERVICES (Pacientes page)
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(40px,6vh,72px); }
.svc-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--hair); background: var(--bg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(1,42,58,.4); border-color: transparent; }
.svc-top { position: relative; height: clamp(210px, 24vw, 280px); display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 72%, var(--brand-3) 130%); }
.svc-top.has-photo { display: block; }
.svc-top.has-photo .photo { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-card:hover .svc-top.has-photo .photo { transform: scale(1.05); }
.svc-top.has-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,38,58,.12) 0%, transparent 45%, rgba(0,38,58,.32) 100%); }
.svc-top .mk { position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; opacity: .16; filter: brightness(0) invert(1); }
.svc-top svg { width: 44px; height: 44px; color: #fff; position: relative; z-index: 1; }
.svc-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: clamp(1.3rem,1.8vw,1.6rem); }
.svc-body p { color: var(--fg-muted); font-size: 15.5px; line-height: 1.6; margin: 12px 0 22px; flex: 1; }
.svc-link { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.svc-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.svc-link:hover svg { transform: translateX(4px); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* ============================================================
   CONTACT METHODS (Contacto page)
   ============================================================ */
.cm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(36px,5vh,60px); }
.cm-card { display: flex; flex-direction: column; gap: 14px; padding: 30px 30px 32px; border-radius: 18px;
  border: 1px solid var(--hair); background: var(--bg); transition: transform .3s var(--ease), border-color .25s; }
.cm-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.cm-card .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.cm-card .ic svg { width: 24px; height: 24px; }
.cm-card h3 { font-size: 1.15rem; }
.cm-card .val { font-family: var(--font-accent); font-weight: 600; font-size: 1.05rem; color: var(--fg); }
.cm-card .sub { font-size: 13.5px; color: var(--fg-muted); margin-top: -6px; }
.cm-card .go { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.cm-card .go svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.cm-card:hover .go svg { transform: translateX(4px); }
@media (max-width: 820px) { .cm-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* ============================================================
   ABOUT PAGE (sobre.html)
   ============================================================ */
.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,90px); margin-top: clamp(40px,6vh,72px); align-items: start; }
.bio-text p { color: var(--fg-muted); font-size: 17px; line-height: 1.66; margin: 0 0 18px; max-width: 50ch; }
.bio-text p strong { color: var(--fg); font-weight: 600; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { padding: 26px 0; border-top: 1px solid var(--hair); }
.tl-item:last-child { border-bottom: 1px solid var(--hair); }
.tl-item .rule { width: 30px; height: 2px; background: var(--accent); margin-bottom: 16px; }
.tl-item h3 { font-size: clamp(1.2rem,1.7vw,1.55rem); margin-bottom: 12px; }
.tl-item .meta { font-size: 14.5px; color: var(--fg-muted); line-height: 1.6; }
.tl-item .meta b { color: var(--fg); font-weight: 600; }
.tl-item .meta .place { color: var(--accent); }
@media (max-width: 880px) { .bio-grid { grid-template-columns: 1fr; gap: 36px; } }

.about-hero { background: var(--brand); color: #fff; padding: clamp(104px,15vh,150px) 0 clamp(48px,7vh,84px); }
[data-variant="warm"] .about-hero { color: #faf6ee; }
.about-hero-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px,4vw,56px); align-items: center; }
.about-hero-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 28px 60px -30px rgba(0,0,0,.5); }
.about-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.about-hero-text .kicker { color: var(--accent-2, #7fb0d6); margin-bottom: 18px; }
[data-variant="dark"] .about-hero-text .kicker { color: var(--brand-2); }
.about-hero-text .nm { font-family: var(--font-accent); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(2rem,4.2vw,3.4rem); line-height: 1.05; }
.about-hero-text .tg { color: rgba(255,255,255,.78); margin-top: 12px; font-size: clamp(15px,1.4vw,19px); }
[data-variant="warm"] .about-hero-text .tg { color: rgba(255,255,255,.8); }
@media (max-width: 760px) {
  .about-hero-grid { grid-template-columns: 1fr; gap: 26px; justify-items: center; text-align: center; }
  .about-hero-photo { width: min(74vw, 280px); }
  .about-hero-text .kicker { justify-content: center; }
}

/* ============================================================
   ACADEMIC CAROUSEL
   ============================================================ */
.acad-carousel { position: relative; border-radius: 22px; overflow: hidden; margin-top: clamp(36px,5vh,60px);
  aspect-ratio: 16 / 9; background: var(--hero-bg); }
.acad-carousel .ctrack { position: absolute; inset: 0; }
.acad-carousel .cslide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s var(--ease); }
.acad-carousel .cslide.active { opacity: 1; }
.acad-carousel .cdots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2;
  display: flex; justify-content: center; gap: 10px; }
.acad-carousel .cdot { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.45); transition: background .3s, width .3s; }
.acad-carousel .cdot:hover { background: rgba(255,255,255,.75); }
.acad-carousel .cdot.active { background: #fff; width: 26px; }
.carr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px;
  border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(8,22,33,.55); color: #fff; backdrop-filter: blur(6px); transition: background .25s; }
.carr:hover { background: rgba(8,22,33,.85); }
.carr svg { width: 20px; height: 20px; }
.carr.prev { left: 16px; } .carr.next { right: 16px; }
@media (max-width: 700px) { .acad-carousel { aspect-ratio: 3 / 4; } .carr { width: 38px; height: 38px; } }

/* ============================================================
   CONTACT — left column (email / redes) + form note
   ============================================================ */
.contact-info { display: flex; flex-direction: column; gap: 26px; margin-top: 32px; }
.ci-row { display: flex; gap: 48px; flex-wrap: wrap; }
.ci-block h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; font-weight: 600; }
.ci-block a, .ci-block .v { font-family: var(--font-accent); font-weight: 500; font-size: 1.05rem; color: var(--fg); }
.ci-block a:hover { color: var(--accent); }
.socials { display: flex; gap: 12px; }
.socials a { width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--hair); display: grid; place-items: center; color: var(--fg); transition: border-color .25s, color .25s, transform .25s; }
.socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.socials a svg { width: 19px; height: 19px; }
.form-note { font-size: 13.5px; color: var(--accent); margin: 0; opacity: 0; height: 0; overflow: hidden; transition: opacity .3s; }
.form-note.show { opacity: 1; height: auto; margin-top: 4px; }

/* ============================================================
   PROTOCOLS — password gate + protocol cards
   ============================================================ */
.gate { position: fixed; inset: 0; z-index: 300; background: var(--paper); color: var(--ink);
  display: grid; place-items: center; padding: var(--gutter); text-align: center;
  transition: opacity .45s var(--ease), visibility .45s; }
.gate.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-inner { width: 100%; max-width: 440px; }
.gate .lock { width: 46px; height: 46px; margin: 0 auto 26px; color: var(--accent); }
.gate h1 { font-family: var(--font-accent); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.04; }
.gate p { color: var(--fg-muted); font-size: 1.05rem; margin: 14px 0 36px; }
.gate form { display: flex; flex-direction: column; gap: 22px; }
.gate input { font-family: var(--font-body); font-size: 1.05rem; text-align: center; color: var(--ink);
  background: none; border: 0; border-bottom: 1.5px solid var(--hair); padding: 14px 6px; outline: none;
  transition: border-color .25s; }
.gate input:focus { border-bottom-color: var(--accent); }
.gate input.err { border-bottom-color: #c0392b; animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-7px)} 75%{transform:translateX(7px)} }
.gate .btn-solid { justify-content: center; width: 100%; padding: 16px; font-size: 1rem; }
.gate .err-msg { color: #c0392b; font-size: 13.5px; min-height: 18px; margin: 0; opacity: 0; transition: opacity .2s; }
.gate .err-msg.show { opacity: 1; }
.gate-close { position: absolute; top: 26px; right: 30px; width: 46px; height: 46px; border: 0; background: none;
  cursor: pointer; color: var(--ink); display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.gate-close:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.gate-close svg { width: 24px; height: 24px; }

.proto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: clamp(40px,6vh,72px); }
.proto-card { display: flex; gap: 22px; align-items: flex-start; padding: 28px 30px; border-radius: 18px;
  border: 1px solid var(--hair); background: var(--bg); transition: transform .3s var(--ease), border-color .25s, box-shadow .3s; }
.proto-card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 24px 46px -28px rgba(1,42,58,.4); }
.proto-card .pic { width: 52px; height: 52px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-2)); color: #fff; }
.proto-card .pic svg { width: 26px; height: 26px; }
.proto-card h3 { font-size: 1.25rem; }
.proto-card p { color: var(--fg-muted); font-size: 15px; line-height: 1.55; margin: 8px 0 16px; }
.proto-card .dl { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.proto-card .dl svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.proto-card:hover .dl svg { transform: translateY(2px); }
@media (max-width: 820px) { .proto-grid { grid-template-columns: 1fr; } }

/* ============================================================
   MOBILE-ONLY HERO TWEAKS
   ============================================================ */
@media (max-width: 600px) {
  /* Smaller hero typography on phones */
  .hero h1.display { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.06; }
  .hero .kicker { font-size: 11px; }
  .hero .lede.hero-sub { font-size: 1rem; line-height: 1.5; margin-top: 18px; }
  .hero-actions { margin-top: 26px; gap: 10px; }
  .hero-actions .btn { padding: 13px 20px; font-size: 14px; }

  /* 2nd hero photo (cirugía): shift right so Dr. Lacouture stays in frame */
  .hero-slide:nth-child(2) { object-position: 74% center; }
}
