/* ============================================
   Servilabs — Centro Médico y Laboratorio Clínico
   Hoja de estilos — diseño igual al sitio servi-labs.com
   (azul marino + naranja, Barlow Condensed / Barlow)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600&display=swap');

:root {
  /* ---- Paleta servi-labs.com ---- */
  --navy: #152b4a;
  --navy-2: #1d3a60;
  --orange: #c2461b;
  --orange-dark: #a63a14;
  --sky: #52a0d0;
  --soft: #f4f7fb;
  --page: #f7fafc;
  --line: #e3e9f1;
  --muted: #4b5d73;
  --pale: #d6e2ef;
  --white: #ffffff;

  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* alias de compatibilidad */
  --color-primary: var(--navy);
  --color-accent: var(--orange);
  --color-text: var(--navy);
  --color-text-light: var(--muted);
  --color-bg: var(--page);
  --color-bg-soft: var(--soft);
  --color-border: var(--line);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--navy);
  background: var(--page);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; margin: 0; line-height: 1.1; color: var(--navy); }
h3 { font-weight: 600; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
[id] { scroll-margin-top: 104px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: var(--pale); font-size: 0.82rem; }
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 8px;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--sky); }
.topbar .topbar-items { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 150;
  transition: box-shadow 0.25s ease;
}
header.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(21,43,74,0.10); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; }
.logo .logo-full { height: 52px; width: auto; }
nav.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
nav.main-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  color: #4a5568;
  padding: 9px 14px;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
nav.main-nav a:hover { color: var(--navy); border-bottom-color: var(--sky); }
nav.main-nav a.active { color: var(--navy); border-bottom-color: var(--orange); }
nav.main-nav a.btn-cita, .btn-cita {
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  margin-left: 6px;
}
nav.main-nav a.btn-cita:hover, .btn-cita:hover { background: var(--orange-dark); color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle:hover { border-color: var(--sky); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones (pastilla) ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.6px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 8px 20px rgba(194,70,27,0.28); }
.btn-outline { border-color: var(--sky); color: #fff; }
.btn-outline:hover { background: rgba(82,160,208,0.16); border-color: #fff; }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 88px 0 100px; position: relative; overflow: hidden; isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow-line, .hero .eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 4.2vw, 4.2rem);
  line-height: 1.02; color: #fff; margin: 0 0 20px; letter-spacing: -0.005em;
}
.hero p.lead { font-size: 1.2rem; color: var(--pale); margin: 0 0 32px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: var(--navy-2);
  border-radius: 20px;
  padding: 28px;
  color: #fff;
}
.hero-card h3 { font-size: 1.5rem; color: #fff; padding-bottom: 14px; border-bottom: 1px solid rgba(214,226,239,0.22); margin-bottom: 4px; }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li {
  padding: 13px 0 13px 22px; position: relative; color: var(--pale); font-size: 1rem;
  border-bottom: 1px solid rgba(214,226,239,0.16);
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card li::before { content: ""; position: absolute; left: 0; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }

/* ---------- Page header ---------- */
.page-header { background: var(--navy); padding: 56px 0; text-align: left; position: relative; overflow: hidden; }
.page-header h1 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); margin: 0 0 10px; }
.page-header p { color: var(--pale); margin: 0; font-size: 1.15rem; }

/* ---------- Secciones ---------- */
section { padding: 80px 0; background: var(--page); }
.section-soft { background: var(--soft); }
.section-title { text-align: left; max-width: 720px; margin: 0 0 40px; }
.section-title .eyebrow, .eyebrow {
  display: block;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange);
  border: 0; padding: 0; margin: 0 0 8px;
}
.section-title h2 { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); margin: 0 0 10px; }
.section-title p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.section-counter {
  display: inline-block; font-family: var(--font-head); font-size: 0.9rem; color: var(--orange); margin-right: 8px;
}

/* ---------- Tarjetas ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--sky); box-shadow: 0 14px 34px rgba(21,43,74,0.10); }
.card .icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.card:hover .icon { transform: rotate(-8deg) scale(1.08); background: #e6f1f9; }
.card h3 { font-size: 1.6rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Servicios (lista) ---------- */
.service-category { margin-bottom: 44px; }
.service-category h3 { font-size: 1.9rem; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.service-list li {
  padding: 12px 16px 12px 36px; position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; color: var(--navy);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.service-list li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--orange); }
.service-list li:hover { transform: translateX(4px); border-color: var(--sky); }

/* ---------- Horarios ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); }

/* ---------- Pasos ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 60px; margin-bottom: 28px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.steps li h4 { font-size: 1.5rem; margin: 2px 0 4px; }
.steps li p { margin: 0; color: var(--muted); }

/* ---------- Portal / formularios ---------- */
.portal-box { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 40px; max-width: 480px; margin: 0 auto; }
.portal-box h3 { text-align: center; font-size: 1.9rem; margin-top: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: 0.92rem; color: var(--muted); margin-bottom: 6px; }
.field input, form.contact-form .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; background: var(--white); color: var(--navy);
}
form.contact-form .field textarea { resize: vertical; min-height: 120px; }
.field input:focus, form.contact-form .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(82,160,208,0.2); }
.notice { background: var(--soft); border: 1px solid var(--line); color: var(--navy); border-radius: 12px; padding: 14px 18px; font-size: 0.92rem; margin-top: 20px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; transition: transform 0.2s ease; }
.contact-info-item:hover { transform: translateX(4px); }
.contact-info-item .icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: var(--soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem; transition: background 0.25s ease;
}
.contact-info-item:hover .icon { background: #e6f1f9; }
.contact-info-item h4 { font-size: 1.4rem; margin: 0 0 2px; }
.contact-info-item p, .contact-info-item a { margin: 0; color: var(--muted); }
.contact-info-item a:hover { color: var(--orange); }
.map-embed { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); height: 340px; margin-top: 10px; }
.map-embed iframe { width: 100%; height: 100%; display: block; }
.calendar-embed { max-width: 680px; margin: 0 auto; height: 640px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.calendar-embed iframe { width: 100%; height: 100%; display: block; }

/* ---------- Banda CTA ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 56px 0; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.6rem); margin: 0 0 10px; }
.cta-band p { margin: 0 0 26px; color: var(--pale); }
.cta-band .btn + .btn { margin-left: 10px; }

/* ---------- Footer (claro, como servi-labs.com) ---------- */
footer.site-footer { background: var(--white); border-top: 1px solid var(--line); color: var(--muted); padding: 52px 0 24px; font-size: 0.97rem; }
.footer-logo { margin-bottom: 14px; }
.footer-logo .logo-full { height: 48px; width: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-grid h4 { font-size: 1.4rem; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom { text-align: center; font-size: 0.85rem; color: var(--muted); }

/* ---------- Video ---------- */
.video-section { padding: 72px 0; background: var(--soft); }
.video-wrapper { position: relative; width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--navy); }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-badge {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(21,43,74,0.78); border-radius: 999px; padding: 6px 14px 6px 10px;
  font-size: 0.78rem; font-weight: 500; color: #fff; z-index: 2; pointer-events: none;
}
.video-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulseDot 1.6s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }

/* ---------- Promociones (carrusel) ---------- */
.promo-section { background: var(--page); }
.promo-carousel { position: relative; max-width: 1000px; margin: 0 auto; }
.promo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 24px; padding: 4px 4px 12px; scrollbar-width: none; }
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide {
  flex: 0 0 100%; scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; transition: border-color 0.25s ease;
}
.promo-slide:hover { border-color: var(--sky); }
.promo-badge { font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.promo-slide h3 { font-size: 2rem; margin: 4px 0 0; }
.promo-slide p { margin: 0; color: var(--muted); }
.promo-price { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: var(--navy) !important; }
.promo-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.promo-arrow {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); border: 0; color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s ease, transform 0.15s ease;
}
.promo-arrow:hover { background: var(--orange); }
.promo-arrow:active { transform: scale(0.92); }
.promo-dots { display: flex; gap: 8px; }
.promo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); border: 0; padding: 0; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.promo-dot.active { background: var(--orange); transform: scale(1.3); }
.promo-progress { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; max-width: 220px; margin: 16px auto 0; }
.promo-progress-bar { height: 100%; width: 0%; background: var(--orange); border-radius: 999px; }
.promo-progress-bar.animate { transition: width 6s linear; }
@media (min-width: 640px) {
  .promo-slide { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .promo-slide .promo-text { flex: 1; }
  .promo-slide .btn { flex-shrink: 0; }
}

/* ---------- Quick-nav ---------- */
.quick-nav { display: flex; gap: 10px; overflow-x: auto; padding: 14px 24px; background: var(--white); border-bottom: 1px solid var(--line); scrollbar-width: none; position: relative; z-index: 10; }
.quick-nav::-webkit-scrollbar { display: none; }
.quick-nav a {
  flex-shrink: 0; font-weight: 500; font-size: 0.92rem; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 18px; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.quick-nav a:hover { border-color: var(--sky); color: var(--navy); }
.quick-nav a.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--pale); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8;
  animation: cueBounce 2.2s ease-in-out infinite; z-index: 1;
}
.scroll-cue:hover { color: #fff; }
.scroll-cue svg { width: 16px; height: 16px; }
@keyframes cueBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Brillo animado (fondos azules) ---------- */
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, -40px) scale(1.15); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-50px, 50px) scale(1.1); } }
.hero::before, .hero::after, .cta-band::before, .page-header::before {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; pointer-events: none;
}
.hero::before { width: 480px; height: 480px; background: var(--sky); opacity: 0.22; top: -190px; right: -120px; animation: drift1 16s ease-in-out infinite; }
.hero::after { width: 360px; height: 360px; background: var(--orange); opacity: 0.12; bottom: -200px; left: 8%; animation: drift2 20s ease-in-out infinite; }
.cta-band::before { width: 420px; height: 420px; background: var(--sky); opacity: 0.16; top: -230px; left: 50%; margin-left: -210px; animation: drift1 18s ease-in-out infinite; }
.page-header::before { width: 380px; height: 380px; background: var(--sky); opacity: 0.18; top: -200px; right: -80px; animation: drift1 18s ease-in-out infinite; }
.hero .container, .cta-band .container, .page-header .container { position: relative; z-index: 1; }
.page-header { isolation: isolate; }

/* ---------- Progreso de scroll / volver arriba / WhatsApp ---------- */
#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--orange); z-index: 200; transition: width 0.1s linear; }
#backToTop {
  position: fixed; bottom: 26px; right: 96px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); border: 0; color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem; z-index: 100; opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
#backToTop.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#backToTop:hover { background: var(--orange); }
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; z-index: 100; box-shadow: 1px 6px 24px rgba(7,94,84,0.24);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Paquetes y estudios ---------- */
.pkg-grid { align-items: start; }
.pkg-single { max-width: 520px; }
.pkg-card { display: flex; flex-direction: column; gap: 12px; }
.pkg-card h3 { margin: 4px 0 0; font-size: 1.8rem; }
.pkg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.78rem; font-weight: 500; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 4px 12px; display: inline-flex; align-items: center; gap: 6px; }
.chip-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.chip-hl { background: var(--navy); color: #fff; }
.pkg-price { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--navy); line-height: 1; }
.pkg-price span { font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.pkg-who { margin: 0; color: var(--muted); font-size: 0.97rem; }
.pkg-who strong, .pkg-note strong { font-weight: 600; color: var(--navy); }
.pkg-ben, .pkg-inc { list-style: none; margin: 0; padding: 0; }
.pkg-ben li, .pkg-inc li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 0.95rem; color: var(--navy); }
.pkg-ben li::before, .pkg-inc li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.pkg-details { border-top: 1px solid var(--line); padding-top: 12px; }
.pkg-details summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 0.97rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; }
.pkg-details summary::-webkit-details-marker { display: none; }
.pkg-details summary::after {
  content: "+"; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: transform 0.25s ease;
}
.pkg-details[open] summary::after { transform: rotate(45deg); }
.pkg-details[open] > :not(summary) { animation: fadeDown 0.3s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pkg-details .pkg-inc { margin-top: 12px; }
.pkg-note { margin: 10px 0 0; font-size: 0.92rem; color: var(--muted); }
.pkg-cta { text-align: center; margin-top: auto; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 0.93rem; }
.compare-table th, .compare-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: center; font-weight: 400; transition: background 0.15s ease; }
.compare-table thead th { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; background: var(--navy); color: #fff; position: sticky; top: 0; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; position: sticky; left: 0; background: var(--white); min-width: 230px; z-index: 1; }
.compare-table thead th:first-child { background: var(--navy); }
.compare-table tbody tr:hover th, .compare-table tbody tr:hover td { background: var(--soft); }
.compare-table td.col-hl { background: rgba(82,160,208,0.14); }
.compare-table thead th.col-hl { background: var(--sky); color: #fff; }
.compare-table .tick { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 0.8rem; }
.compare-table .dash { color: #b9c4d3; }
.compare-table .row-total th, .compare-table .row-total td { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; background: var(--soft); }
.compare-note { margin: 14px 0 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- Nosotros / Instalaciones ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-points { display: grid; gap: 14px; }
.about-points .card { padding: 22px 26px; }
.about-points .card h3 { font-size: 1.5rem; }
.team-card { padding: 0; overflow: hidden; text-align: center; }
.team-photo, .gallery-media {
  position: relative; overflow: hidden; background: linear-gradient(135deg, var(--soft), #e6f1f9);
}
.team-photo { aspect-ratio: 4 / 5; }
.team-photo img, .gallery-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.team-card:hover .team-photo img, .gallery-item:hover .gallery-media img { transform: scale(1.06); }
.team-card h3 { margin: 18px 20px 2px; font-size: 1.6rem; }
.team-role { margin: 0 20px 22px; color: var(--orange) !important; font-weight: 600; }
.team-area { margin: 2px 20px 22px !important; font-size: 0.95rem; }
.is-empty::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 34%; aspect-ratio: 1;
  background: var(--sky); opacity: 0.35;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm0 2c-4.4 0-8 2.2-8 5v2h16v-2c0-2.8-3.6-5-8-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm0 2c-4.4 0-8 2.2-8 5v2h16v-2c0-2.8-3.6-5-8-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gallery-media.is-empty::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm1 11 4-5 3 4 2-2 5 6H5Zm10-8a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm1 11 4-5 3 4 2-2 5 6H5Zm10-8a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z'/%3E%3C/svg%3E");
}
.ph-tag {
  position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; z-index: 2;
}
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.photo-frame { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.photo-frame img { width: 100%; height: auto; display: block; }
.photo-wide { max-width: 960px; margin: 0 auto 28px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.team-photo { background: var(--navy); }
.gallery-item:first-child { grid-column: span 2; }
.gallery-item:first-child .gallery-media { aspect-ratio: 16 / 9; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .grid-3.team-grid, .grid-4.team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .team-card h3 { font-size: 1.3rem; margin: 14px 12px 2px; }
  .team-role { margin: 0 12px 16px !important; font-size: 0.92rem; }
}
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; } .gallery-item:first-child { grid-column: auto; } }
/* ---------- Carrusel de instalaciones ---------- */
.fac-carousel { max-width: 1000px; margin: 0 auto; outline: none; }
.fac-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--navy); border: 1px solid var(--line); }
.fac-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.9s ease; pointer-events: none; }
.fac-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.fac-slide img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transform: scale(1); transition: transform 7s ease-out; }
.fac-slide.is-active img { transform: scale(1.06); }
.fac-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 24px 22px; color: #fff; font-weight: 500; font-size: 1.15rem;
  background: linear-gradient(to top, rgba(21,43,74,0.88), rgba(21,43,74,0));
}
.fac-slide figcaption span { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); margin-bottom: 2px; }
.fac-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.92); color: var(--navy); font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.fac-arrow:hover { background: var(--orange); color: #fff; }
.fac-arrow:active { transform: translateY(-50%) scale(0.92); }
.fac-prev { left: 14px; } .fac-next { right: 14px; }
.fac-dots { position: absolute; right: 20px; bottom: 22px; z-index: 3; display: flex; gap: 6px; }
.fac-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: background 0.2s ease, transform 0.2s ease; }
.fac-dots i.is-active { background: var(--orange); transform: scale(1.3); }
.fac-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.2); z-index: 3; }
.fac-progress i { display: block; height: 100%; width: 0; background: var(--orange); }
.fac-progress i.run { width: 100%; transition: width var(--fac-time, 5000ms) linear; }
.fac-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.fac-thumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--navy); aspect-ratio: 4 / 3; opacity: 0.6; transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.fac-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fac-thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 0.72rem; font-weight: 500; color: #fff; text-align: center; background: linear-gradient(to top, rgba(21,43,74,0.85), transparent); }
.fac-thumb:hover { opacity: 1; transform: translateY(-2px); }
.fac-thumb.is-active { opacity: 1; border-color: var(--orange); }
@media (max-width: 640px) {
  .fac-stage { aspect-ratio: 4 / 3; }
  .fac-slide figcaption { font-size: 1rem; padding: 40px 16px 16px; }
  .fac-arrow { width: 38px; height: 38px; }
  .fac-dots { right: 14px; bottom: 16px; }
  .fac-thumb span { display: none; }
  .fac-thumbs { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .fac-slide img, .fac-slide.is-active img { transition: none; transform: none; } .fac-slide { transition: none; } }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-chip {
  font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; color: var(--muted); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px; cursor: pointer; transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--sky); color: var(--navy); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(21,43,74,0.10); }
.gallery-item.is-hidden { display: none; }
.gallery-media { aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery-media.is-empty { cursor: default; }
.gallery-item figcaption { padding: 14px 18px 18px; color: var(--navy); font-weight: 500; }
.gallery-item figcaption span { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.lightbox {
  position: fixed; inset: 0; background: rgba(21,43,74,0.92); z-index: 300; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px; gap: 14px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: 78vh; border-radius: 16px; object-fit: contain; }
.lightbox p { margin: 0; color: #fff; }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: var(--orange); color: #fff; }
nav.main-nav a { padding: 9px 11px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 64px 0 90px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .service-list, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .logo .logo-full { height: 44px; }
  nav.main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  nav.main-nav.is-open { max-height: 460px; }
  nav.main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 24px 24px; }
  nav.main-nav a { display: block; text-align: center; border-bottom: 0; border-radius: 12px; }
  nav.main-nav a:hover { background: var(--soft); }
  nav.main-nav a.active { background: var(--soft); }
  nav.main-nav a.btn-cita { margin: 6px 0 0; }
  #backToTop { right: 24px; bottom: 96px; }
  section { padding: 60px 0; }
}
@media (max-width: 640px) { .calendar-embed { height: 560px; } }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .cta-band::before, .page-header::before, .video-badge .dot, .scroll-cue { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- Aviso de privacidad / consentimiento ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.9rem; margin: 36px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--navy); font-weight: 600; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--orange); text-decoration: underline; }
.footer-legal { text-decoration: underline; }
.footer-legal:hover { color: var(--orange); }
.footer-bottom { line-height: 1.8; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); margin: 4px 0 16px; }
.consent input { margin-top: 4px; accent-color: var(--orange); flex-shrink: 0; }
.consent a { color: var(--orange); text-decoration: underline; }

/* ---------- Menú compacto en pantallas medianas ---------- */
nav.main-nav a { white-space: nowrap; }
@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  nav.main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  nav.main-nav.is-open { max-height: 520px; }
  nav.main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 24px 24px; }
  nav.main-nav a { display: block; text-align: center; border-bottom: 0; border-radius: 12px; }
  nav.main-nav a:hover, nav.main-nav a.active { background: var(--soft); }
  nav.main-nav a.btn-cita { margin: 6px 0 0; background: var(--orange); }
  nav.main-nav a.btn-cita:hover { background: var(--orange-dark); }
}
