/* ═══════════════════════════════════════════════════════════════
   de la Flor Odontología (dlFO) — Tema moderno "claro premium"
   Sora (display) + Inter (texto) · acento rojo de marca
   ═══════════════════════════════════════════════════════════════ */

:root {
  --red:       #e2231a;   /* rojo de marca */
  --red-2:     #c30a14;   /* rojo profundo (hover/sólidos) */
  --red-soft:  #fcebe9;   /* lavado rojo claro */
  --red-tint:  #fdf4f2;   /* fondo cálido muy claro */
  --ink:       #19100f;   /* casi negro cálido */
  --ink-2:     #3b2c2a;
  --muted:     #877471;   /* gris cálido */
  --line:      rgba(25,16,15,0.10);
  --line-2:    rgba(25,16,15,0.06);
  --white:     #ffffff;
  --bg:        #ffffff;
  --bg-soft:   #faf5f3;

  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 80px);
  --sec: clamp(72px, 9vw, 150px);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-pill: 999px;

  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
html, body { overflow-x: hidden; max-width: 100%; }
.page-wrap { overflow-x: hidden; position: relative; width: 100%; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.d1{transition-delay:.08s}.d2{transition-delay:.16s}.d3{transition-delay:.24s}.d4{transition-delay:.32s}.d5{transition-delay:.4s}

/* ── Layout helpers ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--red-tint); }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red-2);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: #fff; }

/* ── Headings ── */
.h-xl, .h-lg, .h-md {
  font-family: var(--font-head); font-weight: 800; color: var(--ink);
  letter-spacing: -0.03em; line-height: 1.02;
}
.h-xl { font-size: clamp(35px, 7.5vw, 104px); overflow-wrap: break-word; }
.h-lg { font-size: clamp(34px, 5vw, 64px); line-height: 1.05; }
.h-md { font-size: clamp(24px, 3vw, 38px); line-height: 1.1; }
.h-xl .red, .h-lg .red, .h-md .red { color: var(--red); }
.h-xl .outline {
  color: transparent; -webkit-text-stroke: 2px var(--red); text-stroke: 2px var(--red);
}
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; color: var(--muted); }
.muted { color: var(--muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  padding: 15px 26px; border-radius: var(--r-pill);
  transition: transform .25s, background .25s, color .25s, box-shadow .25s;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(226,35,26,0.28); }
.btn--primary:hover { background: var(--red-2); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(226,35,26,0.34); }
.btn--primary svg { fill: none; stroke: #fff; stroke-width: 2; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--dark svg { fill: none; stroke: #fff; stroke-width: 2; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--ghost svg { fill: none; stroke: currentColor; stroke-width: 2; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.18); }
.btn--white svg { fill: none; stroke: var(--ink); stroke-width: 2; }
.btn--sm { padding: 11px 18px; font-size: 13px; }

/* ════════════ NAV ════════════ */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: padding .35s, background .35s, box-shadow .35s;
}
nav.up {
  padding: 11px var(--pad);
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 50px; height: 50px; border-radius: 50%; }
.logo .wordmark { display: flex; flex-direction: column; line-height: 1.06; }
.logo .wordmark b { font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.logo .wordmark small { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--red-2); }
.nav-links .nav-btn { background: var(--red); color: #fff; padding: 11px 20px; border-radius: var(--r-pill); font-weight: 600; box-shadow: 0 8px 22px rgba(226,35,26,0.26); }
.nav-links .nav-btn:hover { background: var(--red-2); color: #fff; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; display: block; }

.mob { display: none; position: fixed; inset: 0; z-index: 300; background: var(--white); flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.mob.open { display: flex; }
.mob a { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--ink); text-decoration: none; }
.mob a.mob-cta { background: var(--red); color: #fff; padding: 14px 34px; border-radius: var(--r-pill); font-size: 18px; }
.mob-close { position: absolute; top: 22px; right: 26px; font-size: 30px; background: none; border: none; cursor: pointer; color: var(--ink); }

/* ════════════ HERO (editorial centrado) ════════════ */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(120px, 16vh, 180px) var(--pad) clamp(60px, 8vw, 110px);
  background:
    radial-gradient(90% 60% at 50% -8%, var(--red-soft) 0%, rgba(252,235,233,0) 60%),
    var(--bg);
}
/* Hero con carrusel de fondo (la imagen cambia, el texto queda fijo) */
.hero--photo { display: flex; align-items: center; justify-content: center; min-height: clamp(500px, 76vh, 720px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(150deg, var(--red-soft), #fff); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; will-change: opacity; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.80) 42%, rgba(255,255,255,0.88) 100%); }
.hero--photo .hero-watermark { z-index: 2; opacity: .5; }
.hero-watermark {
  position: absolute; left: 50%; top: 56%; transform: translate(-50%,-50%);
  font-family: var(--font-head); font-weight: 800; font-size: 38vw; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(226,35,26,0.06); text-stroke: 1px rgba(226,35,26,0.06);
  pointer-events: none; z-index: 0; white-space: nowrap; letter-spacing: -0.04em;
}
.hero-inner { position: relative; z-index: 3; max-width: 1000px; margin: 0 auto; }
.hero-badge {
  width: 92px; height: 92px; margin: 0 auto 26px; position: relative;
  display: grid; place-items: center;
}
.hero-badge img { width: 92px; height: 92px; border-radius: 50%; filter: drop-shadow(0 16px 30px rgba(226,35,26,0.25)); position: relative; z-index: 2; }
.hero-badge::before {
  content: ''; position: absolute; inset: -14px; border-radius: 50%;
  border: 1.5px dashed rgba(226,35,26,0.35); animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero h1 { margin: 18px 0 22px; }
.hero .lead { max-width: 620px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(48px, 6vw, 80px); padding-top: 40px; border-top: 1px solid var(--line);
}
.hero-stat { text-align: center; }
.hero-stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.hero-stat span { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: block; max-width: 150px; }
/* Tira de credenciales del hero */
.hero-trust {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 16px; margin-top: 28px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em;
}
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); display: inline-block; }

/* Sección Confianza & acceso */
.trust-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.trust-head h2 { margin-top: 14px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 36px 32px; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.trust-card:hover { transform: translateY(-5px); box-shadow: 0 28px 56px rgba(25,16,15,0.08); border-color: transparent; }
.trust-icon { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--red-soft); display: grid; place-items: center; margin-bottom: 22px; }
.trust-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--red-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-card h3 { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }
.trust-card p { font-size: 14.5px; color: var(--muted); line-height: 1.7; margin-bottom: 22px; flex: 1; }
.trust-card a {
  align-self: flex-start;
  font-size: 14px; font-weight: 700; color: var(--red-2);
  text-decoration: none; padding-bottom: 3px;
  border-bottom: 2px solid var(--red-soft);
  transition: border-color .25s, color .25s;
}
.trust-card a:hover { border-color: var(--red-2); color: var(--red); }
@media (max-width: 980px) { .trust-grid { grid-template-columns: 1fr; } .trust-head { margin-bottom: 36px; } }

.scroll-cue { margin-top: 54px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--red), transparent); display: block; animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100%{ transform: scaleY(.4); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* ════════════ MARQUEE ════════════ */
.marquee { background: var(--ink); color: #fff; padding: 18px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; gap: 0; animation: mq 32s linear infinite; }
.marquee-item { display: inline-flex; align-items: center; gap: 26px; padding: 0 26px; font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.marquee-item::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ════════════ NOSOTROS (asimétrico) ════════════ */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 90px); align-items: stretch; }
.about-copy h2 { margin: 16px 0 22px; }
.about-copy .lead + .lead { margin-top: 14px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.about-tag { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); padding: 9px 15px; border-radius: var(--r-pill); }
.about-tag b { color: var(--red-2); }
.about-side { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; align-items: stretch; }
.about-side .fact:not(.fact--tall) { display: flex; flex-direction: column; justify-content: center; }
.fact {
  border-radius: var(--r-lg); padding: 30px 26px; border: 1px solid var(--line);
  background: var(--white); position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.fact:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(25,16,15,0.08); }
.fact--red { background: var(--red); border-color: var(--red); color: #fff; }
.fact--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.fact--tall { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }

/* Tarjeta roja con retrato del Dr. (busto edge-to-edge, fade hacia abajo) */
.fact--photo {
  padding: 0;
  border: none;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  position: relative;
}
.fact-photo-text {
  position: relative; z-index: 2;
  padding: 0 22px 26px;
}
.fact-photo-text .fact-n { font-size: clamp(40px, 4.8vw, 56px); line-height: 1; }
.fact-photo-text .fact-l { font-size: 12.5px; line-height: 1.55; margin-top: 10px; max-width: 92%; }
.fact-portrait {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 94%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 94%);
}
.fact-n { font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.03em; line-height: 1; }
.fact-l { font-size: 13.5px; line-height: 1.55; margin-top: 12px; opacity: .92; }
.fact--red .fact-l, .fact--ink .fact-l { color: rgba(255,255,255,0.9); }

/* ════════════ SERVICIOS (scroll horizontal) ════════════ */
.serv { padding-block: var(--sec); overflow: hidden; }
.serv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.serv-head h2 { margin-top: 14px; }
.serv-drag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.serv-drag svg { width: 30px; height: 16px; stroke: var(--red); fill: none; stroke-width: 1.6; }
.serv-scroller {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--pad) 30px;
  scrollbar-width: none; max-width: 100%;
}
.serv-scroller::-webkit-scrollbar { display: none; }
.serv-card {
  scroll-snap-align: start; flex: 0 0 min(82vw, 360px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 34px 30px; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.serv-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(25,16,15,0.10); border-color: transparent; }
.serv-card--feat { background: var(--red); border-color: var(--red); color: #fff; }
.serv-icon { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--red-soft); display: grid; place-items: center; margin-bottom: 22px; }
.serv-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--red-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.serv-card--feat .serv-icon { background: rgba(255,255,255,0.20); }
.serv-card--feat .serv-icon svg { stroke: #fff; }
.serv-num { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--red); letter-spacing: .1em; }
.serv-card--feat .serv-num { color: rgba(255,255,255,0.85); }
.serv-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin: 8px 0 12px; }
.serv-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.serv-card--feat p { color: rgba(255,255,255,0.9); }
.serv-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
.serv-list li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; line-height: 1.5; }
.serv-list li::before { content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c30a14' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat; }
.serv-card--feat .serv-list li { color: rgba(255,255,255,0.92); }
.serv-card--feat .serv-list li::before { background-color: rgba(255,255,255,0.22); }
.serv-progress { height: 4px; background: var(--line-2); border-radius: 999px; margin: 0 auto; max-width: 220px; overflow: hidden; }
.serv-progress i { display: block; height: 100%; width: 24%; background: var(--red); border-radius: 999px; transition: transform .15s linear; transform-origin: left; }
/* Grilla de servicios (reemplaza el scroll horizontal) */
.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.serv-grid .serv-card { flex: initial; width: auto; }
@media (max-width: 980px) { .serv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .serv-grid { grid-template-columns: 1fr; } }

/* ════════════ GALERÍA ════════════ */
.gal-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.gal-head h2 { margin-top: 14px; }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.gal-item {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-soft);
  margin: 0;
  grid-column: span 2;
}
/* Mosaico 3 arriba + 2 abajo centradas */
.gal-item:nth-child(4) { grid-column: 2 / span 2; }
.gal-item:nth-child(5) { grid-column: 4 / span 2; }
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.gal-item:hover img { transform: scale(1.06); }
@media (max-width: 980px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-item, .gal-item:nth-child(4), .gal-item:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 520px) {
  .gal-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ════════════ ENFOQUE (cómo trabajamos) ════════════ */
.enfoque-head { max-width: 680px; margin-bottom: 56px; }
.enfoque-head h2 { margin-top: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 36px 26px 0; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: none; }
.step:hover .step-n { color: var(--red); }
.step-n { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--muted); letter-spacing: .12em; transition: color .3s; }
.step h3 { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 18px 0 12px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; padding-bottom: 8px; }
.step::before { content: ''; position: absolute; top: -1px; left: 0; width: 0; height: 3px; background: var(--red); transition: width .5s cubic-bezier(.16,1,.3,1); }
.step.in::before { width: 100%; }

/* ════════════ EQUIPO (lista hover-reveal) ════════════ */
.team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.team-head h2 { margin-top: 14px; }
.team-list { border-top: 1px solid var(--line); }
.team-row {
  display: grid; grid-template-columns: 42px 60px 1fr auto; align-items: center; gap: 22px;
  padding: 22px 8px; border-bottom: 1px solid var(--line);
  position: relative; text-decoration: none; color: inherit; overflow: hidden;
  transition: padding .35s cubic-bezier(.16,1,.3,1);
}
.team-row::before { content: ''; position: absolute; inset: 0; background: var(--red); transform: translateX(-101%); transition: transform .5s cubic-bezier(.16,1,.3,1); z-index: 0; }
.team-row > * { position: relative; z-index: 1; transition: color .35s; }
.team-row:hover { padding-left: 26px; padding-right: 26px; }
.team-row:hover::before { transform: translateX(0); }
.team-row:hover, .team-row:hover .team-role, .team-row:hover .team-idx, .team-row:hover .team-meta { color: #fff; }
.team-idx { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--red); letter-spacing: .08em; }
.team-ava { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; display: block; background: var(--bg-soft); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.team-ava img, .team-ava svg { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.team-ava svg { fill: #c8202a; }
.team-row:hover .team-ava { box-shadow: 0 0 0 2px rgba(255,255,255,.65); }
.team-name { font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 2.6vw, 32px); letter-spacing: -0.02em; line-height: 1.1; }
.team-role { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.team-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.team-meta .team-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 6px 12px; border-radius: var(--r-pill); background: var(--red-soft); color: var(--red-2); }
.team-row:hover .team-meta .team-tag { background: rgba(255,255,255,0.2); color: #fff; }
.team-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex-shrink: 0; transition: border-color .3s, background .3s; }
.team-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s; }
.team-row:hover .team-arrow { border-color: rgba(255,255,255,0.5); }
.team-row:hover .team-arrow svg { transform: rotate(-45deg); }
.team-note { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ════════════ SEDES (tabs) ════════════ */
.sedes-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sedes-head h2 { margin-top: 14px; }
.sede-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 34px; }
.sede-tab {
  font-family: var(--font-body); font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 12px 26px; border-radius: var(--r-pill); border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink-2); transition: all .25s;
}
.sede-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.sede-panel { display: none; }
.sede-panel.active { display: block; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sede-card { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--white); }
.sede-map { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.sede-photo { width: 100%; height: 100%; min-height: 380px; background-size: cover; background-position: center; background-color: var(--red-soft); background-image: linear-gradient(150deg, var(--red-soft), #fff); }
.sede-info { padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.sede-info h3 { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; }
.sede-info h3 .red { color: var(--red); }
.sede-meta { list-style: none; display: flex; flex-direction: column; gap: 16px; margin: 24px 0 30px; }
.sede-meta li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.sede-meta li svg { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: var(--red); stroke-width: 1.7; margin-top: 1px; }
.sede-meta a { color: var(--ink-2); text-decoration: none; }
.sede-meta a:hover { color: var(--red-2); }
.sede-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sede-central { text-align: center; margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; font-size: 14px; color: var(--muted); }
.sede-central a { color: var(--red-2); text-decoration: none; font-weight: 600; }

/* ════════════ TESTIMONIOS ════════════ */
.testi-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.testi-head h2 { margin-top: 14px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px 28px; transition: transform .3s, box-shadow .3s; }
.testi-card:hover { transform: translateY(-5px); box-shadow: 0 28px 56px rgba(25,16,15,0.08); }
.testi-stars { color: var(--red); letter-spacing: 3px; font-size: 15px; margin-bottom: 16px; }
.testi-card blockquote { font-size: 16px; line-height: 1.7; color: var(--ink); margin-bottom: 20px; }
.testi-who b { font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.testi-who span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.testi-cta { text-align: center; margin-top: 38px; }

/* ════════════ FAQ ════════════ */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-head { text-align: center; margin-bottom: 42px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 6px; font-family: var(--font-head); font-size: clamp(16px, 2vw, 20px);
  font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
}
.faq-plus { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 20px; color: var(--red-2); transition: all .3s; }
.faq-item.open .faq-plus { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a-inner { padding: 0 6px 26px; font-size: 15.5px; line-height: 1.75; color: var(--muted); max-width: 90%; }

/* ════════════ CONTACTO ════════════ */
.contacto { background: var(--ink); color: #fff; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.contacto-copy h2 { margin: 16px 0 20px; color: #fff; }
.contacto-copy .lead { color: rgba(255,255,255,0.78); }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--red); stroke-width: 1.7; margin-top: 3px; }
.contact-list b { display: block; font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,0.6); text-transform: uppercase; margin-bottom: 3px; font-weight: 600; }
.contact-list a, .contact-list span { color: #fff; font-size: 15.5px; text-decoration: none; }
.contact-list a:hover { color: var(--red); }
.contact-card { background: var(--white); border-radius: var(--r-xl); padding: clamp(30px, 4vw, 46px); color: var(--ink); }
.form-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--red-2); background: var(--red-soft); padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 16px; }
.contact-card h3 { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; margin-bottom: 8px; }
.contact-card .muted { font-size: 14.5px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 12px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 15px 18px; background: var(--bg-soft); border: 1.5px solid transparent;
  border-radius: var(--r-md); font-family: var(--font-body); font-size: 16px; color: var(--ink);
  outline: none; transition: border-color .25s, background .25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); background: #fff; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.form-group textarea { resize: vertical; min-height: 92px; }
.form-submit { background: var(--red); color: #fff; border: none; padding: 16px; border-radius: var(--r-md); font-family: var(--font-body); font-size: 15px; font-weight: 700; cursor: pointer; transition: background .25s, transform .2s; }
.form-submit:hover { background: var(--red-2); transform: translateY(-2px); }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ════════════ FOOTER ════════════ */
footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-block: clamp(56px, 7vw, 90px) 48px; }
.f-logo { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.f-logo img { width: 56px; height: 56px; border-radius: 50%; }
.f-logo b { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--ink); }
.f-logo small { display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); font-weight: 600; }
.f-desc { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 280px; }
footer h5 { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
footer ul a, footer ul li { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
footer ul a:hover { color: var(--red-2); }
.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px 30px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* ════════════ WhatsApp flotante ════════════ */
.wa { position: fixed; bottom: 26px; right: 26px; z-index: 250; display: flex; align-items: center; gap: 10px; background: #25D366; color: #fff; text-decoration: none; padding: 14px 20px; border-radius: var(--r-pill); box-shadow: 0 14px 34px rgba(37,211,102,0.4); font-size: 14px; font-weight: 700; transition: transform .25s, box-shadow .25s; }
.wa:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(37,211,102,0.5); }
.wa svg { width: 20px; height: 20px; fill: #fff; }

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 36px; }
  .sede-card { grid-template-columns: 1fr; }
  .sede-map { min-height: 280px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--line); }
  .step:nth-child(2) { border-right: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  nav.up { padding: 10px var(--pad); }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-watermark { font-size: 60vw; }
  .serv-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .team-row { grid-template-columns: 30px 48px 1fr auto; gap: 12px; }
  .team-ava { width: 46px; height: 46px; }
  .team-meta .team-tag { display: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .f-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; }
  .hero-stats { gap: 22px; }
}
