/* =========================================
   ESTILOS HOME: RETORNO AL ORIGEN (LOGO GRANDE IZQUIERDA)
   ========================================= */

header.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    padding: 60px 5%;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    background: radial-gradient(circle at center, #fff 40%, #fcfcfc 100%);
}

/* Decoración: Resplandor Rojo Sutil */
header.home::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: pulseLight 4s infinite alternate;
}

/* --- COLUMNA IZQUIERDA (Texto y Logo Gigante) --- */
.izq-home {
    flex: 1.2; /* Le damos más espacio al texto y logo */
    padding-right: 40px;
    z-index: 2;
    animation: slideInImpact 0.8s ease-out;
}

/* TÍTULO EN LLAMAS */
.izq-home .titulo {
    font-family: var(--font-main);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--primary-red); 
    margin-bottom: 25px;
    letter-spacing: -2px;
    text-transform: uppercase;
    text-shadow: 4px 4px 0px var(--primary-blue);
    position: relative;
}

/* Descripción */
.izq-home .descripcion {
    font-size: 1.3rem;
    color: var(--secondary-blue);
    margin-bottom: 40px;
    padding-left: 25px;
    border-left: 8px solid var(--primary-blue);
    max-width: 95%;
    line-height: 1.5;
    font-weight: 600;
}

/* --- ÁREA DE ACCIÓN (Botón + Logo Gigante) --- */
.conoce-mas {
    display: flex;
    align-items: center;
    gap: 40px; /* Separación amplia para que el logo respire */
    position: relative;
}

/* EL EDIFICIO ROJO (LOGO) - AHORA GIGANTE */
.conoce-mas img.logo-hero {
    height: 180px; /* ¡TAMAÑO AUMENTADO! */
    width: auto;
    filter: drop-shadow(0 15px 25px rgba(211, 47, 47, 0.25)); /* Sombra roja */
    
    /* Animación de Latido */
    animation: heartbeat 2.5s infinite;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.conoce-mas img.logo-hero:hover {
    transform: scale(1.1) rotate(3deg);
    animation-play-state: paused;
    filter: drop-shadow(0 20px 40px rgba(211, 47, 47, 0.4));
}

/* BOTÓN */
.btn-sec {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 20px 50px;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(2, 78, 255, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap; /* Evita que el texto se parta */
}

.btn-sec:hover {
    background-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 26, 255, 0.547);
}


/* --- COLUMNA DERECHA (EL BÚHO / IMAGEN PRINCIPAL) --- */
.der-home {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 1;
}

.img-home {
    position: relative;
    padding: 20px;
    /* Animación flotante para el búho */
    animation: floatBird 5s ease-in-out infinite;
}

/* Marco Decorativo Rojo */
.img-home::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
    border: 5px solid var(--primary-red);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.7;
    transition: all 0.5s;
}

.img-home:hover::before {
    width: 102%;
    height: 102%;
    border-color: var(--primary-blue);
    opacity: 1;
}

.img-home img {
    border-radius: 20px;
    box-shadow: 20px 20px 0px rgba(31, 42, 68, 0.1); 
    max-width: 100%;
    height: auto;
}


/* --- ANIMACIONES --- */

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.05); }
    30% { transform: scale(1); }
    45% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes floatBird {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes slideInImpact {
    from { opacity: 0; transform: translateX(-80px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseLight {
    from { opacity: 0.4; transform: scale(0.9); }
    to { opacity: 0.8; transform: scale(1.1); }
}

/* --- RESPONSIVE --- */

@media (max-width: 992px) {
    header.home {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
    }

    .izq-home {
        padding-right: 0;
        margin-top: 40px;
    }

    .izq-home .titulo {
        font-size: 3.5rem;
    }

    .izq-home .descripcion {
        border-left: none;
        border-top: 5px solid var(--primary-blue);
        padding-top: 20px;
        padding-left: 0;
        margin: 0 auto 30px auto;
    }

    .conoce-mas {
        flex-direction: column-reverse; /* En móvil, botón abajo, logo arriba */
        justify-content: center;
        gap: 30px;
    }
    
    .conoce-mas img.logo-hero {
        height: 140px; /* Un poco más chico en móvil para que quepa */
    }

    .btn-sec {
        width: 100%;
        justify-content: center;
        max-width: 350px;
    }

    .img-home {
        max-width: 85%;
        margin: 0 auto 20px auto;
    }
}