/* ===========================
   RESET Y BASE
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #222;
}

/* ===========================
   NAVEGACIÓN
=========================== */
.navbar {
    background-color: #085041;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.marca {
    color: white;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 24px;
}

.menu li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    cursor: pointer;
}

.menu li:hover {
    color: white;
}

/* ===========================
   SECCIONES GENERALES
=========================== */
section {
    padding: 48px 32px;
}

section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #085041;
    margin-bottom: 6px;
}

.subtitulo {
    font-size: 14px;
    color: #666;
    margin-bottom: 28px;
}

/* ===========================
   GALERÍA - ACTIVIDAD 1
=========================== */
.galeria {
    background-color: #ffffff;
}

.grid-destinos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* LA TARJETA - figure es la etiqueta semántica correcta */
.tarjeta-destino {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;

    /* Aquí empieza la animación suave */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Efecto al pasar el mouse - esto pide la rúbrica */
.tarjeta-destino:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* La imagen dentro de la tarjeta */
.imagen-destino {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;

    /* Animación también en la imagen */
    transition: transform 0.4s ease;
}

.tarjeta-destino:hover .imagen-destino {
    transform: scale(1.12);
}

/* figcaption es la etiqueta semántica para la descripción */
.leyenda {
    padding: 14px 16px;
}

.leyenda h4 {
    font-size: 15px;
    font-weight: 600;
    color: #085041;
    margin-bottom: 6px;
}

.leyenda p {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* ===========================
   TABLA - ACTIVIDAD 2
=========================== */
.paquetes {
    background-color: #f0f7f4;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

caption {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    text-align: left;
}

thead tr {
    background-color: #085041;
    color: white;
}

thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 500;
}

tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Filas alternadas - esto pide la rúbrica */
tbody tr:nth-child(even) {
    background-color: #f0f7f4;
}

tbody tr:hover {
    background-color: #dff0ea;
}

/* ===========================
   FORMULARIO - ACTIVIDAD 3
=========================== */
.reservas {
    background-color: #ffffff;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
}

.formulario label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-top: 6px;
}

.formulario input,
.formulario select {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    transition: border-color 0.3s ease;
}

/* Efecto al hacer clic en un campo */
.formulario input:focus,
.formulario select:focus {
    outline: none;
    border-color: #1D9E75;
    box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.15);
}

/* El slider de presupuesto */
.formulario input[type="range"] {
    padding: 0;
    border: none;
    accent-color: #085041;
    cursor: pointer;
}

/* El botón de envío */
.formulario button {
    margin-top: 10px;
    padding: 14px;
    background-color: #085041;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.formulario button:hover {
    background-color: #1D9E75;
}

/* ===========================
   RESPONSIVE - CELULAR
=========================== */
@media (max-width: 768px) {
    .grid-destinos {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        gap: 12px;
    }

    table {
        font-size: 12px;
    }

    thead th,
    tbody td {
        padding: 10px 10px;
    }
}

/* Estrellas doradas */
tbody td:nth-child(3) {
    color: #EF9F27;
    font-size: 16px;
    letter-spacing: 2px;
}

/* ===========================
   HERO BANNER
=========================== */
.hero-banner {
    background: linear-gradient(135deg, #085041 0%, #1D9E75 100%);
    padding: 70px 32px;
    text-align: center;
    color: white;
}

.hero-etiqueta {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-banner h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: white;
}

.hero-banner p {
    font-size: 15px;
    opacity: 0.88;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.hero-boton {
    display: inline-block;
    background: white;
    color: #085041;
    padding: 13px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-boton:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}