/* =========================================
   RESET & GENERALES
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    background: #000;
    overflow-x: hidden;
}

/* =========================================
   HEADER SIN BLUR
========================================= */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.35);
    z-index: 50;

    opacity: 0;
    animation: headerDrop 0.9s ease forwards;
    animation-delay: 0.4s;
}

header img {
    width: 150px;
    height: auto;
}

/* =========================================
   CONTENEDOR PRINCIPAL
========================================= */

.home-columns {
    display: flex;
    min-height: 100vh;  /* ← FIX PRINCIPAL */
    position: relative;
    flex-wrap: nowrap;
}

/* =========================================
   COLUMNAS
========================================= */

.left-section,
.right-section {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
}

/* Fondos */
.left-section {
    background-image: url("../images/background/bg-left.jpg");
    background-size: cover;
    background-position: center;
    animation: slideLeft 1.4s ease forwards;
}

.right-section {
    background-image: url("../images/background/bg-right.jpg");
    background-size: cover;
    background-position: center;
    animation: slideRight 1.4s ease forwards;
    animation-delay: 0.15s;
}

/* Oscurecer imágenes */
.left-section::before,
.right-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

/* =========================================
   TÍTULO (IZQUIERDA)
========================================= */

.left-content {
    position: relative;
    z-index: 2;
    padding: 140px 40px 0;
    max-width: 500px;

    opacity: 0;
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.8s;
}

.left-content h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    max-width: 480px;
}

/* =========================================
   BLOQUES INFERIORES
========================================= */

.block-left,
.block-right {
    position: relative;
    z-index: 2;
    max-width: 430px;
    margin-top: auto;
    margin-bottom: 80px;
    padding: 0 40px;

    opacity: 0;
    animation: fadeUp 1s ease forwards;
    animation-delay: 1.1s;
}

.block-left h2,
.block-right h2 {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 700;
    margin-bottom: 12px;
}

.block-left p,
.block-right p {
    font-size: clamp(14px, 2.5vw, 16px);
    margin-bottom: 20px;
    line-height: 1.35;
}

/* =========================================
   BOTONES
========================================= */

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 0;            /* bordes rectos */
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;

    background: #ffffff;
    color: #000;
    box-shadow: none;            /* sin sombra */

    transition: all .25s ease;
}

.btn:hover {
    background: #EC1C23;         /* blanco → rojo */
    color: #fff;                 /* texto blanco */
    transform: none;             /* sin salto */
    box-shadow: none;            /* sin sombra */
}

/* =========================================
   FOOTER
========================================= */

footer {
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
    background: #EC1C23; /* ← elimina espacio y continuidad perfecta */
    color: #fff;

    opacity: 0;
    animation: fadeUp 1s ease forwards;
    animation-delay: 1.4s;
}

footer a {
    color: #fff;
    font-weight: 600;
}

/* =========================================
   ANIMACIONES
========================================= */

@keyframes fadeUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
    0% { transform: translateX(-60px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    0% { transform: translateX(60px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes headerDrop {
    0% {
        transform: translateY(-40px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
/* =========================================
   TABLET (max-width: 1024px)
========================================= */

@media (max-width: 1024px) {
    .home-columns {
        flex-direction: column;
    }

    .left-section,
    .right-section {
        min-height: 600px; /* Autoajuste universal */
    }

    .left-content,
    .block-left,
    .block-right {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================================
   MOBILE (max-width: 600px)
========================================= */

@media (max-width: 600px) {

    header img {
        width: 115px;
    }

    .left-section,
    .right-section {
        min-height: 520px;
    }

    .left-content {
        padding: 110px 25px 0;
        text-align: center;
    }

    .block-left,
    .block-right {
        padding: 0 25px;
        margin-bottom: 50px;
        text-align: center;
        max-width: 100%;
    }

    .left-content h1 {
        font-size: 28px;
    }

    .block-left h2,
    .block-right h2 {
        font-size: 22px;
    }

    .btn {
        padding: 10px 26px;
        font-size: 15px;
    }
}

/* =========================================
   EXTRA SMALL MOBILE (max-width: 420px)
========================================= */

@media (max-width: 420px) {
    .left-section,
    .right-section {
        min-height: 480px;
    }

    .left-content h1 {
        font-size: 26px;
    }

    .block-left h2,
    .block-right h2 {
        font-size: 20px;
    }

    .btn {
        font-size: 14px;
        padding: 10px 22px;
    }
}

/* Forzar que los títulos se vean en una sola línea en Desktop */
@media (min-width: 1025px) {

    .block-left h2,
    .block-right h2 {
        white-space: nowrap !important;
    }

    .block-left,
    .block-right {
        max-width: 550px !important; /* da más espacio para que entren en una línea */
    }
}
