/* ============================================================
   RESET BÁSICO
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #111;
    color: #fff;
}


/* ============================================================
   PORTADA / HERO
   ============================================================ */

.hero {
    position: relative;

    /* ALTURA COMPLETA DE PANTALLA */
    min-height: 100vh;

    /* CENTRAR CONTENIDO */
    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* VIDEO DE FONDO */

.hero-video {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 1;
}


/* CAPA NEGRA TRANSPARENTE */

.hero-overlay {
    position: absolute;

    inset: 0;

    /*
       0.45 = 45% de negro
       Puedes subirlo a 0.60 si quieres más oscuro
    */
    background: rgba(0, 0, 0, 0.48);

    z-index: 2;
}


/* TEXTO ENCIMA DEL VIDEO */

.hero-contenido {
    position: relative;

    z-index: 3;

    width: min(1100px, 90%);

    text-align: center;

    padding: 40px;
}


.hero-contenido h1 {
    font-size: clamp(42px, 5vw, 86px);

    line-height: 1;

    margin-bottom: 20px;
}


.hero-contenido h2 {
    font-size: clamp(22px, 2vw, 36px);

    font-weight: 400;

    margin-bottom: 25px;
}


.hero-contenido p {
    max-width: 850px;

    margin: 0 auto 35px auto;

    font-size: clamp(17px, 1.3vw, 22px);

    line-height: 1.6;
}


/* BOTÓN */

.boton {
    display: inline-block;

    padding: 15px 30px;

    border: 2px solid white;

    color: white;

    text-decoration: none;

    font-size: 18px;

    transition: 0.25s;
}


.boton:hover {
    background: white;
    color: black;
}


/* FLECHA DE SCROLL */

.scroll-indicador {
    position: absolute;

    bottom: 25px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 4;

    color: white;

    font-size: 40px;

    text-decoration: none;

    animation: moverFlecha 1.6s infinite;
}


@keyframes moverFlecha {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }

}


/* ============================================================
   BLOQUES / CASILLEROS
   ============================================================ */

.bloques {

    width: 100%;

    display: grid;

    /*
       En monitor grande:
       3 columnas
    */
    grid-template-columns: repeat(3, 1fr);

}


/* TARJETA */

.tarjeta {
    position: relative;

    /*
       Relación visual panorámica
    */
    min-height: 360px;

    overflow: hidden;
}


/* ============================================================
   TARJETAS CON FOTO
   ============================================================ */

.tarjeta-imagen img {

    position: absolute;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s;
}


.tarjeta-imagen:hover img {
    transform: scale(1.05);
}


/* OSCURECIDO SOBRE FOTO */

.tarjeta-capa {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 35px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.75),
            rgba(0,0,0,0.05)
        );

}


.tarjeta-capa h3 {

    font-size: 30px;

    margin-bottom: 10px;

}


.tarjeta-capa p {

    font-size: 17px;

    line-height: 1.5;

}


/* ============================================================
   TARJETAS DE TEXTO
   ============================================================ */

.tarjeta-texto {

    background: #181818;

    display: flex;

    align-items: center;

    padding: 50px;

}


.tarjeta-texto h3 {

    font-size: 34px;

    margin-bottom: 20px;

}


.tarjeta-texto p {

    font-size: 18px;

    line-height: 1.7;

    margin-bottom: 8px;

}


/* ============================================================
   SECCIÓN ADICIONAL
   ============================================================ */

.seccion-texto {

    padding: 100px 30px;

    background: #f2f2f2;

    color: #222;

}


.contenedor {

    max-width: 1100px;

    margin: auto;

}


.seccion-texto h2 {

    font-size: 42px;

    margin-bottom: 30px;

}


.seccion-texto p {

    font-size: 20px;

    line-height: 1.7;

}


/* ============================================================
   FOOTER
   ============================================================ */

footer {

    padding: 35px;

    text-align: center;

    background: #080808;

    color: #aaa;

}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .bloques {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ============================================================
   TELÉFONO
   ============================================================ */

@media (max-width: 700px) {

    .hero {
        min-height: 100svh;
    }


    .hero-contenido {
        padding: 25px 15px;
    }


    .hero-contenido h1 {
        font-size: 42px;
    }


    .hero-contenido h2 {
        font-size: 24px;
    }


    .hero-contenido p {
        font-size: 17px;
    }


    /* UNA SOLA COLUMNA */

    .bloques {
        grid-template-columns: 1fr;
    }


    .tarjeta {
        min-height: 320px;
    }


    .tarjeta-texto {
        min-height: auto;

        padding: 45px 30px;
    }


    .tarjeta-capa {
        padding: 25px;
    }

}


/* ============================================================
   PERSONAS QUE PREFIEREN MENOS ANIMACIONES
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .scroll-indicador {
        animation: none;
    }

}