@import url('encuesta.css');

/* ===== FUENTES ===== */

@font-face {
    font-family: 'Roboto Condensed Regular';
    src: url('../font/RobotoCondensed-Regular.ttf');
}

/* ===== RESET ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ===== DECORACIÓN LATERAL GLOBAL ===== */

body {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.contenedor-inicio{
    position: relative;
}

#franja-superior{
    width:100%;
    height:45px;
    background:#ffffff;
}

.columna-izquierda {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        #2f4f8f 0%,
        #3b6ea5 100%
    );
}

#inicio-idioma {
    position: relative;
    display: inline-block;
}

#inicio-idioma select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #354876 !important;
    color: white;
    border: none;

    padding: 10px 45px 10px 40px;
    font-size: 14px;
    font-weight: 500;

    border-radius: 0;
}

/* Ícono globo */
#inicio-idioma::before {
    content: "\f0ac";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    pointer-events: none;
}

/* Flecha derecha */
#inicio-idioma::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    position: absolute;
    right: 20px;
    top: 45%;
    transform: translateY(-50%);
    color: white;
    pointer-events: none;
}

/* ===== MENÚ SUPERIOR ===== */

#inicio-menu {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

#inicio-menu select {
    background: transparent;
    border: none;
    color: white;
    font-size: 15px;
    outline: none;
    cursor: pointer;
}

#inicio-menu option {
    color: black;
}

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

#inicio-contenedor {
    flex: 1;
    padding: 10px 5% 0 7%;
}

/* ===== FILA PRINCIPAL ===== */

.fila-principal {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
    flex-wrap: nowrap;
    width: 100%;
}

/* ===== MAPA ===== */

#inicio-mapa {
    flex: 0 0 700px;        /* ancho fijo, no crece ni encoge */
    min-height: 560px;
    background-image: url("../img/icons/mapa_presentacion.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    position: relative;
    margin-top: -110px;
    z-index: 5;
    filter: drop-shadow(0 12px 25px rgba(0,0,0,0.25));
}

/* ===== BLOQUE DERECHO ===== */

.bloque-derecho {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;   /* CAMBIO: center -> flex-end para ir a la derecha */
    padding-top: 10px;
    min-width: 0;
}

/* LOGO SIRTOD */

#inicio-sirtod {
    width: 650px;
    max-width: 100%;
    height: 270px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: -10px;
    margin-right: 15%;   /* CAMBIO: margen derecho para no pegar al borde */
}

/* TEXTO */

#inicio-texto {
    width: 650px;
    font-size: 22px;
    line-height: 30px;
    margin-top: -35px;
    margin-right: 15%;   /* CAMBIO: mismo margen que el logo */
    color: #0097CF;
    text-align: center;
    white-space: nowrap;       /* 🔥 fuerza una sola línea */
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.botones-horizontal {
    margin-top: 5px;
    margin-bottom: 0px;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    padding-right: 2%;    /* reduce espacio blanco derecho */
}

/* ===== BTN-BOX BASE ===== */

.btn-box {
    flex: 1;                   /* 🔥 todos crecen igual, proporcional */
    max-width: 180px;
    min-width: 120px;
    height: 140px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 14px 8px 10px 8px;
}

.btn-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

/* ===== COLORES DE BOTONES ===== */

.btn-verde {
    background: linear-gradient(135deg, #9bc93e 0%, #7ab520 100%);
}

/* boton 2 */
#inicio-boton2 {
    background: #2d5fa0;
}

/* boton 3 - azul medio */
#inicio-boton3 {
    background: linear-gradient(135deg, #2060a8 0%, #174d8a 100%);
}

/* boton 4 - azul medio claro */
#inicio-boton4 {
    background: linear-gradient(135deg, #2878c0 0%, #1c5ea0 100%);
}

/* boton 5 - azul más claro */
#inicio-boton5 {
    background: linear-gradient(135deg, #3b8fd4 0%, #2570b8 100%);
}

/* ===== ICONO DEL BOTÓN ===== */

.btn-icono {
    width: 55px;
    height: 55px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Cada botón hereda su imagen */
#inicio-boton1 .btn-icono { background-image: url("../img/icons/btn1.png"); }
#inicio-boton2 .btn-icono { background-image: url("../img/icons/btn2.png"); }
#inicio-boton3 .btn-icono { background-image: url("../img/icons/btn3.png"); }
#inicio-boton4 .btn-icono { background-image: url("../img/icons/btn4.png"); }
#inicio-boton5 .btn-icono { background-image: url("../img/icons/btn5.png"); }

/* ===== ETIQUETA DEL BOTÓN ===== */

.btn-label {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-family: 'Roboto Condensed Regular', Arial, sans-serif;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
    .btn-box {
        width: 120px;
        flex: 0 0 120px;
        height: 100px;
    }
    #inicio-sirtod {
        width: 400px;
        height: 160px;
    }
    #inicio-texto {
        width: 400px;
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .fila-principal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .btn-box {
        width: 100px;
        flex: 0 0 100px;
        height: 90px;
    }

    .btn-label {
        font-size: 8px;
    }

    #inicio-sirtod {
        width: 350px;
        height: 140px;
    }

    #inicio-texto {
        width: 350px;
        font-size: 16px;
    }
}


/* ===== LOGO INEI EN FRANJA AZUL ===== */

.franja-azul-izquierda {
    position: absolute;
    top: 0;
    left: 0;
    width: 210px;
    height: 100%;
    z-index: 4;
    display: flex;
    align-items: flex-start;   /* ← arriba del todo */
    padding-top: 0px;         /* ← separación desde el borde superior */
    justify-content: center;
}

#logo-inei {
    width: 130px;
    max-width: 85%;
    object-fit: contain;
}


/* ===== BANNER ===== */

#inicio-banner {
    position: relative;
    height: 31.5vh;
    overflow: hidden;
}

#inicio-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 210px;

    width: 190px;
    height: 270px;

    background: rgba(0, 150, 100, 0.30);

    clip-path: polygon(
        0 0,
        100% 0,
        100% 35%,
        0 100%
    );

    z-index: 3;
    pointer-events: none;
}

#inicio-banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;

    width: 150px;
    height: 120px;

    background: rgba(0, 150, 100, 0.50);

    clip-path: polygon(
        100% 100%,
        0 100%,
        100% 0
    );

    z-index: 3;
    pointer-events: none;
}

.bloque-superior {
    position: relative;
}

.bloque-superior::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 210px;
    height: 100%;
    background: linear-gradient(
        90deg,
        #0f2c5c 0%,
        #1e4b8f 40%,
        #2f6fb3 75%,
        #4a8fd1 100%
    );
    z-index: 0;
}

/* Slides */
#inicio-banner .slide {
    position: absolute;
    top: 0;
    left: 210px;
    width: calc(100% - 210px);
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 2;
}

#inicio-banner .slide.activo {
    opacity: 1;
}

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

.footer-superior {
    background-color: #354876;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    min-height: 100px;   /* ← AQUÍ gradúas el grosor sin generar scrollbar */
    font-size: 14px;
}

.footer-izquierda {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1; 
}

.footer-izquierda a {
    background-color: white;
    color: #4b5a88;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    transition: 0.3s;
}

.footer-izquierda a:hover {
    transform: scale(1.1);
}

.footer-derecha {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.footer-derecha span:first-child {
    text-align: right;
}

.footer-derecha span:last-child {
    text-align: center;
}

.footer-derecha i {
    margin-right: 6px;
}

#inicio-video {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
}

.video-contenedor {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    max-width: 95%;
}

.video-contenedor iframe {
    width: 100%;
    height: 500px;
}

#cerrar-video {
    position: absolute;
    top: -40px;
    right: 0;
    background: #c62828;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

/* ===== LAYOUT IZQUIERDO ===== */

body {
    margin: 0;
}

.contenedor-inicio {
    position: relative;
}

body::before {
    content: "";
    position: absolute;

    left: 0;
    top: 200px;

    width: 50px;
    height: calc(100% - 140px - 160px); 

    background: rgba(200, 230, 240, 0.65);

    z-index: 1;
    pointer-events: none;

    clip-path: polygon(
        0 10%,
        100% 0,
        100% 100%,
        0 100%
    );
}
