/*
============================================
ESTILOS: AHORRO A LA VISTA COOINDEGABO
============================================
Archivo de estilos para la pagina de Ahorro a la Vista

INDICE:
1. Variables CSS (colores, espaciados, fuentes)
2. Estilos base y reset
3. Hero banner con parallax
4. Seccion de informacion y beneficios
5. Seccion de cards
6. Seccion CTA
7. Media queries (responsive)

COLORES PRINCIPALES:
- Verde Cooindegabo: #388e3c
- Verde claro: #4caf50
- Verde oscuro: #2e7d32
============================================
*/

/* ============================================
   1. VARIABLES CSS
   ============================================
   PARA CAMBIAR COLORES: modificar los valores aqui
   Todos los elementos usan estas variables
============================================ */
:root {
    /* Colores principales */
    --color-primary: #388e3c;          /* Verde principal Cooindegabo */
    --color-primary-light: #4caf50;    /* Verde claro para hovers */
    --color-primary-dark: #2e7d32;     /* Verde oscuro para acentos */
    
    /* Colores de texto */
    --color-text-dark: #1a1a2e;        /* Texto oscuro principal */
    --color-text-medium: #4a4a4a;      /* Texto gris medio */
    --color-text-light: #ffffff;       /* Texto blanco */
    
    /* Colores de fondo */
    --color-bg-white: #ffffff;
    --color-bg-light: #f5f5f5;
    --color-bg-green-light: #e8f5e9;   /* Fondo verde muy claro */
    
    /* Colores para enlaces destacados */
    --color-link-verde: #388e3c;
    --color-link-azul: #1976d2;
    
    /* Espaciados - MODIFICAR PARA AJUSTAR MARGENES */
    --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 redondeados */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Sombras */
    --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --box-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --box-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Fuentes - MODIFICAR PARA CAMBIAR TIPOGRAFIA */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================================
   2. ESTILOS BASE Y RESET
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   3. HERO BANNER CON PARALLAX
   ============================================
   PARA CAMBIAR:
   - Imagen de fondo: modificar background-image
   - Altura: modificar min-height
   - Color overlay: modificar background en .hero-overlay
============================================ */
.hero-ahorro {
    position: relative;
    min-height: 60vh;              /* ALTURA DEL BANNER - Cambiar este valor */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    /* Imagen de fondo - CAMBIAR URL AQUI */
    background-image: url('imagens-web/heros/hero-vista.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;   /* Efecto parallax */
}

/* Overlay verde semi-transparente */
/* PARA CAMBIAR COLOR: modificar el rgba() */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(56, 142, 60, 0.9) 0%,      /* Verde principal con 90% opacidad */
        rgba(46, 125, 50, 0.50) 100%    /* Verde oscuro con 85% opacidad */
    );
    z-index: 1;
}

/* Contenido del hero */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-xl);
    max-width: 900px;
}

/* Titulo principal */
/* PARA CAMBIAR TAMAÑO: modificar font-size */
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Descripcion del hero */
.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   4. SECCION DE INFORMACION Y BENEFICIOS
   ============================================
   Layout de dos columnas con flexbox
   
   PARA INVERTIR POSICIONES:
   - Agregar clase "imagen-izquierda" al section
   - O cambiar flex-direction a row-reverse
============================================ */
.info-ahorro-section {
    padding: var(--spacing-xxl) var(--spacing-lg);
    background-color: var(--color-bg-white);
}

/* Contenedor principal - Grid de dos columnas */
.info-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;    /* 50% contenido, 50% imagen */
    gap: var(--spacing-xl);
    align-items: center;
}

/* PARA IMAGEN A LA IZQUIERDA: agregar esta clase al section */
.info-ahorro-section.imagen-izquierda .info-container {
    direction: rtl;    /* Invierte el orden de las columnas */
}

.info-ahorro-section.imagen-izquierda .info-container > * {
    direction: ltr;    /* Restaura la direccion del texto */
}

/* Columna de contenido */
.info-content {
    padding-right: var(--spacing-lg);
}

/* Titulo de la seccion */
.info-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Icono del titulo */
.icon-money {
    font-size: 2.5rem;
}

/* Descripcion de la seccion */
.info-description {
    font-size: 1.1rem;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

/* Contenedor de beneficios */
.beneficios-lista {
    background: var(--color-bg-green-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--color-primary);
}

/* Titulo de beneficios */
.beneficios-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-md);
}

/* Lista de beneficios */
.lista-beneficios {
    list-style: none;
}

/* Cada item de beneficio */
.beneficio-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(56, 142, 60, 0.2);
}

.beneficio-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Icono de check */
.beneficio-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Contenido del beneficio */
.beneficio-content {
    font-size: 1rem;
    color: var(--color-text-medium);
    line-height: 1.6;
}

.beneficio-content strong {
    color: var(--color-primary-dark);
}

/* Columna de imagen */
.info-imagen {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Imagen principal */
/* PARA CAMBIAR TAMAÑO: modificar max-width y height */
.imagen-principal {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--box-shadow-lg);
    transition: transform var(--transition-normal);
}

.imagen-principal:hover {
    transform: scale(1.02);
}

/* ============================================
   5. SECCION DE CARDS
   ============================================
   Dos cards con logos y descripciones
   
   PARA AGREGAR MAS CARDS:
   - Cambiar grid-template-columns a repeat(3, 1fr) para 3 cards
   - O usar auto-fit para cards responsivas automaticas
============================================ */
.cards-beneficios-section {
    padding: var(--spacing-xxl) var(--spacing-lg);
    background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg-white) 100%);
}

/* Contenedor de cards */
.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);    /* 2 cards - CAMBIAR PARA MAS */
    gap: var(--spacing-xl);
}

/* Cada card */
.card-beneficio {
    background: var(--color-bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.card-beneficio:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--color-primary-light);
}

/* Titulo de la card */
.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-md);
}

/* Logo de la card */
/* PARA CAMBIAR TAMAÑO DEL LOGO: modificar width y height */
.card-logo {
    width: 120px;              /* ANCHO DEL LOGO */
    height: 120px;             /* ALTO DEL LOGO */
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Descripcion de la card */
.card-description {
    font-size: 1rem;
    color: var(--color-text-medium);
    line-height: 1.8;
}

/* ============================================
   ENLACES DESTACADOS
   ============================================
   Enlaces que redireccionan a otras paginas
   
   PARA CAMBIAR COLORES:
   - .link-verde: color verde
   - .link-azul: color azul
============================================ */
.link-destacado {
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: all var(--transition-fast);
}

/* Enlace verde */
.link-verde {
    color: var(--color-link-verde);
}

.link-verde:hover {
    color: var(--color-primary-dark);
}

/* Enlace azul */
.link-azul {
    color: var(--color-link-azul);
}

.link-azul:hover {
    color: #1565c0;
}

/* Subrayado animado en hover */
.link-destacado::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width var(--transition-fast);
}

.link-destacado:hover::after {
    width: 100%;
}

/* ============================================
   6. SECCION CTA (CALL TO ACTION)
   ============================================
   Boton centrado para abrir cuenta
   
   PARA CAMBIAR:
   - Color del boton: modificar background
   - Tamaño: modificar padding y font-size
============================================ */
.cta-ahorro-section {
    padding: var(--spacing-xxl) var(--spacing-lg);
    background: var(--color-bg-green-light);
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Boton de accion */
/* PARA CAMBIAR ESTILO: modificar estas propiedades */
.cta-button {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-light);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--box-shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(56, 142, 60, 0.4);
}

/* Efecto de brillo en hover */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* ============================================
   7. MEDIA QUERIES (RESPONSIVE)
   ============================================
   Ajustes para diferentes tamaños de pantalla
   
   BREAKPOINTS:
   - Tablet: 992px
   - Movil grande: 768px
   - Movil pequeno: 480px
============================================ */

/* TABLET - 992px y menor */
@media (max-width: 992px) {
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    /* Info section - Una columna */
    .info-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .info-content {
        padding-right: 0;
        order: 1;    /* Contenido primero */
    }
    
    .info-imagen {
        order: 2;    /* Imagen despues */
    }
    
    /* Cards - Una columna */
    .cards-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

/* MOVIL GRANDE - 768px y menor */
@media (max-width: 768px) {
    /* Espaciados reducidos */
    .info-ahorro-section,
    .cards-beneficios-section,
    .cta-ahorro-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    /* Hero */
    .hero-ahorro {
        min-height: 50vh;
        background-attachment: scroll;    /* Desactiva parallax en movil */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: var(--spacing-lg);
    }
    
    /* Info title */
    .info-title {
        font-size: 1.6rem;
        justify-content: center;
        text-align: center;
    }
    
    .info-description {
        text-align: center;
    }
    
    /* Beneficios */
    .beneficios-lista {
        padding: var(--spacing-md);
    }
    
    /* Cards */
    .card-beneficio {
        padding: var(--spacing-lg);
    }
    
    /* CTA */
    .cta-button {
        font-size: 1.1rem;
        padding: var(--spacing-md) var(--spacing-lg);
        width: 100%;
        max-width: 350px;
    }
}

/* MOVIL PEQUENO - 480px y menor */
@media (max-width: 480px) {
    /* Hero */
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Info title */
    .info-title {
        font-size: 1.4rem;
    }
    
    .icon-money {
        font-size: 2rem;
    }
    
    /* Beneficios */
    .beneficio-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Cards */
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-logo {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   ANIMACIONES
   ============================================
   Animaciones para elementos al cargar
============================================ */

/* Animacion de entrada desde abajo */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animacion a elementos */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.info-content,
.info-imagen {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.card-beneficio {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.card-beneficio:nth-child(2) {
    animation-delay: 0.6s;
}
#header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
} 

