/* ============================================
   CONVENIO CINE COLOMBIA - ESTILOS CSS
   ============================================
   
   INDICE:
   1. Variables y configuracion
   2. Estilos generales del body
   3. Hero con parallax
   4. Seccion de tarifas
   5. Tabla de precios
   6. Seccion como solicitar
   7. Responsive design
   8. Animaciones
   
   COLOR PRINCIPAL: #004aad (azul Cine Colombia)
   
   PARA CAMBIAR COLORES:
   - Modifica las variables en :root
   
============================================ */

/* ============================================
   1. VARIABLES Y CONFIGURACION
   ============================================ */
:root {
    /* ------------------------------------------
       COLORES PRINCIPALES CINE COLOMBIA
       Para cambiar el color azul, modifica aqui
    ------------------------------------------ */
    --cine-azul: #004aad;           /* Azul principal */
    --cine-azul-oscuro: #003580;    /* Azul oscuro para hover */
    --cine-azul-claro: #1a5fbd;     /* Azul claro para acentos */
    --cine-rojo: #e31837;           /* Rojo secundario (estilo cine) */
    --cine-dorado: #f5c518;         /* Dorado para destacar precios */
    
    /* Colores neutros */
    --color-blanco: #ffffff;
    --color-negro: #1a1a1a;
    --color-gris-claro: #f5f5f5;
    --color-gris: #666666;
    --color-gris-oscuro: #333333;
    
    /* ------------------------------------------
       ESPACIADOS
       Ajusta estos valores para mas/menos espacio
    ------------------------------------------ */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* ------------------------------------------
       BORDES Y SOMBRAS
    ------------------------------------------ */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --box-shadow: 0 10px 40px rgba(0, 74, 173, 0.15);
    --box-shadow-hover: 0 15px 50px rgba(0, 74, 173, 0.25);
    
    /* ------------------------------------------
       TRANSICIONES
       Ajusta la velocidad de las animaciones
    ------------------------------------------ */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   2. ESTILOS GENERALES DEL BODY
   ============================================
   - Imagen de fondo con overlay
   - Tipografia base
   
   PARA CAMBIAR LA IMAGEN DE FONDO:
   - Modifica url() en background-image
============================================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--color-gris-oscuro);
    line-height: 1.6;
    
    /* ------------------------------------------
       IMAGEN DE FONDO DEL BODY
       Cambia la URL por tu imagen
    ------------------------------------------ */
    background-image: url('imagens-web/heros/hero-convenios.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    
    /* Fondo de respaldo si no carga la imagen */
    background-color: #f0f4f8;
}

/* Overlay semi-transparente sobre el fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ------------------------------------------
       OPACIDAD DEL OVERLAY
       Aumenta el ultimo valor (0.85) para oscurecer mas
       Disminuyelo para ver mas la imagen de fondo
    ------------------------------------------ */
    background: rgba(255, 255, 255, 0.9);
    z-index: -1;
}

/* Contenedor general */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   3. HERO CON EFECTO PARALLAX
   ============================================
   - Gradiente azul con imagen de fondo
   - Efecto parallax en scroll
   - Contenido centrado
   
   PARA CAMBIAR LA ALTURA:
   - Modifica min-height
   
   PARA CAMBIAR LA IMAGEN:
   - Modifica background-image en .hero-cine
============================================ */
.hero-cine {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    
    /* ------------------------------------------
       IMAGEN DE FONDO DEL HERO
       Cambia la URL por tu imagen
    ------------------------------------------ */
    background-image: url('imagens-web/heros/hero-cine.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto parallax */
}

/* Overlay con gradiente azul */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ------------------------------------------
       GRADIENTE DEL HERO
       Modifica los colores aqui
    ------------------------------------------ */
    background: linear-gradient(
        135deg,
        rgba(0, 74, 173, 0.95) 0%,
        rgba(0, 53, 128, 0.9) 50%,
        rgba(26, 95, 189, 0.85) 100%
    );
    z-index: 1;
}

/* Contenido del hero */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: var(--spacing-xl);
    animation: fadeInUp 1s ease-out;
}

/* Titulo del hero */
.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-blanco);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Texto destacado en el titulo */
.hero-title .highlight {
    display: block;
    color: var(--cine-dorado);
    font-size: 2rem;
    margin-top: var(--spacing-sm);
}

/* Descripcion del hero */
.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   4. SECCION DE TARIFAS
   ============================================
   - Layout de dos columnas
   - Imagen a la izquierda por defecto
   
   PARA INVERTIR (imagen a la derecha):
   - Usa la clase .layout-imagen-derecha
============================================ */
.tarifas-section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

/* Grid de dos columnas */
.tarifas-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xl);
    align-items: center;
}

/* ------------------------------------------
   INVERTIR LAYOUT
   Para poner la imagen a la derecha,
   cambia la clase en el HTML a:
   class="tarifas-grid layout-imagen-derecha"
------------------------------------------ */
.tarifas-grid.layout-imagen-derecha {
    grid-template-columns: 1.2fr 1fr;
}

.tarifas-grid.layout-imagen-derecha .imagen-columna {
    order: 2;
}

.tarifas-grid.layout-imagen-derecha .contenido-columna {
    order: 1;
}

/* Columna de imagen */
.imagen-columna {
    position: relative;
}

.imagen-tarifas {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-normal);
}

.imagen-tarifas:hover {
    transform: scale(1.02);
}

/* Columna de contenido */
.contenido-columna {
    background: var(--color-blanco);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

/* Header de tarifas con icono */
.tarifas-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.icono-tarifas {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--cine-azul) 0%, var(--cine-azul-claro) 100%);
    border-radius: 50%;
    color: var(--color-blanco);
}

.tarifas-titulo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cine-azul);
    margin: 0;
}

.tarifas-subtitulo {
    font-size: 1.05rem;
    color: var(--color-gris);
    margin-bottom: var(--spacing-lg);
    padding-left: 76px; /* Alinea con el titulo */
}

/* ============================================
   5. TABLA DE PRECIOS
   ============================================
   - Filas alternadas
   - Precios destacados en dorado
   
   PARA CAMBIAR EL COLOR DE LOS PRECIOS:
   - Modifica color en .producto-precio
============================================ */
.tabla-container {
    overflow-x: auto; /* Scroll horizontal en movil */
}

.tabla-precios {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tabla-precios thead {
    background: linear-gradient(135deg, var(--cine-azul) 0%, var(--cine-azul-oscuro) 100%);
    color: var(--color-blanco);
}

.tabla-precios th {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.tabla-precios th:first-child {
    border-radius: var(--border-radius-sm) 0 0 0;
}

.tabla-precios th:last-child {
    border-radius: 0 var(--border-radius-sm) 0 0;
    text-align: right;
}

.tabla-precios tbody tr {
    transition: background var(--transition-fast);
}

/* Filas alternadas */
.tabla-precios tbody tr:nth-child(even) {
    background: var(--color-gris-claro);
}

.tabla-precios tbody tr:hover {
    background: rgba(0, 74, 173, 0.08);
}

.tabla-precios td {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid #e0e0e0;
}

/* Nombre del producto */
.producto-nombre {
    font-weight: 600;
    color: var(--cine-azul);
}

/* Descripcion del producto */
.producto-descripcion {
    color: var(--color-gris);
    font-size: 0.9rem;
}

/* ------------------------------------------
   PRECIO DESTACADO
   Cambia el color aqui si lo deseas
------------------------------------------ */
.producto-precio {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cine-azul-oscuro);
    text-align: right;
    white-space: nowrap;
}

/* ============================================
   6. SECCION COMO SOLICITAR BOLETAS
   ============================================
   - Tarjeta centrada
   - Boton de accion debajo
   
   PARA CAMBIAR EL ANCHO DE LA TARJETA:
   - Modifica max-width en .solicitar-card
============================================ */
.solicitar-section {
    padding: var(--spacing-xl) 0 var(--spacing-xxl);
}

/* ------------------------------------------
   TARJETA CENTRADA
   Modifica max-width para hacerla mas grande/pequena
------------------------------------------ */
.solicitar-card {
    background: var(--color-blanco);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    max-width: 650px;           /* Ancho maximo de la tarjeta */
    margin: 0 auto var(--spacing-lg);
    border-top: 4px solid var(--cine-azul);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.solicitar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

/* Icono de la tarjeta */
.solicitar-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cine-azul) 0%, var(--cine-azul-claro) 100%);
    border-radius: 50%;
    color: var(--color-blanco);
    margin-bottom: var(--spacing-md);
}

.solicitar-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cine-azul);
    margin-bottom: var(--spacing-md);
}

.solicitar-descripcion {
    font-size: 1.05rem;
    color: var(--color-gris);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* ------------------------------------------
   BOTON CENTRADO
   Modifica los colores en background
------------------------------------------ */
.boton-container {
    text-align: center;
}

.btn-agencia {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--cine-azul) 0%, var(--cine-azul-oscuro) 100%);
    color: var(--color-blanco);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
    transition: all var(--transition-normal);
}

.btn-agencia:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.4);
    background: linear-gradient(135deg, var(--cine-azul-claro) 0%, var(--cine-azul) 100%);
}

.btn-agencia svg {
    transition: transform var(--transition-normal);
}

.btn-agencia:hover svg {
    transform: scale(1.2);
}

/* ============================================
   7. RESPONSIVE DESIGN
   ============================================
   Ajustes para diferentes tamaños de pantalla
============================================ */

/* Tablets */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-title .highlight {
        font-size: 1.6rem;
    }
    
    .tarifas-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .tarifas-grid.layout-imagen-derecha .imagen-columna,
    .tarifas-grid.layout-imagen-derecha .contenido-columna {
        order: unset;
    }
    
    .tarifas-subtitulo {
        padding-left: 0;
    }
}

/* Moviles */
@media (max-width: 768px) {
    .hero-cine {
        min-height: 400px;
        /* Desactiva parallax en movil para mejor rendimiento */
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-title .highlight {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .tarifas-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tarifas-titulo {
        font-size: 1.3rem;
    }
    
    .tarifas-subtitulo {
        text-align: center;
    }
    
    .tabla-precios th,
    .tabla-precios td {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }
    
    .solicitar-card {
        padding: var(--spacing-lg);
    }
    
    .solicitar-titulo {
        font-size: 1.3rem;
    }
    
    .btn-agencia {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }
}

/* Moviles pequenos */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-title .highlight {
        font-size: 1.1rem;
    }
    
    .contenido-columna {
        padding: var(--spacing-md);
    }
    
    .icono-tarifas {
        width: 50px;
        height: 50px;
    }
    
    .tabla-precios th:last-child,
    .producto-precio {
        text-align: center;
    }
}

/* ============================================
   8. ANIMACIONES
   ============================================ */

/* Animacion de entrada desde abajo */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animacion de pulso para elementos destacados */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Clase para aplicar animacion al scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
#header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
} 
