/* Estilos generales */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f9fc;
    color: #333;
}


/* Header */
header {
    background-color: #a8d4ff; /* azul clarito como en toda la web */
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Título del header */
header h1 {
    margin: 0;
    font-size: 26px;
    color: #004a80;
}

.nav-btn {
    margin-left: 15px;
    text-decoration: none;
    color: #004a80;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: #d7eaff;
}


/* CONTENIDO */
.contenido {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px #00000015;
}

h1, h2 {
    color: #005fa3;
}

h4 {
    text-decoration:underline;
    margin-top: 55px;
}


/* FORMULARIO */
.formulario {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.formulario input {
    flex: 1;
    padding: 10px;
    border: 2px solid #a8d4ff;
    border-radius: 6px;
}

.formulario button {
    padding: 10px 20px;
    background: #005fa3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.formulario button:hover {
    background: #004a80;
}


/* RESULTADO */
.resultado {
    margin-top: 30px;
    padding: 20px;
    background: #e9f3ff;
    border-radius: 10px;
}

.bloque-tiempo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.bloque-tiempo .icono {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.temp-actual .valor {
    font-size: 4rem;
    color: #005fa3;
}

.temp-actual .descripcion {
    font-size: 1.2rem;
    color: #004a80;
}

.icono img {
    width: 60%;
}


/* PREDICCIÃ“N (HOY) */
.prediccion {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.prediccion li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #cfe3ff;
}

.contenido .prediccion img {
    max-width: 15%;
}


/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: #e9f3ff;
    color: #004a80;
    font-weight: bold;
}

/* -------------------------------------------------- */
/* PREDICCIÓN HORIZONTAL */
/* -------------------------------------------------- */

.prediccion-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: thin;
    max-width: 60%;
    margin: auto;
    background: #005fa380;
    color: #000000;
    border-radius: 10px;
    border: 2px solid;
    border-color: #004a80;;
}

.prediccion-horizontal li {
    flex: 0 0 auto;
    text-align: center;
    background: #e9f3ff;
    padding: 10px;
    border-radius: 10px;
    width: 80px;
    box-shadow: 0 0 5px #00000015;
    margin: 10px auto;
}

.prediccion-horizontal img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.prediccion-horizontal span {
    display: block;
    font-size: 14px;
    color: #004a80;
    font-weight: bold;
}

/* Scrollbar bonito */
.prediccion-horizontal::-webkit-scrollbar {
    height: 6px;
}

.prediccion-horizontal::-webkit-scrollbar-thumb {
    background: #a8d4ff;
    border-radius: 10px;
}

.prediccion-horizontal::-webkit-scrollbar-track {
    background: #d7eaff;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {

    /* Header */
    .header {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        margin-top: 25px;
    }

    .nav-btn {
        display: inline-block;
        margin: 5px 10px;
    }

    /* Contenido */
    .contenido {
        margin: 20px;
        padding: 20px;
    }

    /* Formulario */
    .formulario {
        flex-direction: column;
    }

    .formulario button {
        margin: 0px auto;
    }

    /* Bloque de tiempo */
    .bloque-tiempo {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .bloque-tiempo .icono img {
        margin: 0px auto;
        width: 45%;
    }

    .temp-actual .valor {
        font-size: 2rem;
    }

    .prediccion li {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    /* TÃ­tulos */
    h1, h2 {
        text-align: center;
    }
}

