﻿
/* ========================
   RESET / BASE
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

html, body {
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #111;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================
   NAV / CABECERA
   ======================== */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.9);
    height: 80px;
    padding: 0 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: relative;
    z-index: 100;
}

nav .enlace img {
    height: 52px;
    width: auto;
}

/* Menú escritorio */
nav ul {
    display: flex;
    gap: 10px;
    margin-left: auto;
    align-items: center;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: bold;
}

nav ul li a:hover {
    background: rgba(0,0,0,0.1);
}

/* Hamburguesa y checkbox */
#check { display: none; }
.checkbtn { display: none; cursor: pointer; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
.checkbtn img { width: 35px; height: auto; }

/* ========================
   BANNER / IMAGEN PRINCIPAL
   ======================== */
section.banner-container {
    text-align: center;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

section.banner-container img {
    max-width: 80%;
    width: 500px;
    height: auto;
    display: block;
}

/* ========================
   DATA CONTAINER
   ======================== */
#data-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Indicadores en sepia */
.data-indicators {
    width: 100%;
    background: #f4e3c1; /* sepia */
    border-radius: 12px;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.data-indicators span {
    font-weight: bold;
}

/* Valores debajo, cada uno en su caja blanca */
.data-values {
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.data-values .valor {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    text-align: center;
    flex: 1;
    min-width: 80px;
}

/* ========================
   TRADUCTOR GOOGLE
   ======================== */
#google_translate_element {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    z-index: 50;
}

/* ========================
   FOOTER
   ======================== */
footer {
    width: 100%;
    background-color: #f1f1f1;
    text-align: center;
    padding: 10px;
}

/* ========================
   MAIN CONTENT
   ======================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* ========================
   MEDIA QUERIES (móvil)
   ======================== */
@media (max-width: 858px) {
    /* Mostrar hamburguesa en móvil */
    .checkbtn { display: block; }

    /* Ajuste imagen */
    section.banner-container img {
        max-width: 90%;
    }

    /* Caja de datos más pequeña */
    #data-container {
        max-width: 90%;
        padding: 15px;
    }

    .data-values .valor {
        font-size: 14px;
        padding: 8px;
        min-width: 60px;
    }

    .data-indicators span {
        font-size: 12px;
    }

    /* Menú móvil */
    nav ul {
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255,255,255,0.98);
        padding-top: 20px;
        gap: 10px;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.35s ease;
        z-index: 99;
    }

    #check:checked ~ ul {
        left: 0;
    }

    nav ul li { width: 100%; text-align: center; }
    nav ul li a { width: 90%; font-size: 14px; }

    /* Ajuste footer para móviles */
    footer {
        position: relative;
        margin-top: 20px; /* subir un poco */
    }

    /* Centrado main content */
    .main-content {
        justify-content: flex-start;
        gap: 15px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

