/* ═══════════════════════════════════════════════
   ALCLINIDENT 2.0 — Sistema de Diseño
   Endodoncia y Microcirugía Apical · Cuenca
   ═══════════════════════════════════════════════ */

:root {
  /* Marca — derivado del logotipo oficial */
  --navy:       #0A2540;
  --navy-2:     #123A5F;
  --blue:       #1565C0;
  --blue-light: #3D8BE8;
  --blue-soft:  #EAF3FC;
  --blue-glow:  rgba(21, 101, 192, 0.18);
  --steel:      #5C7A99;
  --gold:       #C9A227;
  --green-wa:   #25D366;
  --red-urg:    #D64545;

  --ink:        #12212F;
  --ink-soft:   #47617A;
  --paper:      #FFFFFF;
  --paper-warm: #F7FAFD;
  --line:       #D9E7F4;

  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body:    'Manrope', -apple-system, sans-serif;

  --radius: 18px;
  --shadow-sm: 0 2px 12px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 12px 40px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 24px 70px rgba(10, 37, 64, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.45s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-alt { background: var(--paper-warm); }

/* ── Tipografía de sección ── */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.kicker::before { content: ''; width: 26px; height: 2px; background: var(--blue); border-radius: 2px; }
.h-section {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12;
  color: var(--navy); margin-bottom: 16px; letter-spacing: -0.01em;
}
.h-section em {
  font-style: italic;
  background: linear-gradient(120deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.sub-section { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); max-width: 580px; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .sub-section { margin: 0 auto; }
.section-head.center .kicker { justify-content: center; }
.section-head.center .kicker::before { display: none; }

/* ── Loader ── */
#loader {
  position: fixed; inset: 0; z-index: 10000; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity 0.5s ease, visibility 0.5s;
}
#loader.hide { opacity: 0; visibility: hidden; }
#loader img { width: 130px; animation: loaderPulse 1.6s ease-in-out infinite; }
@keyframes loaderPulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: 0.65; transform: scale(0.97);} }
#loader-bar { width: 180px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
#loader-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--blue-light)); border-radius: 3px; transition: width 0.4s ease; }

/* ── Navbar ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 950;
  padding: 16px 0; transition: var(--t);
}
.nav.scrolled {
  background: rgba(255,255,255,0.94); backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm); padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand img { height: 46px; width: auto; transition: filter 0.35s ease; }
/* Sobre el hero oscuro: logo en blanco */
.nav:not(.scrolled) .nav-brand img { filter: brightness(0) invert(1); }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-name { font-family: var(--ff-display); font-weight: 700; font-size: 19px; color: #fff; letter-spacing: 0.02em; transition: color 0.35s; }
.nav-brand-sub { font-size: 9.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #8FC1F2; transition: color 0.35s; }
.nav.scrolled .nav-brand-name { color: var(--navy); }
.nav.scrolled .nav-brand-sub { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.82); transition: color 0.25s; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--blue-light); border-radius: 2px; transition: width 0.3s var(--ease); }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav.scrolled .nav-links a:hover { color: var(--navy); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 100px; border: none;
  background: linear-gradient(120deg, var(--blue), var(--blue-light));
  color: #fff; font-size: 13.5px; font-weight: 800;
  box-shadow: 0 6px 22px var(--blue-glow); transition: var(--t);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--blue-glow); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-burger span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: var(--t); }
.nav.scrolled .nav-burger span { background: var(--navy); }
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
.nav-mobile {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 940;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(18px);
  padding: 20px 28px 26px; flex-direction: column; gap: 4px;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 4px; font-size: 16px; font-weight: 600; color: var(--ink-soft); border-bottom: 1px solid var(--line); }

/* ── Hero ── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,37,64,0.96) 22%, rgba(10,37,64,0.82) 48%, rgba(10,37,64,0.45) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 130px 28px 90px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(61,139,232,0.14); border: 1px solid rgba(61,139,232,0.35);
  color: #BFDCF9; padding: 8px 18px; border-radius: 100px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 26px;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-wa); animation: dotPulse 2s infinite; }
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5);} 55% { box-shadow: 0 0 0 7px rgba(37,211,102,0);} }
.hero h1 {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(38px, 5.6vw, 66px); line-height: 1.08; color: #fff; margin-bottom: 24px; letter-spacing: -0.015em;
}
.hero h1 em { font-style: italic; background: linear-gradient(120deg, #6FB1F5, #A8D2FB); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,0.78); max-width: 500px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.btn-solid {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 100px; border: none;
  background: linear-gradient(120deg, var(--blue), var(--blue-light));
  color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 10px 36px rgba(21,101,192,0.45); transition: var(--t);
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(21,101,192,0.55); }
.btn-line {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.35); color: #fff;
  font-size: 15px; font-weight: 700; background: transparent; transition: var(--t);
}
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-3px); }
.hero-stats { display: flex; gap: 44px; }
.hero-stat-num { font-family: var(--ff-display); font-size: 38px; font-weight: 600; color: #fff; display: block; line-height: 1; }
.hero-stat-num sup { font-size: 20px; color: #6FB1F5; }
.hero-stat-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.55); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.07em; }

/* Hero card servicios */
.hero-card {
  background: rgba(255,255,255,0.98); border-radius: 22px; padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hero-card-title { font-size: 13px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue); }
.hero-card-chip { font-size: 11px; font-weight: 800; background: var(--blue-soft); color: var(--blue); border-radius: 100px; padding: 5px 12px; }
.hc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  margin-bottom: 8px; transition: var(--t); cursor: pointer;
}
.hc-row:hover { border-color: var(--blue); background: var(--blue-soft); transform: translateX(4px); }
.hc-left { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.hc-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hc-ico svg { width: 17px; height: 17px; stroke: var(--blue); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hc-price { font-size: 13.5px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.hero-card-cta {
  width: 100%; margin-top: 14px; padding: 14px; border: none; border-radius: 12px;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; transition: var(--t);
}
.hero-card-cta:hover { background: var(--navy-2); transform: translateY(-2px); }

/* ── Marquee especialidades ── */
.marquee { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08); padding: 15px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 46px; white-space: nowrap; animation: marquee 30s linear infinite; width: max-content; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.6); letter-spacing: 0.05em; text-transform: uppercase; }
.marquee-item::before { content: '✦'; color: var(--blue-light); font-size: 11px; }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ── Trust bar ── */
.trust { padding: 26px 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-inner { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 11px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.trust-item svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ── Doctor ── */
.doctor-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.doctor-figure { position: relative; }
.doctor-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 3/3.8; box-shadow: var(--shadow-lg); position: relative; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,37,64,0.5), transparent 55%); }
.doctor-tag {
  position: absolute; bottom: 22px; left: 22px; right: 22px; z-index: 2;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(14px);
  border-radius: 15px; padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-md);
}
.doctor-tag-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--blue); }
.doctor-tag-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor-tag-name { font-size: 15px; font-weight: 800; color: var(--navy); }
.doctor-tag-role { font-size: 12px; font-weight: 600; color: var(--blue); margin-top: 2px; }
.doctor-exp {
  position: absolute; top: 26px; right: -18px; z-index: 3;
  background: var(--navy); color: #fff; border-radius: 15px; padding: 16px 22px;
  text-align: center; box-shadow: var(--shadow-lg);
}
.doctor-exp-num { font-family: var(--ff-display); font-size: 30px; font-weight: 600; display: block; line-height: 1; }
.doctor-exp-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; margin-top: 5px; display: block; }
.cred { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cred:last-of-type { border-bottom: none; }
.cred-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cred-ico svg { width: 21px; height: 21px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cred-title { font-size: 15px; font-weight: 800; color: var(--navy); }
.cred-sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.55; }

/* ── Servicios generales ── */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: var(--t); position: relative; overflow: hidden;
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.svc-card:hover { border-color: rgba(21,101,192,0.35); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.svc-ico svg { width: 25px; height: 25px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-name { font-size: 16.5px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.svc-desc { font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 18px; }
.svc-foot { display: flex; align-items: baseline; justify-content: space-between; }
.svc-price { font-family: var(--ff-display); font-size: 23px; font-weight: 600; color: var(--navy); }
.svc-price span { font-family: var(--ff-body); font-size: 12px; font-weight: 600; color: var(--steel); }
.svc-link { font-size: 12.5px; font-weight: 800; color: var(--blue); }

/* ── Especialidad (cartera 21 tratamientos) ── */
.esp-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.esp-tab {
  padding: 12px 26px; border-radius: 100px; border: 1.5px solid var(--line);
  background: var(--paper); font-size: 14px; font-weight: 800; color: var(--ink-soft); transition: var(--t);
}
.esp-tab:hover { border-color: var(--blue); color: var(--blue); }
.esp-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.esp-panel { display: none; }
.esp-panel.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; animation: fadeUp 0.5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px);} to { opacity: 1; transform: none;} }
.trat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; gap: 9px; transition: var(--t);
}
.trat-card:hover { border-color: rgba(21,101,192,0.4); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.trat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.trat-name { font-size: 15px; font-weight: 800; color: var(--navy); line-height: 1.35; }
.trat-price { font-family: var(--ff-display); font-size: 21px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.trat-price small { font-size: 11px; font-family: var(--ff-body); font-weight: 700; color: var(--steel); }
.trat-benefit { font-size: 12.5px; font-weight: 700; color: #1A8A6E; }
.trat-desc { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.trat-tag { align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 11px; border-radius: 100px; background: var(--blue-soft); color: var(--blue); margin-top: auto; }
.trat-tag.urg { background: #FDECEC; color: var(--red-urg); }
.trat-tag.gold { background: #FBF3D9; color: #9A7B14; }
.esp-note { text-align: center; margin-top: 28px; font-size: 13.5px; color: var(--ink-soft); }
.esp-note strong { color: var(--navy); }

/* ── Casos reales ── */
.casos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.caso-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: var(--t); }
.caso-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.caso-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--line); }
.caso-imgs figure { position: relative; margin: 0; cursor: zoom-in; overflow: hidden; aspect-ratio: 1/1.05; }
.caso-imgs img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.caso-imgs figure:hover img { transform: scale(1.07); }
.caso-imgs figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,37,64,0.85), transparent);
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 18px 10px 8px; text-align: center;
}
.caso-body { padding: 20px 22px; }
.caso-chip { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; background: var(--blue-soft); color: var(--blue); border-radius: 100px; padding: 4px 12px; margin-bottom: 10px; }
.caso-title { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.caso-desc { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }

/* ── Galería clínica ── */
.clinica-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.clinica-grid a { border-radius: 16px; overflow: hidden; position: relative; cursor: zoom-in; display: block; }
.clinica-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.clinica-grid a:nth-child(4) { grid-row: span 2; }
.clinica-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.clinica-grid a:hover img { transform: scale(1.06); }
.clinica-grid a::after {
  content: '⊕'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #fff; background: rgba(10,37,64,0.35); opacity: 0; transition: opacity 0.3s;
}
.clinica-grid a:hover::after { opacity: 1; }

/* ── Video strip ── */
.video-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.video-strip .vwrap { border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 4/5; box-shadow: var(--shadow-sm); }
.video-strip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vwrap-tag { position: absolute; top: 12px; right: 12px; background: rgba(10,37,64,0.7); backdrop-filter: blur(8px); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; padding: 5px 11px; border-radius: 100px; }

/* ── Proceso ── */
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: paso; }
.paso { position: relative; padding: 30px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: var(--t); }
.paso:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(21,101,192,0.3); }
.paso::before {
  counter-increment: paso; content: counter(paso, decimal-leading-zero);
  font-family: var(--ff-display); font-size: 46px; font-weight: 600; font-style: italic;
  color: var(--blue-soft); -webkit-text-stroke: 1.5px var(--blue);
  display: block; line-height: 1; margin-bottom: 18px;
}
.paso-title { font-size: 16.5px; font-weight: 800; color: var(--navy); margin-bottom: 9px; }
.paso-desc { font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); }

/* ── Testimonios ── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: var(--t); display: flex; flex-direction: column; gap: 14px;
}
.testi:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testi-stars { color: #F0A420; font-size: 15px; letter-spacing: 2.5px; }
.testi-text { font-size: 14.5px; line-height: 1.75; color: var(--ink); font-style: italic; }
.testi-text::before { content: '“'; font-family: var(--ff-display); font-size: 34px; color: var(--blue); line-height: 0; vertical-align: -10px; margin-right: 4px; }
.testi-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(130deg, var(--blue), var(--navy)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.testi-name { font-size: 14px; font-weight: 800; color: var(--navy); }
.testi-src { font-size: 12px; color: var(--steel); }

/* ── Precios rápidos strip ── */
.precio-strip { background: linear-gradient(115deg, var(--navy), var(--navy-2)); border-radius: 24px; padding: 46px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.ps-num { font-family: var(--ff-display); font-size: 40px; font-weight: 600; color: #fff; display: block; line-height: 1; }
.ps-num sup { font-size: 20px; color: #6FB1F5; }
.ps-label { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 9px; display: block; }

/* ── FAQ ── */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq {
  border: 1px solid var(--line); border-radius: 15px; margin-bottom: 12px;
  background: var(--paper); overflow: hidden; transition: border-color 0.3s;
}
.faq.open { border-color: var(--blue); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: none; text-align: left;
  font-size: 15.5px; font-weight: 800; color: var(--navy); font-family: var(--ff-body);
}
.faq-q span.ico {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 17px; color: var(--blue); font-weight: 400; transition: var(--t);
}
.faq.open .faq-q span.ico { transform: rotate(45deg); background: var(--blue-soft); border-color: var(--blue); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a-in { padding: 0 24px 22px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }

/* ── Contacto ── */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.c-item { display: flex; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.c-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-ico svg { width: 21px; height: 21px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-label { font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.c-value { font-size: 15.5px; font-weight: 800; color: var(--navy); }
.c-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.btn-wa {
  width: 100%; margin-top: 22px; padding: 16px; border: none; border-radius: 14px;
  background: linear-gradient(120deg, #25D366, #1DA851); color: #fff;
  font-size: 15.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 32px rgba(37,211,102,0.35); transition: var(--t);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(37,211,102,0.45); }
.mapa { margin-top: 24px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.mapa iframe { display: block; width: 100%; height: 260px; border: 0; }
.form-box { background: var(--paper-warm); border: 1px solid var(--line); border-radius: 22px; padding: 34px; }
.form-title { font-family: var(--ff-display); font-size: 24px; font-weight: 600; color: var(--navy); margin-bottom: 22px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-group { margin-bottom: 15px; }
.f-group label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.f-group input, .f-group select, .f-group textarea {
  width: 100%; padding: 13px 16px; border-radius: 11px; border: 1.5px solid var(--line);
  background: var(--paper); font-family: inherit; font-size: 14px; color: var(--ink); transition: border-color 0.3s, box-shadow 0.3s;
}
.f-group input:focus, .f-group select:focus, .f-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow);
}
.f-group textarea { resize: vertical; min-height: 96px; }
.form-ok { display: none; text-align: center; padding: 42px 10px; }
.form-ok h3 { font-family: var(--ff-display); font-size: 24px; color: #1A8A6E; margin: 14px 0 8px; }
.form-ok p { font-size: 14.5px; color: var(--ink-soft); }

/* ── Instagram ── */
.ig { background: var(--navy); padding: 84px 0; }
.ig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ig h2 { font-family: var(--ff-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); color: #fff; line-height: 1.15; margin-bottom: 16px; }
.ig p { font-size: 15.5px; line-height: 1.75; color: rgba(255,255,255,0.65); margin-bottom: 30px; max-width: 400px; }
.ig-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 100px;
  background: #fff; color: var(--navy); font-size: 15.5px; font-weight: 800; transition: var(--t);
}
.ig-btn:hover { transform: scale(1.04); box-shadow: 0 14px 48px rgba(0,0,0,0.35); }
.ig-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ig-tiles a, .ig-tiles .vtile { aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; display: block; }
.ig-tiles img, .ig-tiles video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.ig-tiles a:hover img { transform: scale(1.08); }
.vtile-tag { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.55); color: #fff; font-size: 9.5px; font-weight: 800; padding: 3px 8px; border-radius: 5px; letter-spacing: 0.05em; }

/* ── Footer ── */
.footer { background: #071729; padding: 64px 0 30px; color: rgba(255,255,255,0.55); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 46px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer h4 { font-size: 12px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.45); transition: color 0.25s; }
.footer-links a:hover { color: #6FB1F5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.3); }

/* ── Lightbox ── */
#lightbox {
  position: fixed; inset: 0; z-index: 9000; background: rgba(7,23,41,0.94);
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 16px; padding: 30px; cursor: zoom-out;
}
#lightbox.active { display: flex; }
#lightbox img { max-width: min(90vw, 860px); max-height: 78vh; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,0.6); }
#lightbox-cap { color: #fff; font-size: 14px; font-weight: 700; }
#lightbox-x { position: absolute; top: 22px; right: 30px; font-size: 36px; color: #fff; background: none; border: none; line-height: 1; }

/* ── Botones flotantes ── */
.floats { position: fixed; bottom: 22px; right: 22px; z-index: 890; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.float-wa {
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 32px rgba(37,211,102,0.45); transition: var(--t);
}
.float-wa:hover { transform: scale(1.1); }
.float-wa svg { width: 28px; height: 28px; fill: #fff; }

/* ═══════════════════════════════════════════════
   CHATBOT — Asistente Alclinident
   ═══════════════════════════════════════════════ */
.cb-fab {
  width: 62px; height: 62px; border-radius: 50%; border: none; position: relative;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 38px rgba(21,101,192,0.5); transition: var(--t);
}
.cb-fab:hover { transform: scale(1.08); }
.cb-fab svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cb-fab::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(21,101,192,0.45); animation: fabRing 2.4s ease-out infinite;
}
@keyframes fabRing { 0% { transform: scale(0.9); opacity: 1;} 100% { transform: scale(1.35); opacity: 0;} }
.cb-fab-dot { position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--green-wa); border: 2.5px solid #fff; }

.cb-panel {
  position: fixed; bottom: 96px; right: 22px; z-index: 895;
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 130px));
  background: var(--paper); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(10,37,64,0.35);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(0.97);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.cb-panel.open { opacity: 1; visibility: visible; transform: none; }
.cb-head {
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  padding: 18px 20px; display: flex; align-items: center; gap: 13px; flex-shrink: 0;
}
.cb-head-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 5px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.cb-head-avatar img { width: auto; height: 100%; object-fit: contain; }
.cb-head-avatar::after { content: ''; position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--green-wa); border: 2px solid var(--navy); }
.cb-head-name { font-size: 15px; font-weight: 800; color: #fff; }
.cb-head-status { font-size: 11.5px; color: #7BD9A0; font-weight: 700; margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.cb-head-x { margin-left: auto; background: rgba(255,255,255,0.12); border: none; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 17px; display: flex; align-items: center; justify-content: center; transition: background 0.25s; }
.cb-head-x:hover { background: rgba(255,255,255,0.25); }

.cb-body { flex: 1; overflow-y: auto; padding: 18px 16px; background: var(--paper-warm); display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.cb-body::-webkit-scrollbar { width: 5px; }
.cb-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }

.cb-msg { max-width: 86%; padding: 12px 15px; border-radius: 16px; font-size: 13.8px; line-height: 1.6; animation: msgIn 0.35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: none;} }
.cb-msg.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); box-shadow: var(--shadow-sm); }
.cb-msg.user { align-self: flex-end; background: linear-gradient(120deg, var(--blue), var(--blue-light)); color: #fff; border-bottom-right-radius: 5px; }
.cb-msg strong { color: var(--navy); font-weight: 800; }
.cb-msg.user strong { color: #fff; }
.cb-msg .cb-price { color: var(--blue); font-weight: 800; }
.cb-msg a { color: var(--blue); font-weight: 800; text-decoration: underline; }
.cb-msg ul { margin: 6px 0 2px; padding-left: 4px; list-style: none; }
.cb-msg li { padding: 3px 0 3px 16px; position: relative; }
.cb-msg li::before { content: '·'; position: absolute; left: 4px; color: var(--blue); font-weight: 800; }

.cb-typing { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; padding: 14px 18px; display: flex; gap: 5px; }
.cb-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); animation: typeDot 1.2s infinite; }
.cb-typing i:nth-child(2) { animation-delay: 0.15s; }
.cb-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typeDot { 0%,60%,100% { transform: none; opacity: 0.4;} 30% { transform: translateY(-5px); opacity: 1;} }

.cb-chips { display: flex; flex-wrap: wrap; gap: 7px; animation: msgIn 0.4s var(--ease); }
.cb-chip {
  padding: 8px 15px; border-radius: 100px; border: 1.5px solid rgba(21,101,192,0.35);
  background: var(--paper); color: var(--blue); font-size: 12.5px; font-weight: 800; transition: var(--t);
}
.cb-chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.cb-foot { flex-shrink: 0; padding: 12px 14px; background: var(--paper); border-top: 1px solid var(--line); display: flex; gap: 9px; align-items: center; }
.cb-input {
  flex: 1; padding: 12px 16px; border-radius: 100px; border: 1.5px solid var(--line);
  font-family: inherit; font-size: 14px; color: var(--ink); background: var(--paper-warm);
  transition: border-color 0.3s;
}
.cb-input:focus { outline: none; border-color: var(--blue); }
.cb-send {
  width: 42px; height: 42px; border-radius: 50%; border: none; flex-shrink: 0;
  background: linear-gradient(120deg, var(--blue), var(--blue-light));
  display: flex; align-items: center; justify-content: center; transition: var(--t);
}
.cb-send:hover { transform: scale(1.08); }
.cb-send svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cb-powered { text-align: center; font-size: 10px; color: var(--steel); padding: 0 0 8px; background: var(--paper); }

/* ── Síntomas ── */
.sintomas { background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 100%); padding: 84px 0; }
.sintomas .h-section em { background: linear-gradient(120deg, #6FB1F5, #A8D2FB); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sintomas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; max-width: 980px; margin: 0 auto; }
.sintoma-chip {
  padding: 17px 18px; border-radius: 14px; text-align: left;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: #E8F1FA; font-size: 13.5px; font-weight: 700; line-height: 1.4;
  transition: var(--t); backdrop-filter: blur(6px);
}
.sintoma-chip:hover {
  background: rgba(61,139,232,0.22); border-color: var(--blue-light);
  transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.sintomas-note { text-align: center; margin-top: 28px; font-size: 13.5px; color: rgba(255,255,255,0.55); }
.sintomas-note a { color: #7BD9A0; font-weight: 800; }

/* ── Barra CTA móvil ── */
.cta-movil {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 880;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px; box-shadow: 0 -6px 24px rgba(10,37,64,0.1);
}
.cta-m-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 12px; border: none;
  font-size: 14px; font-weight: 800; color: #fff; transition: transform 0.2s;
}
.cta-m-btn:active { transform: scale(0.97); }
.cta-m-reservar { background: linear-gradient(120deg, var(--blue), var(--blue-light)); }
.cta-m-wa { background: linear-gradient(120deg, #25D366, #1DA851); }

/* ── Accesibilidad ── */
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-l, .reveal-r { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-r.in { opacity: 1; transform: none; }

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .esp-panel.active { grid-template-columns: repeat(2, 1fr); }
  .casos-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .pasos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 460px; }
  .clinica-grid { grid-auto-rows: 150px; }
}
@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .doctor-grid, .contacto-grid, .ig-grid { grid-template-columns: 1fr; }
  .doctor-exp { right: 8px; }
  .testi-grid { grid-template-columns: 1fr; }
  .precio-strip { grid-template-columns: repeat(2, 1fr); padding: 36px 26px; }
  .esp-panel.active { grid-template-columns: 1fr; }
  .video-strip { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .clinica-grid { grid-template-columns: repeat(2, 1fr); }
  .clinica-grid a:nth-child(1) { grid-column: span 2; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .f-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-card { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .cb-panel { right: 16px; height: min(560px, calc(100dvh - 176px)); bottom: 158px; }
  .sintomas-grid { grid-template-columns: 1fr 1fr; }
  /* Barra CTA visible solo en móvil */
  .cta-movil { display: flex; }
  .floats { bottom: 84px; }
  .footer { padding-bottom: 96px; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .sintomas-grid { grid-template-columns: repeat(2, 1fr); }
}
