:root {
  --color-fondo-oscuro: #0f172a;
  --color-fondo-tarjeta: #1e293b;
  --color-cian: #22d3ee;
  --color-lavanda: #818cf8;
  --color-rosa: #f472b6;
  --texto-principal: #f8fafc;
  --texto-secundario: #94a3b8;
  --degradado-marca: linear-gradient(
    135deg,
    var(--color-cian) 0%,
    var(--color-lavanda) 50%,
    var(--color-rosa) 100%
  );
  --brand-whatsapp: #25d366;
  --brand-instagram: #e4405f;
  --brand-facebook: #1877f2;
  --brand-youtube: #ff0000;
  --brand-tiktok: #000000;
}

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

body,
html {
  max-width: 100%;
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--color-fondo-oscuro);
  color: var(--texto-principal);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
}

/* MENU */
.menu-principal {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.contenedor-navegacion {
  max-width: 100%;
  margin: 0 auto;
  padding: 1.2rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-marca {
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--degradado-marca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.lista-enlaces {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.lista-enlaces a {
  color: var(--texto-secundario);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}
.lista-enlaces a:hover {
  color: var(--color-cian);
}

/* HERO */
.hero-bienvenida {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contenedor-video-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.video-fondo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-bloque-texto {
  z-index: 2;
  padding: 0 20px;
}
.hero-bloque-texto h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-family: "Outfit";
  line-height: 1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}
.boton-llamada-accion {
  padding: 1.1rem 2.8rem;
  border-radius: 50px;
  background: var(--degradado-marca);
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(34, 211, 238, 0.2);
}

/* SECCIONES */
.seccion-estandar {
  padding: 80px 0;
  position: relative;
  z-index: 1;
  background: var(--color-fondo-oscuro);
}
.titulo-seccion {
  font-family: "Outfit";
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.etiqueta-pequena {
  display: block;
  text-align: center;
  color: var(--color-cian);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

/* MARQUESINA MEJORADA CON DRAG */
.contenedor-marquesina {
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow: hidden;
  padding: 40px 0;
}
.marquesina-wrapper {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  border-radius: 20px;
}

.marquesina-track {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  animation: scroll-izq 20s linear infinite;
  transition: transform 0.3s ease;
  padding: 10px 0;
}
.marquesina-wrapper.reverse .marquesina-track {
  animation: scroll-der 20s linear infinite;
}
.marquesina-item {
  width: 320px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.marquesina-item:hover {
  transform: scale(1.05);
  border-color: var(--color-cian);
}
.marquesina-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.5s ease;
}
.marquesina-item:hover img {
  transform: scale(1.1);
}

@keyframes scroll-izq {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes scroll-der {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* PROMOCIONES */
.seccion-promociones {
  background: #0f172a;
  padding: 40px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
}

.contenedor-slider {
  width: 100%;
  max-width: 100%; /* Ancho máximo para mantener estética de smartphone */
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.caja-video-slider {
  width: 100%;
  max-width: 100%;
  /* El secreto para visibilidad total: */
  max-height: 85vh; /* No permite que el video sea más alto que la pantalla del móvil */
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.caja-video-slider video {
  width: 100%;
  height: 100%;
  /* Cambiamos a 'contain' para que el video NUNCA se recorte */
  object-fit: contain;
  background: #000; /* Fondo negro por si el video tiene proporciones distintas */
  display: block;
}

/* AJUSTE PARA MÓVILES */
@media (max-width: 480px) {
  .seccion-promociones {
    padding: 20px 0;
  }

  .contenedor-slider {
    /* Asegura que el contenedor no se "estire" más de lo que el ojo puede ver */
    width: 100%;
    max-width: 400px;
  }

  .caja-video-slider {
    /* Forzamos a que el video quepa entero en la pantalla del móvil */
    max-height: 80vh;
    border-radius: 15px;
  }
}

/* FOOTER */
.whatsapp-flotante {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--brand-whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  z-index: 2000;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  text-decoration: none;
}
.pie-pagina {
  text-align: center;
  padding: 80px 20px;
  background: #080d1a;
}
.barra-redes {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}
.icono-red {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: 0.3s;
  font-size: 1.2rem;
}
.icono-red.instagram {
  background-color: var(--brand-instagram);
}
.icono-red.whatsapp {
  background-color: var(--brand-whatsapp);
}
.icono-red.facebook {
  background-color: var(--brand-facebook);
}
.icono-red.youtube {
  background-color: var(--brand-youtube);
}
.icono-red:hover {
  transform: translateY(-5px) scale(1.1);
  filter: brightness(1.2);
}

@media (max-width: 768px) {
  .lista-enlaces {
    display: none;
  }
  .marquesina-item {
    width: 220px;
    height: 150px;
  }
}

/* --- SECCIÓN QUÉ HACEMOS --- */
.seccion-que-hacemos {
  padding: 100px 0;
  background: var(
    --color-fondo-oscuro
  ); /* Fondo sólido para tapar el video al scrollear */
  position: relative;
  z-index: 10; /* Asegura que esté por encima del video */
}

.contenedor-manifiesto {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.texto-principal-hacemos {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 50px;
  background: linear-gradient(to right, #fff, var(--texto-secundario));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grid-sub-bloque {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
}

.sub-texto {
  color: var(--texto-secundario);
  font-size: 1.1rem;
}

.sub-texto strong {
  color: var(--color-cian);
  display: block;
  margin-bottom: 10px;
  font-family: "Outfit";
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meta-destacada {
  border-left: 2px solid var(--color-lavanda);
  padding-left: 20px;
  font-style: italic;
}
