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

:root {
  --glucosa-bg-main: #f4f7f6;
  --glucosa-surface-card: #ffffff;
  --glucosa-surface-alt: #0f172a;
  --glucosa-accent-mint: #059669;
  --glucosa-accent-emerald: #10b981;
  --glucosa-accent-amber: #f59e0b;
  --glucosa-ink-primary: #1e293b;
  --glucosa-ink-muted: #64748b;
  --glucosa-ink-light: #f8fafc;
  --glucosa-gradient-hero: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(5, 150, 105, 0.75) 100%);
  --glucosa-gradient-panel: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  --glucosa-gradient-cta: linear-gradient(135deg, #059669 0%, #047857 100%);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--glucosa-bg-main);
  color: var(--glucosa-ink-primary);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scroll animation progress bar */
.metabolic-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--glucosa-accent-mint);
  width: 100%;
  transform-origin: 0 50%;
  z-index: 10000;
  animation: scrollProgress linear;
}

@supports (animation-timeline: scroll()) {
  .metabolic-progress-line {
    animation-timeline: scroll(root block);
  }
}

@keyframes scrollProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Header Preset K */
.glucosa-nav-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glucosa-surface-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.glucosa-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--glucosa-ink-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.glucosa-brand-icon {
  width: 38px;
  height: 38px;
  fill: var(--glucosa-accent-mint);
}

.glucosa-menu-checkbox {
  display: none;
}

.glucosa-hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.glucosa-hamburger-btn span {
  width: 26px;
  height: 3px;
  background-color: var(--glucosa-ink-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.glucosa-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.glucosa-nav-links a {
  text-decoration: none;
  color: var(--glucosa-ink-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.glucosa-nav-links a:hover {
  color: var(--glucosa-accent-mint);
}

.glucosa-nav-cta-btn {
  background: var(--glucosa-accent-mint);
  color: #ffffff !important;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.glucosa-nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Preset K: Hero Stack */
.vitality-hero-stage {
  position: relative;
  min-height: 90vh;
  background: url('img/bg.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
}

.vitality-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--glucosa-gradient-hero);
}

.vitality-stack-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.vitality-stack-back-card {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  transform: rotate(-3deg) translateY(12px) scale(0.97);
  z-index: 1;
}

.vitality-stack-mid-card {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  transform: rotate(2deg) translateY(6px) scale(0.99);
  z-index: 2;
}

.vitality-stack-front-card {
  position: relative;
  z-index: 3;
  background: var(--glucosa-surface-card);
  border-radius: 20px;
  padding: 3.5rem 3rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.vitality-badge-tag {
  display: inline-block;
  background: rgba(5, 150, 105, 0.12);
  color: var(--glucosa-accent-mint);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.vitality-main-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--glucosa-ink-primary);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.vitality-lead-text {
  font-size: 1.1rem;
  color: var(--glucosa-ink-muted);
  max-width: 680px;
  margin: 0 auto 2.2rem;
}

.vitality-primary-action {
  display: inline-block;
  background: var(--glucosa-gradient-cta);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 1.1rem 2.8rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.35);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.vitality-primary-action:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(5, 150, 105, 0.45);
}

/* Levitating Features Section (Preset K) */
.energy-levitate-section {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  padding: 0 5% 4rem;
}

.energy-cards-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.energy-levitate-box {
  background: var(--glucosa-surface-card);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.energy-levitate-box:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

.energy-box-icon {
  width: 54px;
  height: 54px;
  background: rgba(5, 150, 105, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.energy-box-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--glucosa-accent-mint);
}

.energy-box-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--glucosa-ink-primary);
}

.energy-box-desc {
  color: var(--glucosa-ink-muted);
  font-size: 0.95rem;
}

/* Content Section Floating Frame & Raised Panel */
.balance-depth-section {
  padding: 6dvh 5%;
  max-width: 1250px;
  margin: 0 auto;
}

.balance-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.balance-floating-frame {
  position: relative;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.balance-floating-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.balance-raised-panel {
  background: var(--glucosa-surface-card);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--glucosa-accent-mint);
}

.balance-panel-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--glucosa-ink-primary);
}

.balance-panel-text {
  color: var(--glucosa-ink-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* "Cómo funciona" Elevated Pill Cards */
.steps-pill-section {
  padding: 6dvh 5%;
  background: var(--glucosa-surface-card);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.02);
}

.steps-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.steps-section-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.steps-horizontal-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  max-width: 900px;
  margin: 0 auto;
}

.steps-elevated-pill {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--glucosa-surface-card);
  border-radius: 999px;
  padding: 1.5rem 2.8rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.steps-elevated-pill:hover {
  transform: scale(1.02);
}

.steps-num-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--glucosa-accent-mint);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}

.steps-pill-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--glucosa-ink-primary);
  margin-bottom: 0.25rem;
}

.steps-pill-content p {
  color: var(--glucosa-ink-muted);
  font-size: 0.92rem;
}

/* CTA Floating Panel 65% Width */
.cta-stage-wrap {
  padding: 8dvh 5%;
  background: var(--glucosa-surface-alt);
  position: relative;
}

.cta-floating-panel {
  width: 90%;
  max-width: 780px;
  margin: 0 auto;
  background: var(--glucosa-surface-card);
  padding: 3.5rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.cta-panel-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--glucosa-ink-primary);
  margin-bottom: 1rem;
}

.cta-panel-desc {
  color: var(--glucosa-ink-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Expert Page Specifics */
.expert-frame-wrapper {
  max-width: 1000px;
  margin: 0 auto 4rem;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-height: 500px;
}

.expert-frame-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-stats-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 5rem;
}

.expert-pill-card {
  background: var(--glucosa-surface-card);
  padding: 2rem 1.5rem;
  border-radius: 999px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.expert-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--glucosa-accent-mint);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.expert-stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--glucosa-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Reserve Page Specifics */
.reserve-form-card {
  background: var(--glucosa-surface-card);
  padding: 3.5rem 3rem;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  max-width: 650px;
  margin: 0 auto 5rem;
}

.form-group-field {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--glucosa-ink-primary);
}

.form-group-field input,
.form-group-field textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background: #f8fafc;
}

.form-group-field input:focus,
.form-group-field textarea:focus {
  outline: none;
  border-color: var(--glucosa-accent-mint);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
  background: #ffffff;
}

.form-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.form-checkbox-wrap input {
  margin-top: 0.3rem;
  width: 18px;
  height: 18px;
  accent-color: var(--glucosa-accent-mint);
}

.form-checkbox-wrap label {
  font-size: 0.88rem;
  color: var(--glucosa-ink-muted);
}

.reserve-info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 5rem;
}

.reserve-info-box {
  background: var(--glucosa-surface-card);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.reserve-badge-list {
  list-style: none;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.reserve-badge-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.reserve-round-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.15);
  color: var(--glucosa-accent-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* FAQ Lifting Cards */
.faq-lift-stack {
  max-width: 850px;
  margin: 0 auto 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-lift-card {
  background: var(--glucosa-surface-card);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease;
}

.faq-lift-card:hover {
  transform: translateY(-4px);
}

.faq-lift-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--glucosa-ink-primary);
  margin-bottom: 0.6rem;
}

.faq-lift-card p {
  color: var(--glucosa-ink-muted);
  font-size: 0.95rem;
}

/* Policy & Terms Layout */
.policy-doc-container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 5%;
}

.policy-doc-card {
  background: var(--glucosa-surface-card);
  padding: 3.5rem 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.policy-doc-card h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.policy-doc-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.policy-doc-card p {
  color: var(--glucosa-ink-muted);
  margin-bottom: 1.25rem;
}

/* Footer Preset K */
.glucosa-footer-base {
  background: var(--glucosa-surface-alt);
  color: var(--glucosa-ink-light);
  padding: 4rem 5% 2rem;
  margin-top: auto;
}

.glucosa-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.glucosa-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.glucosa-footer-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.glucosa-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.glucosa-footer-links a:hover {
  color: #ffffff;
}

.glucosa-disclaimer-box {
  max-width: 750px;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glucosa-copyright-text {
  font-size: 0.85rem;
  color: #64748b;
}

/* Cookie Banner */
.cookie-floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #ffffff;
  padding: 1.2rem 5%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.cookie-actions-grp {
  display: flex;
  gap: 1rem;
}

.cookie-btn-accept {
  background: var(--glucosa-accent-mint);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-btn-decline {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #475569;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .glucosa-hamburger-btn {
    display: flex;
  }

  .glucosa-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glucosa-surface-card);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none;
  }

  .glucosa-menu-checkbox:checked ~ .glucosa-nav-links {
    display: flex;
  }

  .balance-split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps-elevated-pill {
    border-radius: 20px;
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .vitality-stack-front-card {
    padding: 2rem 1.2rem;
  }

  .cookie-floating-bar {
    flex-direction: column;
    text-align: center;
  }
}