/* =========================================
   ViajArte - estilos generales
   (todas las paginas usan este archivo)
   ========================================= */

/* Colores que uso en toda la pagina */
:root {
    --azul: #1565c0;
    --celeste: #42a5f5;
    --amarillo: #ffc107;
    --naranja: #ef6c00;
    --crema: #f7f3ec;
    --texto: #2d2d2d;
    --oscuro: #1b1f24;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--texto);
    background-color: var(--crema);
    line-height: 1.6;
}

/* le pongo "body" adelante porque si no el reset de tailwind lo pisa */
body h1, body h2, body h3, body h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

main p {
    margin-bottom: 10px;
}

/* ---------- Header ---------- */
header {
    background-image: url(img/fondo-hero.jpg);
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* para el header de reserva que es mas cortito */
header.header-chico {
    min-height: 40vh;
}

header div.tit-barra {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}

header h1 {
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.7);
}

h1 span {
    color: var(--amarillo);
}

/* ---------- Menu ---------- */
nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0 0 10px 0;
}

.menu a {
    display: block;
    width: 250px;
    padding: 8px 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.menu a:hover {
    background-color: var(--amarillo);
    color: var(--oscuro);
}

/* ---------- Cuadro del hero ---------- */
.con-destinos {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.55);
    min-height: 300px;
    width: 90%;
    max-width: 750px;
    margin: 60px auto 0;
    padding: 30px 25px;
    border-radius: 20px;
    border-bottom: 5px solid var(--amarillo);
    color: white;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.con-destinos h2 {
    color: var(--amarillo);
}

.con-destinos h3 {
    color: var(--celeste);
}

/* el boton del hero (explorar / reservar) */
.con-destinos a {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 10px;
    background-color: var(--amarillo);
    border-radius: 25px;
    text-decoration: none;
    color: var(--oscuro);
    font-weight: 700;
    transition: transform 0.2s, background-color 0.2s;
}

.con-destinos a:hover {
    background-color: #ffd54f;
    transform: scale(1.05);
}

/* ---------- Cosas que se repiten ---------- */

/* titulo con una rayita abajo */
.titulo-seccion {
    display: inline-block;
    margin-bottom: 15px;
    border-bottom: 4px solid var(--amarillo);
}

/* cajitas con efecto al pasar el mouse */
.tarjeta {
    transition: transform 0.25s, box-shadow 0.25s;
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* galeria de fotos del inicio */
.galeria img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.galeria img:hover {
    transform: scale(1.05) rotate(-1deg);
}

/* tabla del clima de cada provincia */
.tabla-clima {
    border-collapse: collapse;
}

.tabla-clima tbody tr:nth-child(even) {
    background-color: #f1f6fc;
}

.tabla-clima tbody tr:hover {
    background-color: #fff3cd;
}

.tabla-clima td:first-child {
    font-weight: 700;
}

/* boton de volver arriba */
.a-volver {
    display: block;
    width: fit-content;
    margin: 10px auto 20px;
    padding: 10px 22px;
    border-radius: 25px;
    background-color: var(--azul);
    color: white;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.2s;
}

.a-volver:hover {
    background-color: var(--naranja);
}

/* inputs de los formularios */
.campo {
    transition: box-shadow 0.2s;
}

.campo:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--amarillo);
}

.boton {
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.boton:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--oscuro);
    color: #e0e0e0;
    padding: 30px 15px 10px;
    border-top: 6px solid var(--amarillo);
}

footer h2, footer h3 {
    color: var(--amarillo);
    margin-bottom: 10px;
}

footer div {
    margin: auto 0;
    text-align: center;
}

.sin-viñetas {
    list-style: none;
    padding: 0;
}

.block-center {
    display: block;
    margin: 0 auto;
}

.align-contact {
    text-align: left;
    margin-bottom: 5px;
}

.a-footer {
    text-decoration: none;
    color: var(--celeste);
    font-weight: 600;
}

.a-footer:hover {
    text-decoration: underline;
}

/* iconos de redes */
footer img {
    display: inline-block;
    margin: 10px 5px 0;
    transition: transform 0.2s;
}

footer img:hover {
    transform: scale(1.15);
}

.tabla-horarios {
    margin: 0 auto;
    border-collapse: collapse;
}

.tabla-horarios th,
.tabla-horarios td {
    border: 1px solid #555;
    padding: 6px 12px;
}

.tabla-horarios th {
    background-color: #2c333b;
    color: var(--amarillo);
}

.th-horarios,
.text-cent {
    text-align: center;
}

footer hr {
    border: none;
    border-top: 1px solid #444;
    margin: 25px 0 10px;
}

footer .text-cent {
    font-size: 14px;
    color: #9e9e9e;
    margin: 0;
}

/* ---------- Responsive ---------- */
@media screen and (min-width: 600px) {
    header div.tit-barra {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 40px;
    }

    nav ul {
        flex-direction: row;
        padding: 0;
    }

    .menu a {
        width: auto;
        padding: 6px 16px;
        background-color: transparent;
    }

    .menu a:hover {
        background-color: var(--amarillo);
    }

    .flex-box {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: flex-start;
        gap: 30px;
    }
}
