/* ============================================================
   REGENERUM + METABOLIK — CSS
   ============================================================ */

:root {
  /* — Regenerum palette — */
  --regen-primary: #4A9BAF;
  --regen-secondary: #B8D4DA;
  --regen-dark: #1C3A42;
  --regen-accent: #C9A96E;
  --regen-light: #EEF4F6;

  /* — Metabolik palette — */
  --metabolik-primary: #3D6B4F;
  --metabolik-secondary: #A8C4B0;
  --metabolik-dark: #1A2E22;
  --metabolik-accent: #C9A96E;
  --metabolik-light: #EDF2EE;

  /* — Neutrals — */
  --dark: #111210;
  --gray: #4A4A46;
  --light-gray: #F3F2EF;
  --white: #FAFAF8;
  --text: #1A1A18;
  --text-light: #4A4A46;
  --text-muted: #8A8A84;

  /* — Shadows — */
  --shadow: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.10), 0 8px 20px rgba(0,0,0,0.06);

  /* — Shape — */
  --radius: 4px;
  --radius-sm: 2px;

  /* — Motion — */
  --transition: color 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* — Typography — */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* TYPOGRAPHY */
h1,h2,h3 {
  font-family: var(--font-serif);
  line-height: 1.1;
  color: var(--text);
}
h4,h5 { font-family: var(--font-sans); font-weight: 500; line-height: 1.3; color: var(--text); }
h1 { font-size: clamp(3rem, 5.5vw, 5.8rem); font-weight: 300; letter-spacing: -0.02em; line-height: 0.95; }
h2 { font-size: clamp(1.9rem, 3.2vw, 3.2rem); font-weight: 600; letter-spacing: -0.015em; }
h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: 0.01em; }
h4 { font-size: 1rem; font-weight: 500; }
p { line-height: 1.8; color: var(--text-light); font-weight: 300; font-size: 0.93rem; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* SECTION */
.section { padding: 52px 0; }
.section.bg-light { background: var(--light-gray); }

/* SECTION HEADER */
.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 { margin-bottom: 12px; color: var(--dark); }
.section-header p { max-width: 560px; margin: 0 auto; }
.section-header.light h2 { color: var(--white); }
.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--regen-accent);
  margin-bottom: 10px;
}
.section-tag.light-tag { color: rgba(201,169,110,0.7); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.15s var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--regen-primary);
  color: var(--white);
  border-color: var(--regen-primary);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--regen-dark); border-color: var(--regen-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
}
.btn-metabolik {
  background: var(--metabolik-primary);
  color: var(--white);
  border-color: var(--metabolik-primary);
}
@media (hover: hover) and (pointer: fine) {
  .btn-metabolik:hover { background: var(--metabolik-dark); border-color: var(--metabolik-dark); transform: translateY(-2px); }
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.55);
  font-size: 0.68rem;
  padding: 14px 32px;
  width: 100%;
  margin-top: 8px;
}
.btn-white-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* UTILITY */
.regen-text { color: var(--regen-primary); }
.metabolik-text { color: var(--metabolik-primary); }
.regen-bg { background: var(--regen-primary); }
.metabolik-bg { background: var(--metabolik-primary); }
.regen-accent-bg { background: transparent; }
.metabolik-accent-bg { background: var(--metabolik-light); }
.regen-border { border: 1px solid rgba(74,155,175,0.18); border-top: 2px solid var(--regen-primary); }
.metabolik-border { border: 1px solid rgba(61,107,79,0.18); border-top: 2px solid var(--metabolik-primary); }

/* ============================================================
   POPUP
   ============================================================ */
.popup-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .25s var(--ease-out);
}
.popup-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 440px; width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 80px rgba(0,0,0,.15);
}
.popup-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 1.8rem; color: var(--text-light);
  line-height: 1;
}
.popup-close:hover { color: var(--dark); }
.popup-badge {
  display: inline-block;
  background: transparent;
  color: var(--regen-accent);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 4px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--regen-accent);
  margin-bottom: 20px;
}
.popup-box h2 { color: var(--dark); margin-bottom: 12px; }
.popup-box p { margin-bottom: 24px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26,26,24,0.07);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.navbar.nav-scrolled {
  background: rgba(250,250,248,0.97);
  border-bottom-color: rgba(26,26,24,0.1);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 52px; width: auto; }
.logo-text-fallback {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-area-badge {
  padding: 3px 10px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto; flex-wrap: wrap;
}
.nav-links a {
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--text); background: none; }
.btn-nav-area {
  padding: 7px 16px !important;
  border-radius: 2px !important;
  font-family: var(--font-sans) !important;
  font-weight: 400 !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}
.btn-nav-area.btn-regen {
  background: var(--regen-primary) !important;
  color: var(--white) !important;
}
.btn-nav-area.btn-regen:hover { background: var(--regen-dark) !important; }
.btn-nav-area.btn-metabolik {
  background: var(--metabolik-primary) !important;
  color: var(--white) !important;
}
.btn-nav-area.btn-metabolik:hover { background: var(--metabolik-dark) !important; }
.btn-nav-area.btn-agendar {
  background: var(--regen-dark) !important;
  color: var(--white) !important;
}
.btn-nav-area.btn-agendar:hover {
  background: var(--regen-primary) !important;
  transform: translateY(-1px);
}

.nav-area-menu {
  border-top: 1px solid rgba(26,26,24,0.07);
  background: var(--white);
}
.nav-area-menu .nav-inner { height: 48px; }
.nav-area-menu .nav-links a {
  font-size: 0.65rem; padding: 5px 10px; letter-spacing: 0.12em;
}
.btn-cambiar-area {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 2px;
  transition: var(--transition);
}
.btn-cambiar-area:hover { color: var(--text); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  margin-left: auto; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   HERO — estilo split con degradado dual celeste+verde
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* Degradado base: celeste suave → blanco → verde suave */
.hero-bg-gradient {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(
    110deg,
    #d8f3fb 0%,
    #edfaff 20%,
    #f8fffe 42%,
    #f1f8ef 62%,
    #e2eedb 80%,
    #d2e5c8 100%
  );
}

/* Forma diagonal decorativa muy sutil */
.hero-diagonal {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    118deg,
    rgba(0,181,216,.08) 0%,
    rgba(0,181,216,.03) 38%,
    rgba(60,196,124,.02) 55%,
    transparent 100%
  );
  clip-path: polygon(0 0, 62% 0, 45% 100%, 0 100%);
}

/* Layout dividido */
.hero-layout {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  gap: 0;
  min-height: 92vh;
}

/* LADO IZQUIERDO */
.hero-left {
  flex: 0 0 50%;
  padding: 80px 48px 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-logo-top {
  height: 72px;
  width: auto;
  margin-bottom: 28px;
  object-fit: contain;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--regen-dark);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--ease-out) 0.25s, transform 1.1s var(--ease-out) 0.25s;
}
body.loaded .hero-title { opacity: 1; transform: translateY(0); }
.hero-title strong {
  font-weight: 600;
  color: var(--regen-primary);
}
.hero-title .met-strong {
  font-weight: 600;
  color: var(--metabolik-primary);
}
.hero-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
  margin-bottom: 40px;
  max-width: 380px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease-out) 0.5s, transform 1s var(--ease-out) 0.5s;
}
body.loaded .hero-sub { opacity: 1; transform: translateY(0); }
.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ease-out) 0.75s, transform 0.9s var(--ease-out) 0.75s;
}
body.loaded .hero-btns { opacity: 1; transform: translateY(0); }
.btn-regen-hero {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 11px 22px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), color 0.2s ease-out, background 0.2s ease-out;
  border: 1px solid var(--regen-primary);
  background: transparent;
  color: var(--regen-primary);
  justify-content: center;
  width: fit-content;
}
.btn-regen-hero:hover {
  background: var(--regen-primary);
  border-color: var(--regen-primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  gap: 10px;
}
/* Hero button — logo slides in from left on hover */
.btn-hero-logo {
  height: 18px;
  max-width: 0;
  overflow: hidden;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0;
  transition: max-width 0.4s var(--ease-out), opacity 0.35s var(--ease-out), filter 0.35s;
  pointer-events: none;
  display: block;
}
.btn-regen-hero:hover .btn-hero-logo,
.btn-metabolik-hero:hover .btn-hero-logo {
  max-width: 68px;
  opacity: 1;
  filter: brightness(0) invert(1);
}
.btn-metabolik-hero {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 11px 22px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), color 0.2s ease-out, background 0.2s ease-out;
  border: 1px solid rgba(61,107,79,0.5);
  background: transparent;
  color: var(--metabolik-primary);
  justify-content: center;
  width: fit-content;
}
.btn-metabolik-hero:hover {
  background: var(--metabolik-primary);
  border-color: var(--metabolik-primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  gap: 10px;
}

/* LADO DERECHO — foto */
.hero-right {
  flex: 0 0 56%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  align-self: stretch;
  margin-right: -48px; /* extend to edge */
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s var(--ease-out) 0.1s, transform 1.8s var(--ease-out) 0.1s;
}
body.loaded .hero-right { opacity: 1; transform: scale(1); }

/* Wrapper para float animation (JS parallax opera sobre el img directamente) */
.hero-photo-wrapper {
  width: 100%; height: 100%;
  display: flex; align-items: stretch;
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
  transition: transform 0.12s linear;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 58%, rgba(0,0,0,0.5) 75%, transparent 92%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 58%, rgba(0,0,0,0.5) 75%, transparent 92%);
}

/* Fallback si no hay foto: placeholder visible */
.hero-right:not(:has(.hero-photo[src])) {
  background: linear-gradient(135deg, rgba(0,181,216,.1), rgba(45,106,31,.1));
  border-radius: var(--radius) 0 0 var(--radius);
}

/* Línea decorativa divisoria */
.hero-layout::after {
  content: '';
  position: absolute;
  top: 10%; bottom: 10%;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0,150,180,.2) 30%, rgba(45,106,31,.2) 70%, transparent);
  pointer-events: none;
}

.btn-sub { font-size: .8rem; font-weight: 400; opacity: .85; }
.btn-logo-small { height: 36px; filter: brightness(0) invert(1); }

/* QUICK BAR */
.quick-bar {
  display: flex; justify-content: center; gap: 0;
  background: #3A3935;
}
.quick-item {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 600;
  transition: var(--transition);
  border-right: 1px solid rgba(255,255,255,.1);
}
.quick-item:last-child { border-right: none; }
.quick-item:hover { background: var(--regen-primary); color: var(--white); }
.quick-item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   CARDS GRID
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.cards-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* PROMO CAROUSEL */
.promos-carousel-wrapper {
  position: relative;
  padding: 0 48px;
}
.promos-carousel-viewport {
  overflow: hidden;
}
.promos-carousel-track {
  display: flex;
  gap: 18px;
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
}
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-60%);
  z-index: 2;
  width: auto; height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  line-height: 1;
  color: var(--text-muted);
  padding: 4px 6px;
}
.carousel-btn:hover { background: none; color: var(--regen-primary); box-shadow: none; }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.promos-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.promo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ddd; cursor: pointer; transition: var(--transition);
}
.promo-dot.active { background: var(--regen-primary); transform: scale(1.3); }

/* PROMO CARDS */
.promo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  flex: 0 0 100%;
  min-width: 0;
  transform-style: preserve-3d;
}
.promo-card:hover { box-shadow: var(--shadow-hover); }
.promo-area-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  padding: 0;
  margin-bottom: 14px;
  min-height: 28px;
}
.badge-logo {
  width: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply; /* removes white background from PNG */
}
/* promo badges: no box, natural color, bigger */
.promo-area-badge .badge-logo { height: 38px; }
/* agendar option badges: centered, big */
.agendar-option-badge .badge-logo {
  height: 52px;
  display: block;
  margin: 0 auto;
}
.promo-discount {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1;
}
.promo-card h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 400; color: var(--text); margin-bottom: 6px; }
.promo-card p { font-size: .85rem; margin-bottom: 16px; }
.btn-sm { padding: 9px 18px !important; font-size: 0.62rem !important; letter-spacing: 0.18em !important; }

/* FIX: gap=0 en tracks de carrusel de 1 item */
.promos-carousel-track { gap: 0; }

/* STATS CARD WIDE — horizontal full-width */
.stats-card-wide {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}
.stats-card-wide-inner {
  display: flex;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.stats-card-wide-inner .stats-card-photo {
  flex: 0 0 46%;
  height: auto;
  margin: -32px 0 -32px -1px;
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 16px 48px rgba(0,0,0,0.20), 0 4px 14px rgba(0,0,0,0.10);
}
.stats-card-wide-text {
  flex: 1;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}
.stats-card-wide-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  font-weight: 400;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.stats-card-wide-text p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.8;
  max-width: 440px;
}

/* FAQ + PROMOS GRID (below stats card) */
.faq-promos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.faq-promos-grid .promo-col,
.faq-home-col { min-width: 0; overflow: hidden; }
.faq-home-col .section-tag { display: block; margin-bottom: 8px; }
.faq-home-col h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 20px;
  margin-top: 4px;
}
.dual-col-header { margin-bottom: 24px; }
.dual-col-header h2 { font-size: 1.5rem; color: var(--dark); margin-top: 6px; }

/* STATS CARD — photo carousel (positioning for slides + buttons) */
.stats-clinica-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
  display: block;
}
.stats-clinica-slide.active { opacity: 1; }
.stats-photo-prev,
.stats-photo-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: auto; height: auto; border-radius: 0;
  background: none;
  font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: none;
  transition: color .2s, opacity .2s;
  color: rgba(255,255,255,0.8);
  opacity: 0.7;
}
.stats-photo-prev { left: 10px; }
.stats-photo-next { right: 10px; }
.stats-photo-prev:hover, .stats-photo-next:hover { background: none; opacity: 1; }
.stats-photo-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.stats-photo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .3s, transform .3s;
}
.stats-photo-dot.active { background: var(--white); transform: scale(1.3); }

@media (max-width: 900px) {
  .faq-promos-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-card-wide-inner { flex-direction: column; }
  .stats-card-wide-inner .stats-card-photo { flex: none; height: 220px; }
}

/* ============================================================
   TRATAMIENTOS CAROUSEL + BEFORE/AFTER REVEAL
   ============================================================ */
.trat-carousel-wrapper {
  position: relative;
  padding: 0 48px;
}
.trat-carousel-viewport { overflow: hidden; }
.trat-track {
  display: flex;
  gap: 20px;
  transition: transform 0.35s var(--ease-out);
}
.trat-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 0;
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 420px;
  background: #111;
  transition: box-shadow 0.5s var(--ease-out);
  transform-style: preserve-3d;
}
@media (hover: hover) and (pointer: fine) { .trat-card:hover { box-shadow: var(--shadow-hover); } }
.trat-front {
  position: absolute; inset: 0;
  padding: 0;
  height: 100%;
  display: block;
  overflow: hidden;
  transition: opacity .4s ease, transform .4s ease;
}
.trat-cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
@media (hover: hover) and (pointer: fine) { .trat-card:hover .trat-cover { transform: scale(1.04); } }
.trat-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 60px 22px 22px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
}
.trat-front h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 7px;
}
.trat-hint {
  font-size: .72rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  font-family: var(--font-body);
  line-height: 1.4;
}
.trat-reveal {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.trat-card:not(.trat-no-reveal):hover .trat-front,
.trat-card.trat-active .trat-front {
  opacity: 0; transform: translateY(-14px);
}
.trat-card:not(.trat-no-reveal):hover .trat-reveal,
.trat-card.trat-active .trat-reveal {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.trat-ba-split {
  display: flex; flex: 1; gap: 2px; min-height: 0;
}
.trat-ba-split.trat-ba-vertical {
  flex-direction: column;
}
.trat-ba-half {
  flex: 1; position: relative; overflow: hidden;
  background: #e8e8e8;
}
.trat-ba-half img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trat-ba-vertical .trat-ba-half img { object-fit: contain; background: #111; }
.trat-ba-vertical.trat-ba-eyes {
  flex-direction: column;
  height: 100%;
}
.trat-ba-vertical.trat-ba-eyes .trat-ba-half {
  flex: 0 0 50%;
  height: 50%;
  min-height: 0;
}
.trat-ba-vertical.trat-ba-eyes .trat-ba-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  background: #000;
}
.trat-ba-label {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.55); color: var(--white);
  font-family: var(--font-head); font-size: .7rem; font-weight: 700;
  letter-spacing: 1.5px; padding: 3px 12px; border-radius: 50px;
}
.trat-ba-after-lbl { background: rgba(0,100,60,.7); }
.trat-reveal-footer {
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--white); border-top: 1px solid #eee; flex-shrink: 0;
}
.trat-reveal-footer strong { font-size: .85rem; color: var(--dark); flex: 1; }

/* ============================================================
   CERT CAROUSEL
   ============================================================ */
.cert-carousel-wrapper {
  position: relative;
  padding: 0 48px;
}
.cert-carousel-viewport { overflow: hidden; }
.cert-track {
  display: flex;
  gap: 20px;
  transition: transform 0.35s var(--ease-out);
}
.cert-photo-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.07);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  display: flex; flex-direction: column;
  min-height: 220px;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  transform-style: preserve-3d;
}
@media (hover: hover) and (pointer: fine) { .cert-photo-card:hover { box-shadow: var(--shadow-hover); } }
.cert-photo-card img {
  width: 100%; flex: 1; object-fit: contain; padding: 14px;
  background: #fafafa;
}
.cert-photo-card span {
  text-align: center; padding: 9px 14px;
  font-size: .78rem; color: var(--text);
  background: var(--white); border-top: 1px solid #eee;
  line-height: 1.4;
}
.cert-vertical {
  min-height: 280px;
}
.cert-vertical img {
  object-fit: contain;
  padding: 10px;
  background: #fafafa;
}
.section-compact { padding: 32px 0; }
.section-compact .cert-photo-card {
  min-height: 160px;
}
.section-compact .cert-vertical {
  min-height: 210px;
}
.section-compact .cert-photo-card img {
  padding: 10px;
}
.section-compact .cert-photo-card span {
  font-size: .74rem;
  padding: 7px 12px;
}
.section-compact .section-header {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .trat-card { flex: 0 0 calc(100% - 0px); }
  .cert-photo-card { flex: 0 0 calc(100% - 0px); }
  .trat-carousel-wrapper, .cert-carousel-wrapper { padding: 0 36px; }
  .stats-card-bar { grid-template-columns: 1fr 1px 1fr; }
  .stats-card-bar .stat-item:nth-child(n+4) { display: none; }
  .stats-card-bar .stat-bar-sep:last-of-type { display: none; }
}

/* STATS CARD — vertical layout inside 50% column */
.promo-stats-section { background: var(--light-gray); }
.stats-card {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
/* vertical stack: photo → text → bar */
.stats-card-visual {
  display: flex;
  flex-direction: column;
}
.stats-card-photo {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #c8cec8;
  transition: background 0.3s;
  flex-shrink: 0;
}
.stats-card-text {
  background: linear-gradient(135deg, #d4eef8 0%, #e8f7fc 100%);
  padding: 28px 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.stats-card-text h2 { color: var(--regen-dark); font-family: var(--font-serif); font-size: 1.8rem; font-weight: 400; margin-bottom: 10px; letter-spacing: -0.01em; }
.stats-card-text p { color: var(--text-light); font-size: .85rem; line-height: 1.7; }
.stats-card-bar {
  background: linear-gradient(90deg, rgba(216,243,251,0.45) 0%, rgba(237,250,255,0.45) 25%, rgba(248,255,254,0.45) 50%, rgba(234,245,232,0.45) 75%, rgba(184,220,170,0.45) 100%);
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  padding: 18px 16px;
  align-items: center;
}
.stat-bar-sep { background: rgba(28,58,66,.15); height: 28px; }
.stat-item { text-align: center; color: var(--regen-dark); }
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-family: var(--font-sans); font-size: 0.58rem; font-weight: 300; letter-spacing: 0.15em; text-transform: uppercase; opacity: .7; }

/* BLOG */
.blog-section { background: var(--white); }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
@media (hover: hover) and (pointer: fine) { .blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); } }
.blog-img { height: 160px; }
.blog-content { padding: 20px; }
.blog-tag { font-size: .8rem; font-weight: 700; letter-spacing: 1px; }
.blog-content h3 { font-size: 1rem; color: var(--dark); margin: 8px 0 8px; }
.blog-content p { font-size: .9rem; }

/* ============================================================
   AREA HERO
   ============================================================ */
.area-hero { padding: 100px 0; }
.regen-hero { background: linear-gradient(160deg, rgba(192,232,245,0.35) 0%, rgba(218,243,252,0.2) 50%, #FAFAF8 100%); }
.metabolik-hero { background: linear-gradient(180deg, #FAFAF8 0%, #e8f5e9 25%, #daeedd 60%, #F3F2EF 100%); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.col-text h2 { color: var(--dark); margin-bottom: 16px; }
.col-text p { margin-bottom: 16px; }
.col-img {
  border-radius: var(--radius);
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.area-logo-big { max-height: 200px; margin: 0 auto; }
.logo-text-big { font-family: var(--font-head); font-weight: 800; font-size: 2.5rem; }

/* VIDEO INSTITUCIONAL */
.col-video {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.quienes-video {
  width: auto;
  height: 100%;
  max-height: 420px;
  min-height: 260px;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.11), 0 2px 8px rgba(0,0,0,0.06);
  object-fit: contain;
}

/* Franja blanca full-width al alto del texto, video sobresale */
.quienes-heading {
  margin-bottom: 12px;
}
.quienes-band {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: rgba(255,255,255,0.50);
  overflow: visible;
  position: relative;
}
.quienes-inner {
  align-items: center;
}
.quienes-video-col {
  margin-top: -48px;
  margin-bottom: -48px;
}

/* DOCTOR CARD */
.doctor-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}
.doctor-avatar { flex-shrink: 0; }
.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  transform: scale(1.45);
  transform-origin: center 22%;
  display: block;
}
.avatar-placeholder {
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}
.doctor-info h3 { color: var(--text); margin-bottom: 4px; }
.doctor-title { color: var(--regen-accent); font-family: var(--font-sans); font-size: 0.72rem; font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 16px; }
.doctor-facts { padding-left: 20px; list-style: disc; }
.doctor-facts li { margin-bottom: 8px; color: var(--text-light); font-size: .88rem; }

/* TEAM CARDS */
.team-double-avatar {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 16px;
}
.team-double-avatar .avatar-circle { margin: 0; }
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  transform-style: preserve-3d;
}
@media (hover: hover) and (pointer: fine) { .team-card:hover { box-shadow: var(--shadow-hover); } }
.team-card .avatar-placeholder { width: 80px; height: 80px; margin: 0 auto 16px; font-size: 1.3rem; border-radius: 50%; }
.team-card .avatar-circle { width: 80px; height: 80px; margin: 0 auto 16px; }
.avatar-photo--psico {
  object-position: center 10%;
  transform: scale(2.5);
  transform-origin: center 57%;
}
.avatar-photo--psico2 {
  object-position: center 0%;
  transform: scale(2.5);
  transform-origin: center 75%;
}
.avatar-photo--nutri {
  object-position: 60% 30%;
  transform: scale(2.4);
  transform-origin: 60% 30%;
}
.team-card h3 { color: var(--text); margin-bottom: 4px; }
.team-card .doctor-title { color: var(--metabolik-accent); margin-bottom: 12px; }
.team-card p { font-size: .88rem; }

/* CERTS */
.cert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
@media (hover: hover) and (pointer: fine) { .cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); } }
.cert-icon { font-size: 2.5rem; margin-bottom: 12px; }
.cert-card h4 { color: var(--dark); margin-bottom: 6px; font-size: 1rem; }
.cert-card p { font-size: .85rem; }

/* TREATMENT CARDS (generated by JS) */
.treatment-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex; flex-direction: column;
}
@media (hover: hover) and (pointer: fine) { .treatment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); } }
.treatment-icon { font-size: 2.2rem; margin-bottom: 12px; }
.treatment-card h3 { color: var(--dark); font-size: 1rem; margin-bottom: 8px; }
.treatment-card p { font-size: .9rem; flex: 1; margin-bottom: 16px; }
.treatment-card .target { font-size: .8rem; color: var(--regen-primary); font-weight: 600; margin-bottom: 16px; }
.treatment-card .btn { padding: 10px 20px; font-size: .85rem; }

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-sm);
  min-height: 160px;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray);
}

/* BEFORE/AFTER SLIDER */
.slider-container { position: relative; overflow: hidden; border-radius: var(--radius); }
.slider-track {
  display: flex;
  transition: transform .4s ease;
}
.before-after-slide {
  display: flex;
  min-width: 100%;
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
}
.ba-img {
  flex: 1; min-height: 280px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #e0e0e0;
  position: relative;
}
.ba-img span {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  background: rgba(0,0,0,.5);
  color: var(--white);
  border-radius: 50px;
  margin-bottom: 8px;
}
.ba-img p { color: var(--white); font-weight: 600; font-size: .9rem; }
.ba-after { opacity: .9; }
.slider-controls {
  position: absolute; bottom: 16px; right: 16px;
  display: flex; gap: 8px;
}
.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  line-height: 1;
}
.slider-btn:hover { background: var(--white); transform: scale(1.1); }

/* TESTIMONIOS */
.testimonios-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.testimonio-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  transform-style: preserve-3d;
}
.testimonio-card:hover { box-shadow: var(--shadow-hover); }
.stars { color: var(--regen-accent); font-size: 0.75rem; margin-bottom: 10px; letter-spacing: 0.1em; }
.testimonio-card p { font-family: var(--font-serif); font-style: italic; font-size: 0.9rem; font-weight: 300; line-height: 1.6; margin-bottom: 12px; color: var(--text); }
.testimonio-card strong { color: var(--text); font-family: var(--font-sans); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.testimonio-card span { color: var(--text-muted); font-size: .72rem; }

/* ACCORDION */
.accordion { display: flex; flex-direction: column; gap: 0; border: 1px solid rgba(0,0,0,0.07); border-radius: var(--radius); overflow: hidden; }
.acc-item {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}
.acc-item:last-child { border-bottom: none; }
.acc-btn {
  width: 100%; text-align: left;
  padding: 18px 24px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.acc-btn::after { content: '+'; font-size: 1.2rem; color: var(--regen-accent); transition: var(--transition); font-weight: 300; }
.acc-btn[aria-expanded="true"]::after { content: '−'; }
.acc-btn:hover { background: var(--light-gray); }
.acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.acc-body.open { max-height: 300px; }
.acc-body p { padding: 0 24px 18px; font-size: .88rem; color: var(--text-light); }

/* UBICACIÓN */
.ubicacion-section {
  position: relative;
  overflow: hidden;
  padding: 48px 0;
  background: var(--light-gray);
}
.ubicacion-bg-img {
  position: absolute; inset: -60px 0 -60px 0; z-index: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(1.15) saturate(0.5);
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 80%, transparent 100%);
}
.ubicacion-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    var(--light-gray) 0%,
    transparent 20%,
    transparent 82%,
    var(--light-gray) 100%
  );
}
.ubicacion-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}
.ubi-item { margin-bottom: 24px; }
.ubi-item strong { display: block; font-weight: 600; margin-bottom: 6px; }
/* light variant on dark photo bg */
.ubicacion-section .section-header .section-tag { color: var(--regen-accent); text-shadow: 0 1px 6px rgba(150,160,170,0.35); }
.ubicacion-section .section-header h2 { color: var(--regen-dark); text-shadow: 1px 2px 8px rgba(140,155,165,0.4); }
.ubicacion-info-light .ubi-item strong { color: var(--regen-accent); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 400; }
.ubicacion-info-light .ubi-item p { color: var(--text); font-size: 1.15rem; font-family: var(--font-serif); font-weight: 300; line-height: 1.7; }
.ubicacion-info-light .ubi-item { margin-bottom: 28px; }
.map-embed { overflow: hidden; }
.map-embed-faded {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

/* FORMS */
.cita-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.9); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.5); }
.form-group select option { background: var(--dark); color: var(--white); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255,255,255,.18);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #ff6b6b; }
.form-success {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
  padding: 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
}

/* CTA BACKGROUNDS */
.regen-cta-bg {
  background: linear-gradient(180deg, #F3F2EF 0%, #eaf7fc 22%, #d8f0f8 50%, #eaf7fc 78%, #F3F2EF 100%);
}
.regen-cta-bg .section-header h2,
.regen-cta-bg .section-header.light h2 { color: var(--regen-dark); }
.regen-cta-bg .section-tag,
.regen-cta-bg .section-tag.light-tag { color: var(--regen-accent); }
.regen-cta-bg label { color: var(--text); font-family: var(--font-sans); font-size: .78rem; font-weight: 400; letter-spacing: .06em; }
.regen-cta-bg .form-group input,
.regen-cta-bg .form-group select,
.regen-cta-bg .form-group textarea {
  background: rgba(255,255,255,0.85);
  border: none;
  box-shadow: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .93rem;
}
.regen-cta-bg .form-group input::placeholder,
.regen-cta-bg .form-group textarea::placeholder { color: var(--text-muted); }
.regen-cta-bg .form-group input:focus,
.regen-cta-bg .form-group select:focus,
.regen-cta-bg .form-group textarea:focus {
  border: none;
  outline: none;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 12px rgba(74,155,175,0.12);
}
.regen-cta-bg .btn-submit,
.regen-cta-bg button[type="submit"] {
  background: rgba(255,255,255,0.85);
  color: var(--regen-dark);
  border: 1px solid rgba(74,155,175,0.3);
  font-family: var(--font-sans);
  letter-spacing: .18em;
}
.regen-cta-bg .btn-submit:hover,
.regen-cta-bg button[type="submit"]:hover {
  background: rgba(255,255,255,1);
  border-color: var(--regen-primary);
  color: var(--regen-primary);
}
.regen-cta-bg .form-success {
  background: rgba(74,155,175,0.1);
  border: none;
  color: var(--regen-dark);
}
.metabolik-cta-bg {
  background: linear-gradient(180deg, #F3F2EF 0%, #e8f5e9 18%, #daeedd 50%, #e8f5e9 82%, #F3F2EF 100%);
}
.metabolik-cta-bg .section-header h2,
.metabolik-cta-bg .section-header.light h2 { color: var(--metabolik-dark); }
.metabolik-cta-bg .section-tag,
.metabolik-cta-bg .section-tag.light-tag { color: var(--metabolik-primary); }
.metabolik-cta-bg label { color: var(--text); font-family: var(--font-sans); font-size: .78rem; font-weight: 400; letter-spacing: .06em; }
.metabolik-cta-bg .form-group input,
.metabolik-cta-bg .form-group select,
.metabolik-cta-bg .form-group textarea {
  background: rgba(255,255,255,0.85);
  border: none;
  box-shadow: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .93rem;
}
.metabolik-cta-bg .form-group input::placeholder,
.metabolik-cta-bg .form-group textarea::placeholder { color: var(--text-muted); }
.metabolik-cta-bg .form-group input:focus,
.metabolik-cta-bg .form-group select:focus,
.metabolik-cta-bg .form-group textarea:focus {
  border: none;
  outline: none;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 12px rgba(61,107,79,0.12);
}
.metabolik-cta-bg .form-success {
  background: rgba(61,107,79,0.10);
  border-color: var(--metabolik-primary);
  color: var(--metabolik-dark);
}
.metabolik-cta-bg .btn-white-outline,
.metabolik-cta-bg button[type="submit"] {
  background: rgba(255,255,255,0.85);
  color: var(--metabolik-dark);
  border: 1px solid rgba(61,107,79,0.3);
  font-family: var(--font-sans);
  letter-spacing: .18em;
}
.metabolik-cta-bg .btn-white-outline:hover,
.metabolik-cta-bg button[type="submit"]:hover {
  background: rgba(255,255,255,0.98);
  border-color: rgba(61,107,79,0.5);
}
.metabolik-program-bg {
  background: linear-gradient(90deg, #1A2E22 50%, #F3F2EF 50%);
  margin-top: 20px;
}
/* Split title colors */
.programa-header { position: relative; z-index: 1; }
.programa-word-left { color: #F3F2EF; }
.programa-word-right { color: #1A2E22; }
.programa-subtitle { color: rgba(243,242,239,0.7); }
.light-tag { color: var(--metabolik-accent) !important; }

/* ============================================================
   CALCULADORA IMC + PROGRAMA GRID
   ============================================================ */
.programa-imc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.programa-pasos {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.paso-vertical {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.paso-vertical .paso-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--metabolik-accent);
  color: var(--dark);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}
.paso-vertical .paso-content h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.paso-vertical .paso-content p {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  line-height: 1.6;
  margin: 0;
}
.imc-card {
  background: rgba(26,46,34,0.12);
  border-radius: 10px;
  border: 1px solid rgba(26,46,34,0.18);
  padding: 32px 28px;
  position: relative;
  align-self: center;
  min-height: 420px;
}
.imc-form-area {
  transition: opacity 0.4s ease;
}
.imc-form-area.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 32px 28px;
}
.imc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.imc-field label {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--metabolik-dark);
  margin-bottom: 6px;
}
.imc-field input, .imc-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(26,46,34,0.25);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--dark);
  background: rgba(255,255,255,0.7);
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.imc-field input::placeholder { color: var(--text-muted); }
.imc-field select option { color: var(--dark); background: var(--white); }
.imc-field input:focus, .imc-field select:focus {
  outline: none;
  border-color: var(--metabolik-primary);
  background: rgba(255,255,255,0.9);
}
.imc-btn { width: 100%; margin-top: 8px; }
.imc-result {
  display: none;
  position: absolute;
  inset: 0;
  padding: 20px 28px 16px;
  border-radius: 10px;
  background: rgba(243,242,239,0.97);
  overflow: hidden;
}
.imc-result.visible { display: flex; flex-direction: column; align-items: center; animation: fadeInUp 0.3s var(--ease-out); }
.imc-gauge-wrap { display: flex; justify-content: center; margin-bottom: 8px; }
.imc-gauge { width: 170px; height: 94px; }
.imc-gauge-fill { transition: stroke-dasharray 1s cubic-bezier(0.25,0.46,0.45,0.94), stroke 0.6s ease; }
.imc-gauge-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  fill: var(--metabolik-dark);
}
.imc-gauge-label {
  font-family: var(--font-sans);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  fill: var(--text-muted);
}
.imc-verdict {
  text-align: center;
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--dark);
  width: 100%;
  line-height: 1.5;
}
.imc-scale {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: .65rem;
  text-align: center;
}
.imc-scale-item {
  flex: 1;
  padding: 6px 4px;
  color: #fff;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.3;
  transition: transform 0.3s, box-shadow 0.3s;
}
.imc-scale-item.active { transform: scaleY(1.08); box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 1; position: relative; }
.imc-bajo   { background: #5BA4CF; }
.imc-normal { background: #3D9970; }
.imc-sobre  { background: #E8A838; }
.imc-obeso  { background: #C0392B; }
.imc-cta { width: 100%; margin-top: 4px; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* PROCESO STEPS */
.proceso-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.paso {
  flex: 1; min-width: 180px; max-width: 220px;
  text-align: center;
}
.paso-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  margin: 0 auto 16px;
}
.metabolik-accent { background: var(--metabolik-accent); color: var(--dark); }
.paso h4 { color: var(--white); margin-bottom: 8px; }
.paso p { color: rgba(255,255,255,.75); font-size: .9rem; }
.paso-arrow { font-size: 2rem; color: rgba(255,255,255,.4); padding-top: 20px; align-self: flex-start; }

/* CONTACTO */
.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.contacto-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}
.contacto-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ci-icon { font-size: 2rem; }
.contacto-item strong { color: var(--dark); font-size: .9rem; }
.contacto-item span { color: var(--text-light); font-size: .9rem; }

.garantia-box {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.07);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 2px solid var(--regen-accent);
}
.garantia-box h3 { color: var(--dark); margin-bottom: 12px; }

/* CONTACTO */
.contacto-item {
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
}
.contacto-item strong { font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 400; color: var(--text-muted); }
.contacto-item span { font-size: 0.88rem; }

/* FOOTER — slim */
.footer { background: #3A3935; color: rgba(255,255,255,.7); padding: 28px 0 0; }
.footer-slim {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  padding-bottom: 22px;
}
.footer-logo { height: 36px; filter: brightness(0) invert(1); flex-shrink: 0; }
.footer-slim-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
  flex: 1;
}
.footer-slim-links a {
  color: rgba(255,255,255,.55);
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: 0.04em;
  transition: color .25s;
  white-space: nowrap;
}
.footer-slim-links a:hover { color: var(--white); }
.footer-slim-sep {
  color: rgba(255,255,255,.2);
  font-size: .7rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(37,211,102,.7); }

/* ============================================================
   ANIMATIONS & SCROLL REVEAL
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Scroll-reveal base states */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal="up"] { transform: translateY(36px); }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="scale"] { transform: scale(0.95); }
[data-reveal].visible { opacity: 1; transform: none; }

/* Page transitions */
.page-transitioning-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.page-transitioning-in {
  opacity: 0;
  transform: translateY(10px);
}
.page-ready {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-title, .hero-sub, .hero-btns, .hero-right { opacity: 1; transform: none; transition: none; }
  .hero-photo-wrapper { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .programa-imc-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.1); z-index: 100; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .doctor-card { flex-direction: column; align-items: center; text-align: center; }
  .ubicacion-layout { grid-template-columns: 1fr; }
  .quick-bar { flex-wrap: wrap; }
  .proceso-steps { flex-direction: column; align-items: center; }
  .paso-arrow { display: none; }
  .nav-area-menu .nav-links { top: 52px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* HERO mobile */
  .hero { min-height: auto; }
  .hero-layout {
    flex-direction: column;
    padding: 0;
    min-height: auto;
    gap: 0;
  }
  .hero-layout::after { display: none; }
  .hero-diagonal { clip-path: none; }
  .hero-left {
    flex: none;
    width: 100%;
    padding: 60px 24px 32px;
    text-align: center;
    align-items: center;
  }
  .hero-logo-top { height: 56px; }
  .hero-sub { text-align: center; }
  .hero-btns { align-items: center; width: 100%; }
  .btn-regen-hero, .btn-metabolik-hero { width: 100%; max-width: 340px; }
  .hero-right {
    flex: none;
    width: 100%;
    height: 380px;
  }
  .hero-photo {
    object-position: center 15%;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
}

@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .hero { min-height: 100vh; }
  .popup-box { padding: 36px 24px; }
  .cards-grid, .cards-grid.cols-3, .cards-grid.cols-4 { grid-template-columns: 1fr; }
  /* Carousel mobile */
  .promos-carousel-wrapper { padding: 0 36px; }
  .promo-card { flex: 0 0 calc(100% - 0px); }
  .agendar-options { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   AGENDAR CITA GENERAL
   ============================================================ */
.agendar-general-bg {
  background:
    linear-gradient(to bottom, var(--light-gray) 0%, transparent 90px),
    linear-gradient(to top, var(--light-gray) 0%, transparent 90px),
    linear-gradient(110deg, #e5f2f6 0%, #f0f8fa 22%, #f8faf8 44%, #eff4ec 66%, #e3ece0 82%, #d2e2cb 100%);
}
.agendar-general-bg .section-header h2 { color: var(--dark); }
.agendar-general-bg .section-header p { color: var(--text-light); }
.agendar-general-bg .section-tag { color: var(--regen-accent); }
.agendar-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}
.agendar-option {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), color 0.2s ease-out, background 0.2s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.agendar-option:hover { background: rgba(255,255,255,0.92); transform: translateY(-3px); box-shadow: var(--shadow); }
.agendar-option-icon { display: none; }
.agendar-option-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 20px;
  min-height: 52px;
}
.agendar-option h3 { color: var(--dark); margin-bottom: 10px; font-family: var(--font-serif); font-weight: 400; font-size: 1.6rem; }
.agendar-option p { color: var(--text-light); font-size: .85rem; margin-bottom: 24px; }
.agendar-option-metabolik { border-color: rgba(61,107,79,0.15); }

/* Button for light backgrounds (replaces btn-white-outline on dark sections) */
.btn-dark-outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid rgba(0,0,0,0.22);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), color 0.2s ease-out, background 0.2s ease-out;
  width: 100%;
  margin-top: 8px;
  text-align: center;
  display: block;
}
.btn-dark-outline:hover { background: rgba(0,0,0,0.06); border-color: var(--dark); }
.btn-wa-cita {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  background: #25D366;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
}
.btn-wa-cita:hover { background: #1db954; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(37,211,102,.6); }

/* ============================================================
   FAQ TABS (página principal)
   ============================================================ */
.faq-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.faq-tab {
  padding: 8px 22px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.12);
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}
.faq-tab:hover { border-color: var(--regen-primary); color: var(--regen-primary); }
.faq-tab.active {
  background: var(--regen-primary);
  border-color: var(--regen-primary);
  color: var(--white);
}

/* INLINE FAQ (home page, below promos) */
.inline-faq {
  margin-top: 28px;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding-top: 28px;
}
.inline-faq-header {
  margin-bottom: 20px;
}
.inline-faq-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--dark);
  margin-top: 6px;
}
.inline-faq .faq-tabs {
  justify-content: flex-start;
  margin-bottom: 20px;
}
.inline-faq .accordion { border-radius: var(--radius); }
.inline-faq .acc-btn { font-size: 0.82rem; padding: 14px 18px; }
.inline-faq .acc-body p { font-size: 0.82rem; padding: 0 18px 14px; }
