/* =========================================
   ESTILOS SECCIÓN: COMPUTACIÓN (LAYOUT ESPACIOSO)
   ========================================= */

section.compu {
    padding: 100px 0;
    background-color: var(--primary-blue);
    background-image: linear-gradient(160deg, var(--primary-blue) 0%, #162035 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

/* Decoración de fondo */
section.compu::before {
    content: '< / >';
    position: absolute;
    top: 10%; left: 5%;
    font-family: monospace;
    font-size: 10rem;
    color: rgba(255,255,255,0.03);
    font-weight: 900;
    transform: rotate(-10deg);
}

.contenido-compu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* =========================================
   1. HEADER (LADO A LADO)
   ========================================= */
.header-compu {
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: space-between; /* Separación máxima */
    margin-bottom: 80px;
    gap: 40px;
}

/* --- Columna Izquierda (Info) --- */
.header-info {
    flex: 1; /* Ocupa el espacio disponible */
    text-align: left; /* Alineado a la izquierda para lectura natural */
    max-width: 600px;
}

.titulo-seccion {
    font-size: 4rem; /* Título MUY grande */
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.texto-destacado {
    font-size: 1.4rem;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.texto-sub {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 30px;
}

/* Botón a la izquierda */
.header-info .btn-stratrooms {
    background-color: var(--primary-red);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4);
    display: inline-block;
    transition: all 0.3s ease;
}

.header-info .btn-stratrooms:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(211, 47, 47, 0.6);
}

/* --- Columna Derecha (Imágenes) --- */
.header-images {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Pegado a la derecha */
    position: relative;
}

/* Laptop Grande a la Derecha */
.laptop-main {
    max-width: 450px; /* Tamaño generoso */
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
    animation: floatLaptop 5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Satélite PHP */
.php-float {
    position: absolute;
    top: -20px;
    right: 20px; /* Flotando sobre la laptop */
    width: 80px;
    animation: floatIcon 4s ease-in-out infinite;
    z-index: 3;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* =========================================
   2. GRID DE CURSOS
   ========================================= */
.contenedor-compu {
    display: grid;
    /* 4 Columnas en línea para escritorio (aprovechando el ancho) */
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px;
}

.img-text-compu {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border-bottom: 5px solid transparent;
    height: 100%; /* Altura igualada */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.img-text-compu:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-red);
}

.img-text-compu p {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.img-text-compu img {
    height: 75px; /* Iconos de tamaño controlado */
    width: auto;
    object-fit: contain;
}

/* =========================================
   ANIMACIONES
   ========================================= */
@keyframes floatLaptop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* =========================================
   RESPONSIVE
   ========================================= */
/* Tablet: Header Vertical, Grid 2x2 */
@media (max-width: 992px) {
    .header-compu {
        flex-direction: column-reverse; /* Imagen arriba, texto abajo en tablet? O normal */
        text-align: center;
        gap: 30px;
    }

    .header-info {
        text-align: center;
        max-width: 100%;
    }

    .header-images {
        justify-content: center;
    }

    .titulo-seccion { font-size: 3rem; }

    .contenedor-compu {
        grid-template-columns: repeat(2, 1fr); /* 2 arriba, 2 abajo */
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Móvil: Todo en columna */
@media (max-width: 600px) {
    .titulo-seccion { font-size: 2.5rem; }
    
    .laptop-main { max-width: 300px; }
    
    .contenedor-compu {
        grid-template-columns: 1fr;
    }
    
    .header-info .btn-stratrooms {
        width: 100%;
    }
}