/* Clear Sans - @font-face declarations
   Fuentes ubicadas en ../fonts/Clear-Sans-Thin/
   Se incluyen varios pesos y estilos disponibles en esa carpeta. */

@font-face {
  font-family: 'Clear Sans';
  src: url('../fonts/Clear-Sans-Thin/ClearSans-Regular.woff') format('woff'),
       url('../fonts/Clear-Sans-Thin/ClearSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clear Sans';
  src: url('../fonts/Clear-Sans-Thin/ClearSans-Light.woff') format('woff'),
       url('../fonts/Clear-Sans-Thin/ClearSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clear Sans';
  src: url('../fonts/Clear-Sans-Thin/ClearSans-Thin.woff') format('woff'),
       url('../fonts/Clear-Sans-Thin/ClearSans-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clear Sans';
  src: url('../fonts/Clear-Sans-Thin/ClearSans-Medium.woff') format('woff'),
       url('../fonts/Clear-Sans-Thin/ClearSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clear Sans';
  src: url('../fonts/Clear-Sans-Thin/ClearSans-Bold.woff') format('woff'),
       url('../fonts/Clear-Sans-Thin/ClearSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Italic / Bold Italic */
@font-face {
  font-family: 'Clear Sans';
  src: url('../fonts/Clear-Sans-Thin/ClearSans-Italic.woff') format('woff'),
       url('../fonts/Clear-Sans-Thin/ClearSans-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Clear Sans';
  src: url('../fonts/Clear-Sans-Thin/ClearSans-BoldItalic.woff') format('woff'),
       url('../fonts/Clear-Sans-Thin/ClearSans-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* JetBrains Mono - @font-face (TTF local) */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrains-Mono/JetBrainsMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrains-Mono/JetBrainsMono-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrains-Mono/JetBrainsMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Aplicar JetBrains Mono a todos los headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'JetBrains Mono', 'Clear Sans', Arial, monospace !important;
}

/* Aplicación por defecto */
body {
  font-family: 'Clear Sans', 'Helvetica Neue', Arial, sans-serif;
  background: #3d292a;
}

/* Parallax styles: sección a pantalla completa y capas */
.parallax-section{
  position: relative;
  width: 100%;
  height: 100vh; /* ocupa toda la pantalla */
  overflow: hidden;
  display: block;
}

.parallax-layer{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  will-change: transform;
  transform: translate3d(0,0,0);
}

/* Asigna las imágenes de la carpeta /img */
.parallax-section .layer-back{
  background-image: url('../img/Portada-Fondo.png');
  z-index: 1;
}
.parallax-section .layer-mid{
  background-image: url('../img/Portada-Pueblo.png');
  z-index: 2;
}
.parallax-section .layer-front{
  background-image: url('../img/Portada-Samuel.png');
  z-index: 3;
  background-position: center bottom;
}

/* Contenido centrado sobre las capas */
.parallax-content{
  position: relative;
  z-index: 6;
  height: 100%;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.parallax-content .row{
  margin: 0;
}

.parallax-content .col-12{
  padding: 0;
}

/* Degradado inferior de la sección parallax */
.parallax-gradient{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(to top, #3d292a 0%, transparent 100%);
  z-index: 5; /* encima de las capas pero debajo del logo y contenido */
  pointer-events: none;
}

/* Fallback para dispositivos táctiles: usar background-attachment scroll (mejor soporte móvil) */
@media (max-width: 991px), (pointer: coarse) {
  .parallax-layer{ background-attachment: scroll; transform: none; }
}

/* Logo en parallax, ahora relativo dentro de la columna */
.parallax-logo{
  position: relative;
  top: 0;
  right: 0;
  z-index: 6;
  width: 100%;
  height: auto;
  pointer-events: none;
  background: transparent;
  -webkit-user-select: none;
  user-select: none;
}

/* Logos de redes sociales */
.parallax-social{
  position: relative;
  z-index: 6;
  margin-bottom: 2rem;
}

.social-link{
  display: inline-block;
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.social-link:hover{
  transform: scale(1.1);
}

.social-icon{
  width: 50px;
  height: 50px;
  display: block;
}

/* Ocultar o reducir en pantallas muy pequeñas para no tapar contenido */
@media (max-width: 576px) {
  .parallax-logo{
    max-width: 280px;
  }

  .social-icon{
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .parallax-logo{
    max-width: 220px;
  }

  .social-icon{
    width: 35px;
    height: 35px;
  }
}

/* Sección SOBRE EL JUEGO */
.about-game-section{
  background: #3d292a;
  color: #ffffff;
  padding: 80px 20px;
  display: flex;
  align-items: center;
}

.about-game-section.reto {
  padding: 40px 20px;
  min-height: auto;
}

.about-game-title{
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: #ffffff;
}

.about-game-text{
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #f0f0f0;
  margin: 0;
}

@media (max-width: 768px) {
  .about-game-section{
    padding: 20px 20px;
  }

  .about-game-title{
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .about-game-text{
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .about-game-section{
    padding: 20px 15px;
  }

  .about-game-title{
    font-size: 1.75rem;
    letter-spacing: 1px;
  }

  .about-game-text{
    font-size: 1rem;
  }
}

/* Sección de Video Promocional */
.video-promo-section{
  background: #3d292a;
  padding: 60px 20px;
  width: 100%;
}

.video-promo-container{
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  background: #000;
}

.video-promo{
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  outline: none;
}

.video-promo:focus{
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Botón de play personalizado */
.video-play-button{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-play-button:hover{
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.video-play-button:active{
  transform: translate(-50%, -50%) scale(0.95);
}

.play-icon{
  width: 32px;
  height: 32px;
  color: #3d292a;
  margin-left: 4px; /* Centrar visualmente el triángulo */
}

/* Ocultar el botón cuando el video está reproduciendo */
.video-promo-container.playing .video-play-button{
  display: none;
}

@media (max-width: 768px) {
  .video-promo-section{
    padding: 40px 15px;
  }

  .video-play-button{
    width: 70px;
    height: 70px;
  }

  .play-icon{
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 576px) {
  .video-play-button{
    width: 60px;
    height: 60px;
  }

  .play-icon{
    width: 24px;
    height: 24px;
  }
}

/* Sección Mockup + Video Lateral */
.mockup-video-section{
  position: relative;
  background: #3d292a;
  width: 100%;
  overflow: visible; /* Cambiar a visible para que salga del borde */
  padding: 60px 0;
}

.mockup-container{
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 40px 0;
  margin-left: -25%; /* Mover hacia la izquierda para que salga */
}

.mockup-image{
  width: 150%; /* Aumentar tamaño para que sobresalga */
  height: auto;
  max-width: 150%;
  display: block;
  object-fit: contain;
}

/* Video flotante a la derecha */
.floating-video-right{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  max-height: 600px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  z-index: 10;
}

@media (max-width: 991px) {
  .mockup-video-section{
    padding: 40px 0;
  }

  .mockup-image{
    max-width: 90%;
    margin: 0 auto;
  }

  .mockup-container{
    justify-content: center;
    padding: 20px;
  }

  .floating-video-right{
    max-height: 400px;
    margin: 20px auto;
  }
}

@media (max-width: 576px) {
  .mockup-image{
    max-width: 100%;
  }

  .mockup-video-section {
    padding: 10px 0;
  }

  .mockup-container {
    padding: 10px;
    margin: 0;
  }

  .floating-video-right{
    max-width: 100%;
    display: none; /* Ocultar en móviles para mejor visualización */
  }
}

/* Sección Video + Texto (mocion1.webm) */
.story-video-section{
  position: relative;
  background: #9fa7b7;
  width: 100%;
  overflow: visible;
  padding: 60px 0;
}

/* Video flotante a la izquierda */
.floating-video-left{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  max-height: 600px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  z-index: 10;
}

.story-text-container{
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-section-title{
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: #000000;
}

.story-section-text{
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #1a1a1a;
  margin: 0;
}

@media (max-width: 991px) {
  .story-video-section{
    padding: 0;
  }

  .floating-video-left{
    max-height: 400px;
    transform: none;
    margin: 20px auto;
  }

  .story-text-container{
    padding: 40px 0;
    text-align: center;
  }

  .story-section-title{
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .story-section-text{
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .story-text-container{
    padding: 0;
  }

  .story-section-title{
    font-size: 1.75rem;
    letter-spacing: 1px;
  }

  .story-section-text{
    font-size: 1rem;
  }

  .floating-video-left{
    max-width: 100%;
    display: none;
  }
}

/* Sección LA HISTORIA */
.history-section{
  position: relative;
  background: #857174;
  padding: 60px 0;
  width: 100%;
  overflow: hidden;
}

/* Degradado superior: del color del body (#3d292a) a transparente */
.history-gradient-top{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(to bottom, #3d292a 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Degradado inferior: de #9fa7b7 a transparente */
.history-gradient-bottom{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(to top, #9fa7b7 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.history-section .container{
  position: relative;
  z-index: 2;
}

.history-title{
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: #ffffff;
}

.history-text{
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #f0f0f0;
  margin: 0;
}

.history-image-container{
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Alineado a la derecha */
  padding: 20px 0;
}

.history-image{
  width: auto;
  height: auto;
  max-width: 80%; /* Limitar el ancho máximo */
  max-height: 400px; /* Limitar la altura máxima */
  display: block;
  object-fit: contain;
}

@media (max-width: 991px) {
  .history-section{
    padding: 60px 20px;
  }

  .history-title{
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .history-text{
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .history-image-container{
    padding: 20px;
    justify-content: center; /* Centrado en móviles */
  }

  .history-image{
    max-width: 70%;
    max-height: 300px;
  }
}

@media (max-width: 576px) {
  .history-section{
    padding: 50px 15px;
  }

  .history-title{
    font-size: 1.75rem;
    letter-spacing: 1px;
  }

  .history-text{
    font-size: 1rem;
  }

  .history-image{
    max-width: 80%;
    max-height: 250px;
  }
}

/* Sección Personajes + Gafas */
.characters-glasses-section{
  position: relative;
  background: #9fa7b7;
  padding: 0 20px; /* Sin padding superior ni inferior */
  width: 100%;
  overflow: visible; /* Cambiar de hidden a visible para que no se corte */
}

/* Degradado inferior: de #f2e8cb a transparente */
.characters-gradient-bottom{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(to top, #f2e8cb 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.characters-glasses-section .container{
  position: relative;
  z-index: 2;
}

/* Contenedor de personajes */
.characters-container{
  display: flex;
  gap: 20px;
  align-items: flex-end; /* Alineación por la base para permitir diferentes alturas */
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
  position: relative;
}

.character-image-wrapper{
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Personaje 1: 40% más arriba */
.character-image-wrapper:nth-child(1){
  transform: translateY(-40%);
  z-index: 2;
}

/* Personaje 2: desplazado hacia la izquierda */
.character-image-wrapper:nth-child(2){
  transform: translateX(-30%);
  z-index: 1;
}

.character-image{
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Contenedor del video de gafas */
.glasses-video-container{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 0;
  width: 100%;
}

.glasses-video{
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Contenedor del texto debajo del video */
.glasses-text-container{
  text-align: right;
  padding: 20px 0;
  width: 100%;
}

.glasses-text{
  font-family: 'JetBrains Mono', 'Clear Sans', Arial, monospace;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0;
}

.mociones-highlight{
  font-size: 4.5rem;
  font-weight: 700;
  display: block;
}

@media (max-width: 991px) {
  .characters-glasses-section{
    padding: 60px 20px 60px 20px; /* Ajustar padding en tablets */
  }

  .characters-container{
    margin-bottom: 20px;
  }

  .character-image-wrapper{
    max-width: 250px;
  }

  /* Reducir transformaciones en tablets */
  .character-image-wrapper:nth-child(1){
    transform: translateY(-25%);
  }

  .character-image-wrapper:nth-child(2){
    transform: translateX(-20%);
  }

  .glasses-video{
    max-width: 400px;
  }

  .glasses-text{
    font-size: 2.5rem;
  }

  .mociones-highlight{
    font-size: 3.5rem;
  }
}

@media (max-width: 576px) {
  .characters-glasses-section{
    padding: 50px 15px; /* Padding normal en móviles */
  }

  .characters-container{
    gap: 15px;
    padding: 10px;
    align-items: center; /* Centrado en móviles */
  }

  .character-image-wrapper{
    min-width: 150px;
    max-width: 200px;
  }

  /* Eliminar transformaciones en móviles para mejor visualización */
  .character-image-wrapper:nth-child(1){
    transform: none;
  }

  .character-image-wrapper:nth-child(2){
    transform: none;
  }

  .glasses-video{
    max-width: 100%;
  }

  .glasses-text-container{
    text-align: center; /* Centrado en móviles */
  }

  .glasses-text{
    font-size: 2rem;
  }

  .mociones-highlight{
    font-size: 3rem;
  }
}

/* Layout responsive: Video de gafas a la izquierda y texto a la derecha (tablet/móvil) */
@media (max-width: 991px) {
  /* Forzar fila aunque el contenedor tenga utilidades Bootstrap (.flex-column, .align-items-end) */
  .characters-glasses-section .row > .col-12.col-lg-6:last-child{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 16px;
  }
  /* Evitar width:100% heredado en los hijos y definir proporciones */
  .characters-glasses-section .row > .col-12.col-lg-6:last-child .glasses-video-container,
  .characters-glasses-section .row > .col-12.col-lg-6:last-child .glasses-text-container{
    width: auto !important;
  }
  .characters-glasses-section .row > .col-12.col-lg-6:last-child .glasses-video-container{
    flex: 0 0 60%;
  }
  .characters-glasses-section .row > .col-12.col-lg-6:last-child .glasses-video{
    max-width: 100%;
    height: auto;
  }
  .characters-glasses-section .row > .col-12.col-lg-6:last-child .glasses-text-container{
    flex: 1 1 40%;
    text-align: left !important;
    padding-left: 10px;
  }
  .characters-glasses-section .row > .col-12.col-lg-6:last-child .glasses-text{
    text-align: left;
  }
}

@media (max-width: 576px) {
  .characters-glasses-section .row > .col-12.col-lg-6:last-child{
    gap: 12px;
  }
  .characters-glasses-section .row > .col-12.col-lg-6:last-child .glasses-video-container{
    flex: 0 0 55%;
  }
  .characters-glasses-section .row > .col-12.col-lg-6:last-child .glasses-text-container{
    flex: 1 1 45%;
    text-align: left !important;
    padding-left: 8px;
  }
}

/* Sección Iglesia + Silueta */
.church-silhouette-section{
  position: relative;
  background: #f2e8cb;
  width: 100%;
  overflow: visible;
  padding: 40px 0;
}

/* Degradado inferior: de #3d292a a transparente */
.church-gradient-bottom{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15%;
  background: linear-gradient(to top, #3d292a 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.church-silhouette-section .container-fluid{
  position: relative;
  z-index: 2;
}

.church-silhouette-section .row{
  display: flex;
  align-items: stretch;
}

.church-silhouette-section .col-lg-8,
.church-silhouette-section .col-lg-4{
  display: flex;
  flex-direction: column;
}

.church-mockup-container{
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}

.church-mockup-image{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left center;
  transform: translateX(-15%);
}

/* 1. El padre se convierte en el marco de referencia */
.columna-silueta {
  position: relative;
  /* Opcional: Dale una altura mínima para que se vea algo si no hay más contenido en la fila */
  min-height: 400px;
}

/* 2. El contenedor de la imagen se expande para llenar al padre */
.silhouette-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* Puedes mantener esto si quieres centrar la imagen dentro del contenedor */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 40px 20px;
}

/* 3. La imagen se adapta a su contenedor, que ahora tiene el tamaño correcto */
.silhouette-image {
  max-width: 100%; /* Limita el ancho */
  max-height: 100%; /* Limita el alto */
  height: 100%;     /* Intenta ocupar el 100% del alto disponible */
  width: auto;       /* El ancho se ajusta para no deformar la imagen */
  transform: translateY(20%);
  /* object-fit: contain es mejor para siluetas para que no se corten */
  object-fit: contain;
}

@media (max-width: 991px) {
  .church-silhouette-section{
    padding: 0 0 20px;
  }

  .silhouette-container{
    padding: 20px;
    justify-content: center;
    flex: none;
  }

  .silhouette-image{
    transform: translateY(25%);
  }
}

@media (max-width: 576px) {
  .church-mockup-container {
    justify-content: center;
    flex: none;
    padding: 0;
  }

  .church-silhouette-section{
    padding: 30px 0;
  }

  .silhouette-container {
    padding: 0;
  }

  .church-mockup-image{
    max-width: 100%;
    width: 100%;
    transform: none;
  }

  .silhouette-image{
    transform: translateY(10%);
  }
}

/* Sección Mociones Full Width */
.mociones-full-section{
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  display: block;
  overflow: hidden;
}

.mociones-full-image{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Sección Lanzamiento */
.launch-section{
  position: relative;
  background: #3d292a;
  color: #ffffff;
  padding: 80px 20px;
  width: 100%;
}

.launch-title{
  font-weight: 700;
  font-size: 4rem;
  letter-spacing: 3px;
  margin-bottom: 3rem;
  text-transform: uppercase;
  color: #ffffff;
}

.launch-video-container{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.launch-video{
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  pointer-events: none;
  background: transparent;
}

.launch-logo-container{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.launch-logo{
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}

.launch-date{
  font-family: 'JetBrains Mono', 'Clear Sans', Arial, monospace;
  font-weight: 400;
  font-size: 1.75rem;
  color: #f0f0f0;
  margin-bottom: 3rem;
}

.launch-badges{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.badge-link{
  display: inline-block;
  transition: transform 0.3s ease;
}

.badge-link:hover{
  transform: scale(1.05);
}

.store-badge{
  height: 60px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .launch-section{
    padding: 60px 20px;
  }

  .launch-title{
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
  }

  .launch-video{
    max-width: 300px;
  }

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

  .launch-date{
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .store-badge{
    height: 50px;
  }
}

@media (max-width: 576px) {
  .launch-section{
    padding: 50px 15px;
  }

  .launch-title{
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
  }

  .launch-video{
    max-width: 250px;
  }

  .launch-logo{
    max-width: 250px;
  }

  .launch-date{
    font-size: 1.25rem;
  }

  .launch-badges{
    gap: 20px;
  }

  .store-badge{
    height: 45px;
  }
}

/* Sección Partners con recorte triangular */
.partners-section{
  background: url("../img/logos-bg.jpg") no-repeat center center;
  background-size: cover;
  position: relative;
  padding: 120px 20px 80px 20px;
  width: 100%;
  overflow: hidden;
}

.triangle-top{
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 50vw solid transparent;
  border-right: 50vw solid transparent;
  border-top: 100px solid #3d292a;
  z-index: 1;
}

.partners-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.partner-logo-wrapper{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.partner-logo-wrapper:hover{
  transform: translateY(-5px);
}

.partner-logo{
  width: 100%;
  height: auto;
  max-width: 200px;
  max-height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* Logo del productor (más grande que los demás) */
.producer-logo{
  width: 100%;
  height: auto;
  max-width: 350px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.partner-logo-wrapper:hover .producer-logo{
  opacity: 1;
}

@media (max-width: 991px) {
  .partners-section{
    padding: 100px 20px 60px 20px;
  }

  .triangle-top{
    border-top: 80px solid #3d292a;
  }

  .partners-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .partner-logo{
    max-width: 180px;
    max-height: 70px;
  }

  .producer-logo{
    max-width: 310px;
  }
}

@media (max-width: 576px) {
  .partners-section{
    padding: 80px 15px 50px 15px;
  }

  .triangle-top{
    border-top: 60px solid #3d292a;
  }

  .partners-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .partner-logo-wrapper{
    padding: 15px;
  }

  .partner-logo{
    max-width: 150px;
    max-height: 60px;
  }

  .producer-logo{
    max-width: 270px;
  }
}

/* Newsletter Form */
.newsletter-section {
  margin-top: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.newsletter-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.newsletter-subtitle {
  font-family: 'Clear Sans', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.newsletter-form {
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Clear Sans', sans-serif;
  font-size: 1rem;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  color: white;
}

.form-control.error {
  border-color: #ff4444;
  background-color: rgba(255, 68, 68, 0.1);
}

.error-message {
  display: none;
  font-family: 'Clear Sans', sans-serif;
  font-size: 0.875rem;
  color: #ff4444;
  margin-top: 0.5rem;
  position: absolute;
  left: 0;
  bottom: -1.5rem;
}

.form-control.error + .error-message {
  display: block;
}

.btn-subscribe {
  width: 100%;
  padding: 1.125rem 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000000;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-subscribe:hover {
  background: linear-gradient(135deg, #f0f0f0 0%, #d0d0d0 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-subscribe:active {
  transform: translateY(0);
}

.btn-subscribe:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: none;
}

.btn-subscribe.loading .btn-text {
  display: none;
}

.btn-subscribe.loading .btn-loading {
  display: inline;
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Clear Sans', sans-serif;
  font-size: 0.95rem;
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background-color: rgba(76, 175, 80, 0.2);
  border: 2px solid rgba(76, 175, 80, 0.5);
  color: #4CAF50;
}

.form-message.error {
  display: block;
  background-color: rgba(255, 68, 68, 0.2);
  border: 2px solid rgba(255, 68, 68, 0.5);
  color: #ff4444;
}

/* Responsive para formulario */
@media (min-width: 768px) {
  .form-row {
    flex-direction: row;
    gap: 1rem;
  }

  .form-group {
    flex: 1;
  }

  .newsletter-title {
    font-size: 1.75rem;
  }
}

/* Footer */
.site-footer{
  position: relative;
  background: #ffffff;
  color: #000;
  padding: 20px 20px 40px 20px;
  width: 100%;
  text-align: center;
}

.footer-social-title{
  font-weight: 400;
  font-size: 1.5rem;
  color: #000;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.producer-text{
  font-weight: 400;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-social-links{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.footer-social-link{
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-social-link:hover{
  transform: scale(1.1);
}

.footer-social-icon{
  width: 50px;
  height: 50px;
  display: block;
}

.footer-divider{
  width: 2px;
  height: 50px;
  background: #000;
  opacity: 0.5;
}

@media (max-width: 576px) {
  .site-footer{
    padding: 50px 15px 30px 15px;
  }

  .footer-social-title, .producer-text{
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .footer-social-icon{
    width: 40px;
    height: 40px;
  }

  .footer-divider{
    height: 40px;
  }

  .footer-social-links{
    gap: 20px;
  }
}

/* Ajuste: en tablet/móvil, colocar el texto a la IZQUIERDA del vídeo */
@media (max-width: 991px) {
  .characters-glasses-section .row > .col-12.col-lg-6:last-child{
    flex-direction: row !important;
  }
  .characters-glasses-section .row > .col-12.col-lg-6:last-child .glasses-text-container{
    order: 0;
    flex: 0 1 40%;
    text-align: left !important;
  }
  .characters-glasses-section .row > .col-12.col-lg-6:last-child .glasses-video-container{
    order: 1;
    flex: 1 1 60%;
  }
}
@media (max-width: 576px) {
  .characters-glasses-section .row > .col-12.col-lg-6:last-child .glasses-text-container{
    order: 0;
    flex: 0 1 45%;
  }
  .characters-glasses-section .row > .col-12.col-lg-6:last-child .glasses-video-container{
    order: 1;
    flex: 1 1 55%;
  }
}

/* evitar que el texto salte debajo del vídeo */
@media (max-width: 991px) {
  .characters-glasses-section .row > .col-12.col-lg-6:last-child{
    flex-wrap: nowrap !important;
  }
  .characters-glasses-section .row > .col-12.col-lg-6:last-child .glasses-video-container{
    /* alinear el vídeo al inicio del contenedor */
    justify-content: flex-start !important;
  }
}
@media (max-width: 576px) {
  .characters-glasses-section .row > .col-12.col-lg-6:last-child .glasses-video-container{
    justify-content: flex-start !important;
  }
}
