/* Reseteo básico y variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9fafb;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a202c;
}

/* =========================================
   Actividad 1: Galería Semántica (Grid)
   ========================================= */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto 50px auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.destination-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
}

.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease; /* Transición suave solicitada */
}

figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 32, 44, 0.85);
    color: #fff;
    padding: 20px;
    opacity: 0.8; /* Estado inicial de opacidad */
    transition: opacity 0.4s ease; /* Transición de opacidad */
}

/* Interacción Hover */
.destination-card:hover .responsive-img {
    transform: scale(1.05); /* Transformación de escala */
}

.destination-card:hover figcaption {
    opacity: 1; /* Alteración de opacidad al pasar el cursor */
}

/* =========================================
   Actividad 2: Tabla Avanzada
   ========================================= */
.pricing-container {
    max-width: 1000px;
    margin: 0 auto 50px auto;
    overflow-x: auto; /* Para scroll en móviles si es necesario */
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pricing-table caption {
    caption-side: bottom;
    padding: 15px;
    font-size: 0.9em;
    color: #666;
    text-align: left;
}

.pricing-table th, .pricing-table td {
    padding: 15px 20px;
    text-align: center; /* Alineación simétrica */
    border-bottom: 1px solid #e2e8f0;
}

.pricing-table thead th {
    background-color: #2c3e50; /* Fondo corporativo oscuro */
    color: #ffffff;
    font-weight: 600;
}

.pricing-table tbody th {
    background-color: #f8fafc;
    color: #2c3e50;
    text-align: left;
}

/* Coloración alterna de filas */
.pricing-table tbody tr:nth-child(even) {
    background-color: #f1f5f9;
}

.pricing-table tbody tr:hover {
    background-color: #e2e8f0;
}

/* =========================================
   Actividad 3: Formulario Interactivo
   ========================================= */
.booking-container {
    max-width: 600px;
    margin: 0 auto 50px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.booking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="date"],
.booking-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.booking-form input:focus,
.booking-form select:focus {
    border-color: #2c3e50;
    outline: none;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-container input[type="range"] {
    flex-grow: 1;
}

.btn-submit {
    width: 100%;
    background-color: #2c3e50;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #1a252f;
}