﻿html,
body {
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff;
}

.home-page {
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
}


/* =========================================
   HEADER / MENÚ STICKY
   ========================================= */

.home-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #001f47;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.home-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 85px;
    padding-top: 0;
    padding-bottom: 0;
}

.home-logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.home-header-logo {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
}

.home-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 42px;
    flex-shrink: 0;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 215px;
    min-height: 50px;
    padding: 10px 28px;
    border: 0;
    border-radius: 18px;
    background-color: #E30613;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

    .home-button:hover {
        color: #ffffff;
        background-color: #c9000c;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    }

    .home-button:focus-visible {
        outline: 3px solid #ffffff;
        outline-offset: 3px;
    }


/* =========================================
   SOLO BOTÓN REGÍSTRATE DEL HEADER
   ========================================= */

.home-button-register {
    background-color: #ffffff;
    color: #00264D;
    border: 2px solid #ffffff;
}

    .home-button-register:hover {
        background-color: #00264D;
        color: #ffffff;
        border-color: #ffffff;
    }


/* =========================================
   IMÁGENES / SECCIONES
   ========================================= */

.home-image-section {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

    .home-image-section picture {
        display: block;
        width: 100%;
    }

.home-image {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================
   SOLO PRIMERA IMAGEN DESPUÉS DEL HEADER
   ========================================= */

.home-image-section-first {
    width: 100%;
    height: auto;
    overflow: visible;
}

    .home-image-section-first picture {
        display: block;
        width: 100%;
        height: auto;
    }

    .home-image-section-first .home-image {
        display: block;
        width: 100%;
        height: auto;
        object-fit: initial;
        object-position: initial;
    }

.home-winners {
    padding-top: 0;
    padding-bottom: 0;
}


/* =========================================
   SEPARADOR SOLO MOBILE
   ========================================= */

.home-mobile-separator {
    display: none;
}

.home-mobile-separator-image {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================
   ÁREAS CLICABLES SOBRE IMÁGENES
   DESKTOP
   ========================================= */

.home-image-action {
    position: relative;
}

.home-image-button {
    position: absolute;
    z-index: 5;
    display: block;
    cursor: pointer;
    border-radius: 18px;
}

/* Primera imagen: "Participa ahora" */
.home-image-button-hero {
    left: 6.1%;
    top: 77%;
    width: 26%;
    height: 10%;
}

/* Calcula_y_Gana02: "Regístrate" */
.home-image-button-register {
    left: 6.1%;
    top: 77%;
    width: 26%;
    height: 10%;
}

/* Calcula_y_Gana05: "Participa" */
.home-image-button-participate {
    left: 5.3%;
    top: 67%;
    width: 24.5%;
    height: 9%;
}

.home-image-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 991px) {

    .home-header-content {
        min-height: 86px;
        gap: 18px;
    }

    .home-header-logo {
        max-width: 170px;
    }

    .home-actions {
        gap: 16px;
    }

    .home-button {
        min-width: 170px;
        min-height: 46px;
        padding: 9px 20px;
        font-size: 16px;
    }

    .home-image-section-first {
        height: auto;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .home-mobile-separator {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        line-height: 0;
    }

    .home-mobile-separator-image {
        display: block;
        width: 100%;
        height: auto;
    }


    .home-header-content {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        min-height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .home-header-logo {
        max-width: 155px;
    }

    .home-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .home-button {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 8px 12px;
        border-radius: 14px;
        font-size: 14px;
        line-height: 1.2;
        white-space: normal;
    }

    /*
       En mobile la primera imagen recupera
       su proporción natural.
    */
    .home-image-section-first {
        height: auto;
        overflow: visible;
    }

        .home-image-section-first picture {
            height: auto;
        }

        .home-image-section-first .home-image {
            display: block;
            width: 100%;
            height: auto;
            object-fit: initial;
        }

    /*
       ZONAS CLICABLES MOBILE
       Cada imagen usa coordenadas propias,
       porque los botones están en posiciones distintas.
    */

    /* Calcula_y_GanaM.webp - "Participa ahora" */
    .home-image-button-hero {
        left: 27.5%;
        top: 35.7%;
        width: 40%;
        height: 6.2%;
        border-radius: 14px;
    }

    /* Calcula_y_Gana02M.webp - "Regístrate" */
    .home-image-button-register {
        left: 26.5%;
        top: 44%;
        width: 47%;
        height: 8%;
        border-radius: 14px;
    }

    /* Calcula_y_Gana05M.webp - "Participa" */
    .home-image-button-participate {
        left: 24.5%;
        top: 33.2%;
        width: 44%;
        height: 6.2%;
        border-radius: 14px;
    }

    .home-winners {
        padding-top: 0;
        padding-bottom: 0;
    }
}


/* =========================================
   MOBILE PEQUEÑO
   ========================================= */

@media (max-width: 420px) {

    .home-header-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .home-header-logo {
        max-width: 145px;
    }

    .home-actions {
        gap: 8px;
    }

    .home-button {
        min-height: 42px;
        padding: 8px 10px;
        font-size: 13px;
    }
}


/* Popup Términos y Condiciones: exclusivo del home promocional */
