/* ============================================
   VARIABLES Y COLORES KÉFIR ORO BLANCO
   ============================================ */

:root {
  /* Colores Principales */
  --color-primary: #2d8659;
  --color-primary-dark: #1e5c3f;
  --color-primary-light: #4caf50;
  --color-secondary: #d4a574;
  --color-secondary-dark: #b8860b;
  --color-accent: #27ae60;

  /* Colores Neutros */
  --color-light: #f8f9fa;
  --color-dark: #2c3e50;
  --color-white: #ffffff;

  /* Tipografía */
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Inter", sans-serif;
}

/* ============================================
   ESTILOS GENERALES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

section[id],
[id="page-top"] {
  scroll-margin-top: 90px;
}

#producto,
#beneficios,
#historia,
#contacto,
#ubicacion,
.corporate-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
}

@supports not (content-visibility: auto) {
  #producto,
  #beneficios,
  #historia,
  #contacto,
  #ubicacion,
  .corporate-footer {
    contain: content;
  }
}

body {
  font-family: var(--font-secondary);
  color: var(--color-dark);
  background-color: var(--color-white);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-dark);
}

p {
  color: #555;
  font-size: 1.2rem;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ============================================
   NAVEGACIÓN - SIDEBAR
   ============================================ */

.menu-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 1000;
  width: 96px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-white);
  background: var(--color-primary);
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  box-shadow: 0 4px 12px rgba(45, 134, 89, 0.3);
  transition: all 0.3s ease;
}

.menu-toggle-text {
  font-size: 13px;
  font-weight: 600;
}

.menu-toggle:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 16px rgba(45, 134, 89, 0.5);
  transform: scale(1.05);
}

#sidebar-wrapper {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100vh;
  overflow-y: auto;
  background: var(--color-primary);
  z-index: 999;
  transition:
    left 0.3s ease,
    right 0.3s ease,
    transform 0.3s ease;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
}

#sidebar-wrapper.active {
  right: 0 !important;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand a {
  color: var(--color-white);
  font-size: 30px;
  font-weight: 700;
  padding: 10px;
}

.logo-nav {
  padding-top: 16px;
  margin-top: 32px;
  margin-bottom: 32px;
  max-height: 120px;
  width: auto;
  background: transparent;
}

.sidebar-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav-item a {
  display: block;
  color: var(--color-white);
  padding: 15px 20px;
  font-size: 21px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sidebar-nav-item a:hover {
  background: var(--color-primary-dark);
  padding-left: 30px;
  color: #b38728;
}

.whatsapp-nav {
  background: var(--color-accent) !important;
  margin: 10px;
  border-radius: 8px;
  text-align: center;
}

.whatsapp-nav:hover {
  background: #1e8449 !important;
  padding-left: 20px !important;
}

/* ============================================
   HEADER / HERO SECTION
   ============================================ */

.masthead {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  padding: 0; /* eliminar acolchonamiento para video full-width */
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  background-attachment: fixed;
  z-index: 0;
}

.masthead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: -1;
}

.masthead-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.logo-hero {
  max-width: 1000px;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: top;
  display: block;
  margin-left: auto;
  margin-right: auto;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.masthead h1 {
  font-size: 6.24rem;
  color: var(--color-white);
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  font-weight: 800;
  letter-spacing: -1px;
}

.masthead h3 {
  font-size: 2.34rem;
  color: #b38728;
  margin-bottom: 12px !important;
  margin-top: 0 !important;
  font-weight: 500;
}

.masthead-content {
  transform: translateY(2vh);
}

@media (max-width: 992px) {
  .masthead {
    padding: 6rem 0;
  }
  .masthead-content {
    transform: translateY(-4vh);
  }
  .logo-hero {
    max-width: 350px;
  }
}

@media (max-width: 576px) {
  .masthead {
    padding: 4.5rem 0;
  }
  .masthead-content {
    transform: translateY(-2.5vh);
  }
}

.masthead .lead {
  font-size: 1.82rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Tighten spacing between logo and hero text */
.masthead .logo-hero {
  margin-bottom: 50px !important;
}
.masthead h1 {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}
.masthead h3 {
  margin-top: 0 !important;
  margin-bottom: 25px !important;
}
.masthead .lead {
  margin-top: 6px !important;
  margin-bottom: 30px !important;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: none;
  border-radius: 50px;
  padding: 12px 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 6px 16px rgba(45, 134, 89, 0.4);
  transform: translateY(-2px);
}

.btn-success {
  background: #27ae60;
  border-color: #27ae60;
  color: var(--color-white);
}

.btn-success:hover {
  background: #1e8449;
  border-color: #1e8449;
  box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
  transform: translateY(-2px);
}

.btn-outline-success {
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  background: transparent;
}

.btn-outline-success:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-xl {
  padding: 15px 40px;
  font-size: 1.69rem;
}

.btn-dark {
  background: var(--color-dark);
  border-color: var(--color-dark);
}

.btn-dark:hover {
  background: #1a252f;
  border-color: #1a252f;
}

/* ============================================
   SECCIONES DE CONTENIDO
   ============================================ */

.content-section {
  padding: 5rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.bg-light {
  background-color: #f9f9f9 !important;
}

.bg-primary {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  ) !important;
}

.content-section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.content-section-heading h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--color-primary);
}

.content-section-heading h2 {
  font-size: 4.55rem;
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--color-dark);
  font-weight: 800;
}

#beneficios .content-section-heading h2 {
  color: #b8f2a6;
}

.text-secondary {
  color: var(--color-secondary) !important;
}

/* Scrollytelling */
.scrollytelling-section {
  position: relative;
  height: 300vh;
  background: #000;
}

/* Make beneficios and historia match main content section sizing */
#beneficios,
#historia {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Center contenido verticalmente en Beneficios */
#beneficios > .container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#scrollVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.discover-product-cta {
  position: fixed;
  left: 50%;
  bottom: clamp(2.5rem, 12vh, 6rem);
  display: flex;
  justify-content: center;
  transform: translateX(-50%);
  z-index: 12;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.discover-product-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 2.7rem;
  min-width: min(90vw, 420px);
  min-height: 63px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-primary) 100%
  );
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: clamp(0.86rem, 0.86vw + 0.675rem, 1.275rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.discover-product-btn:hover,
.discover-product-btn:focus {
  transform: translateY(-2px) scale(1.02);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

body.scrolly-cta-hidden .discover-product-cta {
  opacity: 0;
  transform: translateX(-50%) translateY(18px);
  pointer-events: none;
}

body.scrolly-cta-hidden .discover-product-btn {
  pointer-events: none;
}

.text-overlay {
  position: fixed;
  inset: 0;
  height: 100vh;
  z-index: 10;
  margin-top: 0;
  pointer-events: none;
}

.step {
  position: absolute;
  inset: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 10%;
  overflow: hidden;
  opacity: 0;
  transform: none;
  transition: opacity 120ms linear;
}

.step h2 {
  font-size: clamp(3rem, 9vw, 9rem);
  margin-bottom: 30px;
  color: #fcbd35;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 18px rgba(179, 135, 40, 0.24),
    0 0 38px rgba(106, 77, 20, 0.18);
  -webkit-text-stroke: 1px rgba(120, 84, 15, 0.12);
  line-height: 1.1;
}

.step p {
  font-size: clamp(1.125rem, 2.25vw, 2.25rem);
  max-width: 600px;
  line-height: 1.4;
  font-weight: 600;
  text-shadow:
    0 0 22px rgba(0, 0, 0, 0.6),
    0 0 11px rgba(252, 246, 186, 0.3);
  letter-spacing: 1px;
}

/* Primera columna: Aparece desde la izquierda */

.step:nth-child(1) {
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 20vh;
  padding-left: 5%;
}

.step:nth-child(1) h2 {
  text-align: left;
  width: 100%;
  max-width: none;
}

.step:nth-child(1) p {
  text-align: left;
  display: block;
  width: 100%;
  max-width: none;
  margin-left: 0;
  padding-left: 0;
  font-size: clamp(1.25rem, 4vw, 3rem);
  color: goldenrod;
  font-weight: 900;
  -webkit-text-stroke: 1px whitesmoke;
  text-shadow:
    0 0 4.5px rgba(255, 216, 107, 0.72),
    0 0 10.5px rgba(255, 216, 107, 0.6),
    0 0 21px rgba(190, 142, 35, 0.54),
    1px 1px 0 rgba(146, 105, 15, 0.6),
    -1px -1px 0 rgba(146, 105, 15, 0.6),
    1px -1px 0 rgba(146, 105, 15, 0.6),
    -1px 1px 0 rgba(146, 105, 15, 0.6);
  line-height: 1.2;
  letter-spacing: 0;
}

/* Segunda columna: Aparece desde la derecha */

.step:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Alinea todo el contenido hacia la derecha */
}

.step:nth-child(2) h2 {
  text-align: right;
  width: 100%;
  max-width: none;
}

.step:nth-child(2) p {
  text-align: center;
  /* Eliminamos el display block y el width 100% forzado */
  font-size: clamp(1.25rem, 4vw, 3rem);
  color: lightgreen;
  font-weight: 900;
  -webkit-text-stroke: 1px greenyellow;
  text-shadow:
    0 0 4.5px rgba(255, 216, 107, 0.72),
    0 0 10.5px rgba(255, 216, 107, 0.6),
    0 0 21px rgba(190, 142, 35, 0.54),
    1px 1px 0 rgba(146, 105, 15, 0.6),
    -1px -1px 0 rgba(146, 105, 15, 0.6),
    1px -1px 0 rgba(146, 105, 15, 0.6),
    -1px 1px 0 rgba(146, 105, 15, 0.6);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0; /* Asegura que no haya márgenes extraños empujando el texto */
}

/* Tercera columna: Aparece en el centro */

.step:nth-child(3) p {
  font-size: clamp(1.25rem, 4vw, 3rem);
  color: whitesmoke;
  font-weight: 900;
  -webkit-text-stroke: 1px goldenrod;
  text-shadow:
    0 0 4.5px rgba(255, 216, 107, 0.72),
    0 0 10.5px rgba(255, 216, 107, 0.6),
    0 0 21px rgba(190, 142, 35, 0.54),
    1px 1px 0 rgba(146, 105, 15, 0.6),
    -1px -1px 0 rgba(146, 105, 15, 0.6),
    1px -1px 0 rgba(146, 105, 15, 0.6),
    -1px 1px 0 rgba(146, 105, 15, 0.6);
  line-height: 1.2;
  letter-spacing: 0;
  padding-top: 30vh;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   SECCIÓN DE PRODUCTO
   ============================================ */

.product-gallery {
  margin-bottom: 2rem;
}

.main-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: var(--color-light);
}

.main-image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.main-image-container:hover img {
  transform: scale(1.05);
}

.main-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.02),
    rgba(40, 167, 69, 0.03)
  );
  pointer-events: none;
}

.thumbnail-gallery {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.thumbnail-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.thumbnail-img:hover,
.thumbnail-img.active {
  opacity: 1;
  border-color: var(--color-primary);
}

.product-info {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(240, 255, 246, 0.9) 100%
  );
  padding: 2.25rem;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(45, 134, 89, 0.08);
  border: 1px solid rgba(45, 134, 89, 0.06);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.product-info:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 26px 60px rgba(45, 134, 89, 0.14);
}

.price-section {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(45, 134, 89, 0.16) 0%,
    rgba(184, 242, 166, 0.14) 48%,
    rgba(212, 165, 116, 0.16) 100%
  );
  border-radius: 16px;
  border: 2px solid rgba(45, 134, 89, 0.18);
  box-shadow: 0 14px 32px rgba(45, 134, 89, 0.12);
  position: relative;
  overflow: hidden;
}

.price-section::before {
  content: "Oferta";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.price-value {
  font-size: 5.4rem;
  color: var(--color-primary);
  font-weight: 900;
  margin-bottom: 0.1rem;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Ensure price text lines are centered */
.price-section .price-value,
.price-section .price-note {
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.price-note {
  color: #b38728;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.product-features {
  list-style: none;
  padding: 0;
}

.product-features li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #555;
  line-height: 1.35;
  font-size: 1.2rem;
}

.product-features li:last-child {
  border-bottom: none;
}

.product-comparison {
  background: linear-gradient(
    135deg,
    rgba(45, 134, 89, 0.16) 0%,
    rgba(184, 242, 166, 0.14) 48%,
    rgba(212, 165, 116, 0.14) 100%
  );
  padding: 2rem 1.5rem;
  border-radius: 16px;
  border: 2px solid rgba(45, 134, 89, 0.18);
  box-shadow: 0 14px 32px rgba(45, 134, 89, 0.12);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.product-comparison::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(184, 242, 166, 0.18),
    transparent 40%
  );
  transform: rotate(25deg);
}

.product-comparison:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(45, 134, 89, 0.14);
}

.product-comparison h5 {
  color: var(--color-white);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 1.35rem !important;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #63c28b 100%);
  box-shadow: 0 14px 28px rgba(45, 134, 89, 0.28);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.product-comparison h5::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: shimmer 3.5s ease-in-out infinite;
}

.product-info > a.btn.btn-success.btn-xl {
  margin-top: 0.75rem;
  display: inline-block;
}

.comparison-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 1.2rem;
}

.comparison-item:last-child {
  border-bottom: none;
}

.comparison-item strong {
  color: var(--color-primary);
  display: block;
  margin-bottom: 5px;
}

/* ============================================
   SECCIÓN DE BENEFICIOS
   ============================================ */

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-secondary);
  font-size: 3.77rem;
  transition: all 0.3s ease;
}

.benefit-card {
  transition: all 0.3s ease;
  padding: 2rem;
}

.benefit-card:hover .benefit-icon {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.benefit-card h4 {
  font-size: 1.95rem;
  margin: 20px 0;
  color: var(--color-white);
}

.benefit-card p {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   SECCIÓN DE HISTORIA
   ============================================ */

.historia-image {
  text-align: center;
}

.historia-image img {
  max-width: 100%;
  height: auto;
  animation: float 4s ease-in-out infinite;
}

#historia .col-lg-6.order-lg-1 > p {
  background: linear-gradient(
    135deg,
    rgba(45, 134, 89, 0.08) 0%,
    rgba(184, 242, 166, 0.12) 50%,
    rgba(212, 165, 116, 0.08) 100%
  );
  padding: 1.1rem 1.25rem;
  border-left: 6px solid var(--color-primary);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(45, 134, 89, 0.08);
  color: #4f5b53;
  line-height: 1.55;
}

#historia .col-lg-6.order-lg-1 > p strong {
  color: var(--color-primary);
}

/* Forzar que la sección Historia use el flujo de la página
   y no cree su propia barra de scroll interna. */
#historia {
  height: auto !important;
  min-height: 100vh;
  overflow: visible !important;
}

.historia-image {
  overflow: visible !important;
}

/* ============================================
   BARRA DE PROGRESO SUPERIOR (MUY DELGADA, DORADA)
   ============================================ */
#progressTop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1200;
  background: transparent;
}
#progressTopBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    to right,
    #bf953f,
    #fcf6ba,
    #b38728,
    #fbf5b7,
    #aa771c
  );
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  transition: width 120ms linear;
}

/* ============================================
   TOP NAV (escritorio) y comportamiento del sidebar
   ============================================ */
.top-navbar {
  position: fixed;
  top: 0; /* pegada arriba sin margen */
  left: 0;
  right: 0;
  z-index: 1100;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}
.top-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
}
.top-brand {
  display: inline-flex;
  align-items: center;
}
.logo {
  font-weight: bold;
  font-size: 2.5rem;
  color: #b38728;
}
.top-nav-links {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.top-nav-links li a {
  color: var(--color-dark);
  font-weight: 600;
  padding: 8px 10px;
}

.top-nav-links li a:hover,
.top-nav-links li a:focus {
  color: #b38728;
}

/* Footer Empresarial */
.corporate-footer {
  background: #0b3d2e;
  color: #fff;
  padding: 34px 5% 11px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand h4,
.footer-nav h4,
.footer-legal h4 {
  color: #b38728;
  margin-bottom: 11px;
}

.footer-brand p {
  color: #b0b0b0;
}

.footer-legal {
  text-align: center;
}

.footer-nav {
  text-align: center;
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
}

.footer-nav ul li {
  margin-bottom: 5px;
}

.footer-nav ul {
  text-align: center;
}

.footer-nav a,
.footer-legal a {
  color: #bbb;
  text-decoration: none;
  line-height: 1.7;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  display: inline-block;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: #b38728;
  transform: translateX(4px);
}

.link-button {
  color: #bbb;
  text-decoration: none;
  line-height: 1.7;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.link-button:hover {
  color: #b38728;
  transform: translateX(4px);
}

.social-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid #083022;
  margin-top: 22px;
  padding-top: 11px;
  text-align: center;
  color: #b38728;
  font-size: 0.8rem;
}

.footer-bottom p,
.footer-bottom a {
  color: #b38728;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(11, 61, 46, 0.96);
  color: var(--color-white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner-text {
  max-width: 760px;
}

.cookie-banner-text h5 {
  color: #f7d28a;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.cookie-banner-text p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner-link,
.cookie-manage-link {
  color: #f7d28a;
  font-weight: 700;
}

.cookie-banner-link:hover,
.cookie-manage-link:hover {
  color: #fff;
}

.cookie-manage-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.legal-page {
  background:
    radial-gradient(
      circle at top left,
      rgba(45, 134, 89, 0.16),
      transparent 30%
    ),
    linear-gradient(180deg, #f5fbf8 0%, #ffffff 42%, #edf6f1 100%);
  min-height: 100vh;
}

.legal-hero {
  padding: 8rem 0 3rem;
}

.legal-hero-card,
.legal-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(11, 61, 46, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(11, 61, 46, 0.08);
}

.legal-hero-card {
  padding: 2rem;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(45, 134, 89, 0.1);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.legal-section {
  padding-bottom: 4rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.legal-card {
  padding: 1.4rem;
  height: 100%;
}

.legal-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.legal-list {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.legal-list li {
  margin-bottom: 0.65rem;
  color: #4d5b57;
}

.legal-note {
  font-size: 0.95rem;
  color: #5a6661;
}

/* Mostrar top-navbar en pantallas grandes, ocultar menu-toggle */
@media (min-width: 992px) {
  .menu-toggle {
    display: none !important;
  }
  #sidebar-wrapper {
    display: none !important;
  }
  .top-navbar {
    display: block;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  }
}

/* En móviles, ocultar top-navbar y usar sidebar */
@media (max-width: 991px) {
  .top-navbar {
    display: none !important;
  }
}

/* ============================================
   SCROLLYTELLING VIDEO
   ============================================ */
.scrolly-video {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  height: 100vh;
  background: #000;
}
.scrolly-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.55;
}
.scrolly-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 4rem);
  pointer-events: none;
}
.scrolly-step {
  position: absolute;
  inset: 0;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.24));
  color: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: 18px;
  max-width: min(900px, 92vw);
  transform: translateY(18px);
  opacity: 0;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.scrolly-step h1,
.scrolly-step h2,
.scrolly-step h3,
.scrolly-step p {
  color: inherit;
}
.scrolly-step h4 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
}
.scrolly-step p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}
.scrolly-step.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scrolly-step h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  margin-bottom: 0.35rem;
}

.scrolly-step h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
  color: #b38728;
}

.scrolly-step h3 {
  font-size: clamp(1rem, 2vw, 1.45rem);
  margin-bottom: 0.75rem;
  color: #b38728;
}

/* Small tweaks for footer buttons */
.social-footer .btn {
  border-radius: 30px;
}

.historia-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-top: 2rem;
}

.highlight {
  background: linear-gradient(
    135deg,
    rgba(45, 134, 89, 0.1) 0%,
    rgba(212, 165, 116, 0.1) 100%
  );
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(45, 134, 89, 0.2);
  transition: all 0.3s ease;
}

.highlight:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(45, 134, 89, 0.2);
  transform: translateY(-5px);
}

.highlight h5 {
  color: var(--color-primary);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.highlight p {
  font-size: 1.3rem;
  color: #666;
}

/* ============================================
   SECCIÓN DE UBICACIÓN
   ============================================ */

.ubicacion-card {
  background: var(--color-white);
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.ubicacion-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(45, 134, 89, 0.15) !important;
  transform: translateY(-5px);
}

.ubicacion-card h4 {
  color: var(--color-primary);
  font-size: 2.2rem;
  font-weight: 800;
}

.ubicacion-card h5 {
  color: var(--color-primary);
  font-size: 2.2rem;
  font-weight: 800;
}

.ubicacion-card p {
  color: #555;
  font-size: 1.43rem;
}

.ubicacion-card small {
  font-size: 1.25rem;
  line-height: 1.35;
}

.ubicacion-card .btn.btn-success.btn-sm {
  font-size: 1.25rem;
  padding: 0.8rem 1.2rem;
}

.map-frame-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--color-light);
  border: 2px solid #e9ecef;
}

.map-frame-wrapper iframe {
  width: 100%;
  display: block;
  height: 600px !important;
}

.map-pin-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(30, 92, 63, 0.95);
  color: var(--color-white);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.horarios-card {
  width: min(100%, 760px);
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    rgba(45, 134, 89, 0.16) 0%,
    rgba(184, 242, 166, 0.18) 50%,
    rgba(212, 165, 116, 0.14) 100%
  );
  border: 2px solid rgba(45, 134, 89, 0.22);
  border-radius: 18px;
  padding: 2.25rem !important;
  box-shadow: 0 16px 36px rgba(45, 134, 89, 0.12);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.horarios-gap {
  margin-top: 4.5rem !important;
}

.horarios-card::before {
  content: "";
  position: absolute;
  top: -35px;
  right: -35px;
  width: 140px;
  height: 140px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0) 70%
  );
}

.horarios-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(45, 134, 89, 0.18);
  border-color: var(--color-secondary);
}

.horarios-card h5 {
  color: #b38728;
  font-size: 3rem;
  font-weight: 900;
}

.horarios-card p {
  color: #2f3b35;
  font-size: 1.2rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.horarios-card p strong {
  color: var(--color-primary);
}

/* ============================================
   SECCIÓN CALLOUT
   ============================================ */

.callout {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  z-index: 0;
}

.callout h2 {
  color: var(--color-white);
  font-size: 3.77rem;
  position: relative;
  z-index: 1;
}

.callout em {
  color: var(--color-secondary);
  font-style: italic;
}

.callout .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.82rem;
  position: relative;
  z-index: 1;
}

.callout .btn {
  position: relative;
  z-index: 1;
}

/* ============================================
   SECCIÓN SOCIAL & TikTok QR
   ============================================ */

.qr-container {
  background: var(--color-white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.qr-container:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.qr-container h5 {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.5rem;
}

.qr-image {
  max-width: 480px;
  border: 4px solid var(--color-primary);
  border-radius: 12px;
  padding: 14px;
  background: var(--color-light);
}

.social-info {
  background: var(--color-white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-info h5 {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.5rem;
}

.social-link {
  width: 75px;
  height: 75px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  transition: all 0.3s ease;
}

.social-link.bg-success {
  background: #27ae60 !important;
}

.social-link:hover {
  transform: scale(1.15) rotate(5deg);
}

/* Make the whole social section stand out and add spacing */
#social {
  padding: 5rem 0;
}

#social .row {
  row-gap: 2.5rem;
}

.social-info {
  border-left: 6px solid var(--color-primary);
  transition: all 0.35s ease;
}

.social-info:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.social-info .list-inline {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.social-info p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer.footer {
  padding: 3rem 0 1rem;
  background: #1a1a1a;
  color: var(--color-white);
}

footer.footer h5 {
  color: var(--color-secondary);
}

footer.footer p {
  color: rgba(255, 255, 255, 0.8);
}

footer.footer a {
  color: var(--color-white);
  transition: color 0.3s ease;
}

footer.footer a:hover {
  color: #b38728;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: none;
  width: 50px;
  height: 50px;
  text-align: center;
  color: var(--color-white);
  background: var(--color-primary);
  line-height: 50px;
  z-index: 100;
  font-size: 20px;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.scroll-to-top.show {
  display: block;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .masthead {
    height: auto;
    padding: 10rem 0;
  }

  .masthead h1 {
    font-size: 2.5rem;
  }

  .masthead h3 {
    font-size: 1.2rem;
  }

  .masthead .lead {
    font-size: 1rem;
  }

  .content-section-heading h2 {
    font-size: 2rem;
  }

  .content-section {
    padding: 3rem 0;
  }

  #beneficios,
  #historia {
    min-height: auto;
    display: block;
    align-items: stretch;
  }

  #beneficios > .container {
    height: auto;
  }

  #historia {
    padding-top: 3.5rem;
  }

  .historia-highlights {
    grid-template-columns: 1fr;
  }

  .product-info {
    padding: 1.5rem;
  }

  .price-value {
    font-size: 2.5rem;
  }

  .benefit-card {
    padding: 1.5rem;
  }

  .callout h2 {
    font-size: 1.8rem;
  }

  .callout .lead {
    font-size: 1rem;
  }

  .qr-image {
    max-width: 260px;
  }

  .scrollytelling-section {
    height: 280vh;
  }

  .text-overlay {
    position: fixed;
    inset: 0;
    height: 100vh;
    margin-top: 0;
  }

  .step {
    padding: 0 6vw;
  }

  .step:nth-child(1),
  .step:nth-child(2),
  .step:nth-child(3) {
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .step:nth-child(1) h2,
  .step:nth-child(1) p,
  .step:nth-child(2) h2,
  .step:nth-child(2) p,
  .step:nth-child(3) h2,
  .step:nth-child(3) p {
    text-align: center;
    width: 100%;
    animation-duration: 0.8s;
  }

  .step h2 {
    font-size: clamp(1.58rem, 6.75vw, 2.55rem);
    margin-bottom: 14px;
    letter-spacing: 1px;
  }

  .step p {
    font-size: clamp(0.75rem, 3.45vw, 1.01rem);
    max-width: 92vw;
    line-height: 1.35;
    letter-spacing: 0;
  }

  .step p {
    display: none;
  }

  .step:nth-child(2) p,
  .step:nth-child(3) p {
    font-size: clamp(0.75rem, 3.45vw, 1.01rem);
  }

  .discover-product-cta {
    bottom: 9rem;
  }

  .discover-product-btn {
    width: min(92vw, 315px);
    min-width: 0;
    min-height: 44px;
    padding: 0.71rem 0.94rem;
    font-size: 0.69rem;
    letter-spacing: 0.05em;
    background: linear-gradient(
      135deg,
      var(--color-accent) 0%,
      var(--color-primary) 100%
    );
    color: #ffffff;
  }

  .product-info:hover,
  .main-image-container:hover img,
  .benefit-card:hover .benefit-icon {
    transform: none;
  }

  .product-info:hover {
    box-shadow: 0 12px 30px rgba(45, 134, 89, 0.08);
  }

  .main-image-container:hover img {
    transform: none;
  }

  .benefit-card:hover .benefit-icon {
    transform: none;
  }

  .product-comparison h5 {
    font-size: 1.2rem;
    padding: 0.85rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .footer-nav ul,
  .footer-legal ul {
    display: block;
  }

  .footer-nav ul li {
    margin-bottom: 5px;
  }

  .social-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .social-footer .btn {
    margin-right: 0 !important;
  }

  .footer-bottom {
    margin-top: 16px;
  }
}

@media (max-width: 576px) {
  .masthead {
    padding: 6rem 0;
  }

  .masthead h1 {
    font-size: 2rem;
  }

  .masthead h3 {
    font-size: 1rem;
  }

  .logo-hero {
    max-width: 300px;
  }

  .logo-nav {
    max-height: 100px;
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .content-section-heading h2 {
    font-size: 1.5rem;
  }

  .content-section-heading h3 {
    font-size: 0.85rem;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.95rem;
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: space-between;
  }

  .btn-xl {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .menu-toggle {
    width: 76px;
    height: 60px;
    font-size: 18px;
  }

  .menu-toggle-text {
    font-size: 11px;
  }

  #sidebar-wrapper {
    width: 100%;
    right: -100%;
  }

  #sidebar-wrapper.active {
    right: 0 !important;
  }

  .product-features li {
    font-size: 0.95rem;
  }

  .price-value {
    font-size: 2rem;
  }

  .benefit-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .callout h2 {
    font-size: 1.5rem;
  }

  footer.footer {
    padding: 2rem 0 1rem;
  }

  .thumbnail-img {
    width: 60px;
    height: 60px;
  }

  .scrollytelling-section {
    height: 260vh;
  }

  .text-overlay {
    position: fixed;
    inset: 0;
    height: 100vh;
    margin-top: 0;
  }

  .step {
    padding: 0 5vw;
  }

  .step h2 {
    font-size: clamp(1.85rem, 10vw, 2.7rem);
    margin-bottom: 14px;
  }

  .step p {
    font-size: clamp(0.95rem, 4.3vw, 1.15rem);
    display: none !important;
  }

  .discover-product-btn {
    font-size: 0.86rem;
    padding: 0.9rem 1rem;
    letter-spacing: 0.04em;
    background: linear-gradient(
      135deg,
      var(--color-accent) 0%,
      var(--color-primary) 100%
    );
    color: #ffffff;
  }

  .footer-content {
    gap: 18px;
  }

  .footer-brand h4,
  .footer-nav h4,
  .footer-legal h4 {
    margin-bottom: 12px;
  }
}

/* ============================================
   ANIMACIONES ADICIONALES
   ============================================ */

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Smooth scrolling offset para menú fijo */
html {
  scroll-behavior: smooth;
}

/* Mejorar contraste de texto */
.text-faded {
  color: rgba(255, 255, 255, 0.8);
}

/* Sombras personalizadas */
.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Rounded lg */
.rounded-lg {
  border-radius: 15px;
}

/* Transiciones fluidas */
* {
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

button,
a,
input,
select,
textarea {
  transition: all 0.3s ease;
}
