/* COLORES */
:root {
  --purple: #6B3FA0;
  --purple-dark: #513375;
  --dark: #0d0d0d;
  --white: #ffffff;
  --yellow: #D4E600;
  --red: #e62121;
  --exclusive: #e62121;
}

/* RESET
   Elimina márgenes y paddings por defecto del navegador
  para que todo se vea igual en cualquier navegador. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ===========================
   CUERPO GENERAL
   Configuración base de la página:
   fuente, color de fondo, y disposición en columna.
=========================== */
body {
  background: var(--dark);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===========================
   HERO — SECCIÓN PRINCIPAL
   Contiene 3 columnas: logo izquierda, texto centro, logos derecha.
   Para cambiar el fondo de color vino, modifica el radial-gradient.
=========================== */
.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0rem 1rem 0rem;
  gap: 0;
  background: radial-gradient(ellipse at 20% 50%, #3a0a1a 0%, #0d0d0d 65%);
  min-height: 70vh; /* Altura mínima del hero */
  position: relative;
}

/* ── COLUMNA IZQUIERDA: Logo principal Umbra ── */
.hero-left {
  flex: 0 0 260px; /* Ancho fijo de la columna izquierda */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 1rem;
  margin-top: -1%;
}

/* Tamaño del logo principal (Logo_Tagline.png) */
.logo-main {
  width: 500px;
  object-fit: contain;
}

/* ── COLUMNA CENTRAL: Texto descriptivo y botones ── */
.hero-center {
  flex: 1; /* Ocupa todo el espacio disponible entre las columnas */
  display: flex;
  flex-direction: column;
  gap: 0.85rem; /* Espacio entre cada bloque de texto */
  padding: 0 2rem; /* Espacio interno izquierda y derecha */
}

/* Título principal — "El mejor terror de todas partes." */
.hero-center h2 {
  font-size: 1.6rem;
  font-weight: 556; /* Entre SemiBold y Bold */
  line-height: 1.3;
}

/* Subtítulo — "Seleccionado por expertos, a mano." */
.hero-center .sub {
  font-size: 1.3rem;
  font-weight: 400; /* Regular */
  line-height: 1.6;
  opacity: 0.85;
  margin-top: 0.8rem; /*Da más espacio etre el texto anterior*/ /* Espacio extra arriba para separarlo del título */
}

/* Párrafo descriptivo — menciona UMBRA VOD, Mórbido TV, etc. */
.hero-center .body {
  font-size: 1.3rem;
  font-weight: 400; /* Regular */
  line-height: 1.7;
  opacity: 0.82;
}

/* Las palabras en negrita dentro del párrafo descriptivo */
.hero-center .body strong {
  font-weight: 700; /* Bold */
}

/* Última línea — "Una nueva era en el terror." */
.nueva-era {
  font-size: 1.3rem;
  font-weight: 700; /* Bold */
}

/* ── COLUMNA DERECHA: Línea amarilla + logos de canales ── */
.hero-right {
  flex: 0 0 200px; /* Ancho fijo de la columna derecha */
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.2rem;
}

/* Línea vertical amarilla divisora */
.yellow-line {
  width: 1px;
  background: var(--yellow);
  border-radius: 2px;
  align-self: stretch;
  min-height: 280px;
  margin-top: 3.2rem; /*Posicion de la linea amarilla verticalmente*/
  margin-left: -13rem;  /* recorre hacia la izquierda */
}

/*Bloque para columna de Logos*/
.brand-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-around;
  /*gap: 0.8rem; Espacio vertical entre cada logo */
  flex: 1; 
  margin-left: 5rem;  /* recorre hacia la izquierda */
}

/* Cada contenedor individual de logo */
.brand-logo-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  overflow: hidden;
}

/* Fila doble para Audiolibros y Podcasts*/
.brand-logo-row {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}


/* TAMAÑOS INDIVIDUALES POR LOGO */
.logo-umbravod {
  width: 120px;
  height: auto;  /*60px*/
  object-fit: contain;
  object-position: left center;
  margin-top: 3.2rem; /*Posicion de la linea amarilla verticalmente*/
}

.logo-morbido {
  width: 120px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin-top: 1.6rem; /*Da más espacio netre el texto anterior*/
  
}

.logo-fourfangs {
  width: 80px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin-top: 1.2rem; /*Da más espacio netre el texto anterior*/
}

.logo-audiolibros {
  width: 122px;
  height: auto;      
  object-fit: cover;   
  object-position: center center;  /* ← ajusta donde recorta */
  margin-top: 1.2rem; /*Da más espacio netre el texto anterior*/
 margin-right: 1.2rem; /*Da más espacio netre el texto anterior*/
}

.logo-podcast {
  width: 122px;
  height: auto;        /* ← 35px */
  object-fit: cover;   
  object-position: center center;
  margin-top: 1.2rem; /*Da más espacio netre el texto anterior*/
  margin-right: 3rem;  /* recorre hacia la izquierda */
}

/* ===========================
   BANDA MORADA — SECCIÓN PROMO
   Contiene 3 elementos: texto izquierda, botón centro, texto derecha.
   Para cambiar el ancho de los lados modifica el padding lateral (15rem).
=========================== */
.promo-band {
  background: var(--purple);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 15rem; /*Size Band*/
  gap: 1.5rem;
  position: relative;
}

/*BUBBLE*/
/* ── GLOBO AMARILLO FLOTANTE ──
   Usa el PNG GLOBO_CCXP26.png.
   top: controla qué tan arriba flota.
   left: controla posición horizontal (50% = centro).
   width: tamaño del globo.
=========================== */
.bubble {
  position: absolute;
  top: -120px;
  left: 60%;
  transform: translateX(-50%);
  width: 180px;
  height: auto;
  z-index: 10;
  animation: flotar 2s ease-in-out infinite;
  mix-blend-mode: screen; /* elimina el negro*/
}

/* Animación de flotación del globo */
@keyframes flotar {
  0%   { transform: translateX(-50%) translateY(0px); }
  50%  { transform: translateX(-50%) translateY(-10px); }
  100% { transform: translateX(-50%) translateY(0px); }
}


/*Elemnto 1*/
/* ── ELEMENTO IZQUIERDO: CCXP Exclusive ── */
/* Promo left — Bold para títulos */
.promo-left {
  margin-right: 9rem; /*Para que no se escriba en dos lineas*/
  text-align: center;
}

/* Promo left — Bold para títulos */
.promo-left p {
  font-size: 1.5rem;
  text-align: center;
  font-weight: 400;
  line-height: 1.7;
  margin-top: 0.5rem; /*Da más espacio etre el texto anterior*/
}

.promo-left strong {
  font-weight: 700;
}

/*Elemnto 3*/
.promo-center {
  margin-left: 3rem;
  margin-right: 2rem;
  margin-top: 0.2rem; /*Da más espacio netre el texto anterior*/
}

/* Color rojo para la palabra "Exclusive" */
.exclusive {
  color: var(--exclusive);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
}

/* Color amarillo para "código CCXP26" */
.codigo {
  color: var(--yellow);
  font-weight: 700;
}

/* ── ELEMENTO CENTRAL: Botón "Cruza el Umbral" ── */
.promo-center {
  margin-left: 3rem;
  margin-right: 2rem;
  margin-top: 0.2rem;
}

/* Estilo del botón — texto rojo, borde morado, fondo morado oscuro */
.btn-umbral {
  display: inline-block;
  background: var(--purple-dark);
  border: 4px solid #9b59d0;
  color: var(--red);
  text-decoration: none;
  padding: 0.7rem 1.8rem;
  border-radius: 30px; /* Bordes redondeados tipo píldora */
  font-weight: 900;    /* Black — el más grueso */
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  white-space: nowrap; /* Evita que el texto se parta en dos líneas */
  transition: background 0.2s;
}
.btn-umbral:hover { background: rgba(255,255,255,0.08); }

/*Elemnto 3*/
/* ── ELEMENTO DERECHO: "Empieza gratis" ── */
.promo-right {
  margin-right: 2rem;
}

/* Promo right — ExtraBold para títulos, Regular para texto */
.promo-right p {
  font-size: 1.2rem;
  font-weight: 200;
  line-height: 1.3;
  max-width: 350px; /*Da mas espacio para que este escrito seguido*/
  margin-top: 0.5rem; /*Da más espacio netre el texto anterior*/
  color: var(--white);
}

.promo-right strong {
  font-weight: 800;  /* ExtraBold para "Empieza gratis. Sin tarjeta..." */
}

.promo-right small {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.85;
}

/* ===========================
   CARRUSEL DE PELÍCULAS
   Las imágenes se cargan automáticamente desde JWP (main.js).
   scrollCarousel controla la velocidad — 40s = lento, 20s = rápido.
=========================== */
.carousel {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0 1rem;
  background: linear-gradient(to top, #0d0d0d 0%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: scrollCarousel 40s linear infinite;
}

@keyframes scrollCarousel {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Carousel - imagen */
.carousel-item {
  flex: 0 0 auto;
  width: 220px; /* Ancho de cada imagen */
  height: 220px; /* Alto de cada imagen*/
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ===========================
   FOOTER
=========================== */
footer {
  background: var(--dark);
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

/* Texto de copyright */
.footer-copy {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.5;
}

/* Links "Términos y Condiciones" y "Aviso de Privacidad" */
.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  font-weight: 400;
  text-decoration: underline;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* Contenedor de íconos de redes sociales */
.footer-social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: 0.4rem;
  background: rgba(80,0,0,0.3); /* Fondo rojizo semitransparente */
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
}

/* Contenedor de íconos de redes sociales */
.footer-social a {
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}
.footer-social a:hover { transform: translateY(-2px); }

/* Íconos SVG de redes — se muestran en blanco */
.footer-social img {
  width: 28px;  /* Tamaño de los íconos */
  height: 28px;
  filter: brightness(0) invert(1); /* Convierte el ícono a blanco */
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer-social a:hover img { opacity: 1; }

/* ===========================
   RESPONSIVE — TABLET (max 1024px)
   Ajustes para pantallas medianas como iPads.
=========================== */
@media (max-width: 1024px) {
  .hero { padding: 2rem; }
  .hero-left { flex: 0 0 220px; }
  .hero-right { flex: 0 0 170px; }
  .logo-main { width: 200px; }
  .promo-band { padding: 1.5rem 2rem; }
}

/* ===========================
   RESPONSIVE — MÓVIL (max 768px)
   Ajustes para celulares. Las 3 columnas del hero
   se apilan verticalmente y la banda morada también.
=========================== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column; /* Las columnas se apilan verticalmente */
    padding: 2rem 1.5rem 3rem;
    min-height: auto;
    gap: 1.5rem;
    align-items: center;
  }

  .hero-left { flex: none; width: 100%; justify-content: center; padding-right: 0; }
  .logo-main { width: 180px; }

  .hero-center {
    width: 100%;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .hero-right { flex: none; width: 100%; justify-content: center; }
  .yellow-line { display: none; }
  .brand-logos { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1rem; }

  .promo-band {
    flex-direction: column; /* Los 3 elementos se apilan verticalmente */
    padding: 4rem 1.5rem 1.5rem;
    text-align: center;
    gap: 1rem;
  }

  .bubble { top: -60px; width: 110px; height: 110px; font-size: 0.75rem; }
  .promo-right p { max-width: 100%; }
  .carousel-item { width: 160px; height: 160px; }
}