/* ============================================
   VARIABLES CSS - BECAS FUNDEQUIDAD
   ============================================
   Centraliza colores, espaciados y valores
   para facilitar la personalización
============================================ */

:root {
  /* COLORES PRINCIPALES - Cambia estos valores para modificar la paleta */
  --color-primary: #388e3c; /* Verde principal Cooindegabo */
  --color-primary-dark: #2e7d32; /* Verde oscuro para hover */
  --color-primary-light: #c8e6c9; /* Verde claro para fondos */
  --color-text-dark: #1a1a1a; /* Texto principal */
  --color-text-medium: #555555; /* Texto secundario */
  --color-bg-white: #ffffff; /* Fondo blanco */
  --color-bg-light: #f5f5f5; /* Fondo gris claro */

  /* ESPACIADOS - Ajusta para cambiar el spacing general */
  --spacing-xs: 0.5rem; /* 8px */
  --spacing-sm: 1rem; /* 16px */
  --spacing-md: 1.5rem; /* 24px */
  --spacing-lg: 2rem; /* 32px */
  --spacing-xl: 3rem; /* 48px */
  --spacing-xxl: 4rem; /* 64px */

  /* BORDES Y SOMBRAS */
  --border-radius: 12px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);

  /* TRANSICIONES */
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  color: var(--color-text-dark);
  line-height: 1.6;
}

/* ============================================
   SECCIÓN PRINCIPAL DE BECAS
   ============================================
   Contenedor principal con imagen de fondo
   CAMBIAR IMAGEN DE FONDO: Modifica background-image
   CAMBIAR COLOR OVERLAY: Ajusta rgba en ::before
============================================ */

.becas-section {
  position: relative;
  min-height: 100vh;
  padding: var(--spacing-xxl) var(--spacing-md);

  /* IMAGEN DE FONDO - Cambia esta URL por tu imagen */
  background-image: url("imagens-web/heros/fondo-fundequidad.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Efecto parallax - quitar para desactivar */
  background-repeat: no-repeat;
}

/* Overlay semi-transparente sobre la imagen de fondo */
/* CAMBIAR OPACIDAD: Ajusta el último valor rgba (0.95 = 95% opacidad) */
/* CAMBIAR COLOR: Cambia los primeros 3 valores RGB */
.becas-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.70) 0%, rgba(232, 245, 233, 0.9) 100%);
  z-index: 0;
}

/* Contenedor con ancho máximo */
.becas-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================
   LAYOUT GRID - DOS COLUMNAS
   ============================================
   Diseño de 2 columnas: contenido (60%) + imagen (40%)
   CAMBIAR PROPORCIONES: Modifica grid-template-columns
   Ejemplo: "1fr 1fr" para 50%-50%
============================================ */

.becas-content-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* 60% contenido, 40% imagen */
  gap: var(--spacing-xl);
  align-items: center;
  min-height: 80vh;
}

/* INVERTIR POSICIÓN DE COLUMNAS */
/* Descomenta las siguientes líneas para poner la imagen a la izquierda */
/*
.becas-image-container {
  order: -1;
}
*/

/* ============================================
   COLUMNA DE CONTENIDO (IZQUIERDA)
   ============================================
   Contiene todo el texto, logos, condiciones y botón
============================================ */

.becas-content {
  padding: var(--spacing-lg);
  animation: fadeInLeft 1s ease-out;
}

/* Título principal */
/* CAMBIAR TAMAÑO: Modifica font-size */
/* CAMBIAR COLOR: Modifica color */
.becas-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

/* ============================================
   CONTENEDOR DE LOGOS
   ============================================
   Muestra los logos en fila con separación
   AGREGAR MÁS LOGOS: Simplemente agrega más <img> en HTML
============================================ */

.becas-logos {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap; /* Permite que los logos bajen en pantallas pequeñas */
}

/* Estilo de cada logo */
/* CAMBIAR TAMAÑO DE LOGOS: Modifica height */
.becas-logos .logo-img {
  height: 60px; /* Cambia este valor para logos más grandes/pequeños */
  width: auto;
  object-fit: contain;
  filter: grayscale(0%);
  transition: var(--transition-normal);
}

.becas-logos .logo-img:hover {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1.1);
}

/* ============================================
   DESCRIPCIÓN DEL PROGRAMA
   ============================================
============================================ */

.becas-description {
  font-size: 1.1rem;
  color: var(--color-text-medium);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
  text-align: justify;
}

/* ============================================
   SECCIÓN DE CONDICIONES
   ============================================
   Lista con checks de las condiciones para aplicar
   AGREGAR MÁS CONDICIONES: Añade más <li> en HTML
============================================ */

.becas-condiciones {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--color-primary);
}

.condiciones-title {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.condiciones-list {
  list-style: none;
  padding: 0;
}

.condicion-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) 0;
  font-size: 1rem;
  color: var(--color-text-dark);
}

/* Ícono de check verde */
/* CAMBIAR COLOR: Modifica stroke en el selector */
.check-icon {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  flex-shrink: 0;
}

/* ============================================
   VALOR DE LA BECA
   ============================================
   Muestra el monto destacado de la beca
   CAMBIAR VALOR: Edita el contenido del h3 en HTML
============================================ */

.beca-valor {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #e8f5e9 100%);
  border-radius: var(--border-radius);
}

.valor-text {
  font-size: 1rem;
  color: var(--color-text-medium);
  margin-bottom: var(--spacing-xs);
}

.valor-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

/* ============================================
   BOTÓN DE ACCIÓN
   ============================================
   Botón principal para llamado a la acción
   CAMBIAR TEXTO: Edita el contenido en HTML
   CAMBIAR COLORES: Modifica background y color
============================================ */

.btn-beca {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--box-shadow);
}

.btn-beca:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #1b5e20 100%);
}

.btn-beca:active {
  transform: translateY(-1px);
}

.btn-icon {
  width: 24px;
  height: 24px;
  stroke: white;
}

/* ============================================
   COLUMNA DE IMAGEN (DERECHA)
   ============================================
   Contiene la imagen decorativa flotante
   CAMBIAR TAMAÑO IMAGEN: Modifica max-width
   CAMBIAR POSICIÓN: Usa order: -1 para moverla a la izquierda
============================================ */

.becas-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out;
}

.becas-image {
  max-width: 100%; /* Cambia este valor para imagen más grande/pequeña */
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-hover);
  /* Bordes de la imagen - Descomenta para agregar borde */
  /* border: 5px solid var(--color-primary); */
}

/* ============================================
   ANIMACIÓN FLOTANTE
   ============================================
   Efecto de flotación suave para la imagen
   CAMBIAR VELOCIDAD: Modifica la duración (3s)
   DESACTIVAR: Elimina la clase "floating" del HTML
============================================ */

.floating {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ============================================
   ANIMACIONES DE ENTRADA
   ============================================
   Efectos al cargar la página
============================================ */

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================
   Adaptación para diferentes tamaños de pantalla
============================================ */

/* TABLETS (máximo 992px) */
@media (max-width: 992px) {
  .becas-content-wrapper {
    grid-template-columns: 1fr; /* Una sola columna */
    gap: var(--spacing-lg);
  }

  /* La imagen aparece debajo del contenido en tablets */
  .becas-image-container {
    order: 2;
  }

  .becas-title {
    font-size: 2.5rem;
  }

  .valor-amount {
    font-size: 2rem;
  }

  .becas-image {
    max-width: 80%; /* Imagen más pequeña en tablets */
  }
}

/* MÓVILES (máximo 768px) */
@media (max-width: 768px) {
  .becas-section {
    padding: var(--spacing-lg) var(--spacing-sm);
    background-attachment: scroll; /* Desactiva parallax en móvil */
  }

  .becas-content {
    padding: var(--spacing-sm);
  }

  .becas-title {
    font-size: 2rem;
  }

  .becas-logos {
    justify-content: center;
  }

  .becas-logos .logo-img {
    height: 50px; /* Logos más pequeños en móvil */
  }

  .becas-description {
    font-size: 1rem;
    text-align: left;
  }

  .valor-amount {
    font-size: 1.8rem;
  }

  .btn-beca {
    width: 100%; /* Botón de ancho completo en móvil */
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .becas-image {
    max-width: 100%; /* Imagen ocupa todo el ancho en móvil */
  }

  /* Reduce gap entre condiciones en móvil */
  .condicion-item {
    font-size: 0.95rem;
  }
}

/* MÓVILES PEQUEÑOS (máximo 480px) */
@media (max-width: 480px) {
  .becas-title {
    font-size: 1.75rem;
  }

  .becas-logos .logo-img {
    height: 40px;
  }

  .valor-amount {
    font-size: 1.5rem;
  }

  .btn-beca {
    font-size: 1rem;
  }
}
#header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
} 

#header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
}
