/* =========================================
   ESTILOS SECCIÓN: EXCEL (DATA MASTER GREEN)
   ========================================= */

section.excel {
    padding: 100px 0;
    /* Fondo Verde Profundo Ejecutivo */
    background-color: #0a2e18;
    background-image: linear-gradient(145deg, #082012 0%, #104f2a 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

/* Decoración: Cuadrícula de Hoja de Cálculo Sutil */
section.excel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

/* Decoración: Resplandor Verde Ambiental */
section.excel::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(33, 115, 70, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.contenido-excel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* =========================================
   1. HEADER EXCEL
   ========================================= */
.header-excel {
    text-align: center;
    margin-bottom: 60px;
}

.titulo-excel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.titulo-excel h1 {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Logo de Excel Flotante */
.titulo-excel img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(33, 115, 70, 0.6));
    animation: pulseGreen 3s infinite;
}

.header-excel p {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ade80; /* Verde claro brillante */
    background: rgba(255,255,255,0.05);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    letter-spacing: 2px;
}

/* =========================================
   2. LAYOUT DE TARJETAS (Pirámide Invertida)
   ========================================= */
.contenedor-excel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- FILA SUPERIOR (3 Tarjetas: Funciones, Macros, Dashboard) --- */
.izq-excel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- FILA INFERIOR (2 Tarjetas: Power BI, Data Analysis) --- */
.der-excel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px; /* Un poco más estrecho para centrar visualmente */
    margin: 0 auto; /* Centrado */
    width: 100%;
}

/* =========================================
   3. ESTILO DE LAS TARJETAS
   ========================================= */
.img-text-excel {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    height: 100%;
    min-height: 250px; /* Altura uniforme */
}

/* Efecto Hover: Elevación y Borde Verde */
.img-text-excel:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(33, 115, 70, 0.4); /* Sombra verde */
}

/* Decoración superior (Barra de color) */
.img-text-excel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, #217346, #4ade80); /* Gradiente Excel */
}

.img-text-excel h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #104f2a; /* Verde oscuro para texto */
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Ajuste específico para PowerBI (Amarillo) */
.der-excel .img-text-excel:first-child::before {
    background: linear-gradient(90deg, #f2c811, #fce883);
}
.der-excel .img-text-excel:first-child h2 {
    color: #8c730a; /* Tono dorado oscuro */
}

.img-text-excel img {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.img-text-excel:hover img {
    transform: scale(1.15) rotate(5deg);
}

/* =========================================
   ANIMACIONES
   ========================================= */
@keyframes pulseGreen {
    0% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(33, 115, 70, 0.6)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 35px rgba(74, 222, 128, 0.8)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(33, 115, 70, 0.6)); }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Tablet */
@media (max-width: 992px) {
    .titulo-excel h1 {
        font-size: 3rem;
    }
    
    .izq-excel {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas arriba */
    }
    
    /* Hacemos que la última tarjeta de arriba ocupe todo el ancho para que no quede hueco */
    .izq-excel .img-text-excel:last-child {
        grid-column: span 2; 
        max-width: 50%;
        margin: 0 auto;
    }

    .der-excel {
        max-width: 100%;
    }
}

/* Móvil */
@media (max-width: 600px) {
    .titulo-excel {
        flex-direction: column;
    }
    
    .titulo-excel h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    /* Todo en una columna */
    .izq-excel, .der-excel {
        grid-template-columns: 1fr;
    }

    .izq-excel .img-text-excel:last-child {
        grid-column: auto;
        max-width: 100%;
    }
    
    .img-text-excel {
        min-height: 200px;
    }
}