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

@font-face {
  font-family: 'Nevrada';
  src: url('../fonts/nevrada_estrenos.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Velista';
  src: url('../fonts/velista.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Global CSS Reset / Normalize
   ========================================================================== */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin and padding */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: 'Montserrat', sans-serif;
  background-image: url('../assets/imgs/bg-1.jpg');
  background-repeat: repeat;
  overflow-x: hidden;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Componente: Botón Canal 14
   ========================================================================== */
.container-fluid.center-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 1rem 2rem 4vh 2rem;
  flex-shrink: 0;
}

.btn-causas {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 320px; /* Reducido drásticamente para caber bajo control en pantalla fija */
  max-width: 45%;
  aspect-ratio: 2 / 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Contenedor del contenido interno (Logo) sobre el fondo de SVG */
.btn-content-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  pointer-events: none; /* Para que el click lo registre la ancla base */
}

/* Hover effect animado sobre TODO el botón */
.btn-causas:hover {
  transform: scale(1.03);
}

/* Configuración para el Logo de Canal Catorce cargado como imagen */
.btn-logo {
  width: 55%; 
  max-width: 360px;
  height: auto;
  object-fit: contain;
}

/* SVG del texto "DAR CLIC" que lo envuelve */
.btn-text-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Hover: Animación que corre el texto sobre su camino (Path) en navegadores compatibles */
.btn-text-content textPath {
  transition: all 0.3s ease;
}

/* Línea roja diagonal eliminada según solicitud */

/* ==========================================================================
   Sección Principal (Hero Banner)
   ========================================================================== */
.layout-wrapper {
  width: 100%;
  max-width: none; /* Expandimos sin límites laterales */
  margin: 0;
}

.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2vh 0 0 0; /* 0 Padding lateral para pegar el contenido a la pared derecha e izquierda */
  flex: 1; /* Absorbe dinámicamente todo el espacio superior disponible */
}

.hero-column {
  flex: 1;
  display: flex;
  align-items: center;
}

.cards-left {
  justify-content: flex-start; /* Fuerza anclaje izquierda */
  margin-left: -15px; /* Recorte visual fuera de la pantalla (-10px/-15px) */
}

.cards-right {
  justify-content: flex-end; /* Fuerza anclaje derecha */
  margin-right: -15px; /* Recorte visual fuera de la pantalla */
}

/* Columna central (Logo y Subtexto) */
.hero-center {
  flex: 1.2; 
  flex-direction: column;
  justify-content: center;
  text-align: center;
  z-index: 5;
}

.hero-logo-main {
  width: 100%;
  max-width: 650px;
  max-height: 55vh; /* Topamos altura respecto a la pantalla */
  height: auto;
  filter: drop-shadow(0 15px 20px rgba(0,0,0,0.15));
}
/* El hero subtitle fue removido del HTML por el usuario */

/* Manejo de las cartas flotantes laterales */
.hero-cards {
  width: auto;
  max-width: 100%;
  max-height: 65vh; /* Aseguramos que eviten desbordarse de la vista al 100% */
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto de salto flotante con origen en la misma orilla de la pantalla */
.cards-left .hero-cards {
  transform-origin: left center;
}
.cards-left .hero-cards:hover {
  transform: scale(1.05) rotate(-2deg);
}

.cards-right .hero-cards {
  transform-origin: right center;
}
.cards-right .hero-cards:hover {
  transform: scale(1.05) rotate(2deg);
}

/* Responsividad para móviles y tablets */
@media (max-width: 1100px) {
  .hero-section {
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 1rem;
  }
  
  .hero-center {
    order: -1; /* Forzamos a que el logo central se acomode arriba del todo en celulares */
    margin-bottom: 2rem;
  }

  /* Las cartas pueden ir en una cuadrícula o reducirse de tamaño */
  .hero-column:not(.hero-center) {
    width: 100%;
    margin-top: -3rem; /* Encimarlas sutilmente en pantallas pequeñas para ahorrar espacio */
    z-index: 1;
  }
}

/* ==========================================================================
   Baraja Inferior (Canal 14 y TV Migrante)
   ========================================================================== */
#cards-baraja-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  margin: 6rem 0;
  height: 280px;
}

.baraja-card {
  position: absolute;
  width: 160px;
  max-width: 45vw;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.baraja-card.principal-catorce {
  box-shadow: 0 15px 45px rgba(40, 119, 20, 0.55), 0 0 25px rgba(255,255,255,0.3) !important;
}
.baraja-card.principal-migrante {
  box-shadow: 0 15px 45px rgba(218, 26, 26, 0.55), 0 0 25px rgba(255,255,255,0.3) !important;
}

@media (max-width: 768px) {
  #cards-baraja-bottom {
    height: 200px;
    margin: 4rem 0;
  }
  .baraja-card {
    width: 110px;
  }
}

/* Padding protectors for floating cards */
@media (min-width: 992px) {
  .text-wrapper-normal {
    padding-right: 180px;
  }
  .text-wrapper-reverse {
    padding-left: 180px;
  }
  /* Desktop cancelará el height forzado para dejar actuar a flexbox nativo */
  .portada-mobile {
    min-height: unset;
  }
}

/* Fix altura portadas celulares */
@media (max-width: 991.98px) {
  .portada-mobile {
    min-height: 65vh;
  }
}


.lead {
  font-size: 16px !important;
  
}