/* Estilos para las páginas de destinos */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 400px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    margin-bottom: 30px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h1, .hero p {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.details h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.details p, .details ul {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

.details ul {
    margin-left: 20px;
}

.details li {
    margin-bottom: 10px;
}

/* Estilos para las tarjetas de tours */
.tours {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.tours h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.tour-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.tour-card {
    flex: 0 0 32%;
    max-width: 32%;
    min-width: 300px;
    margin: 0 0.66% 25px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tour-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tour-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tour-content h3 {
    margin-top: 0;
    color: #d32f2f;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.tour-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.tour-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.tour-content li {
    margin-bottom: 10px;
    color: #666;
    font-size: 1em;
}

.tour-content li i {
    color: #007bff;
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.tour-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.tour-button {
    display: inline-block;
    background-color: #b71c1c;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 1em;
}

.tour-button:hover {
    background-color: #7f0000;
}

/* ============================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ============================================ */

/* DESKTOP - 1200px y superior */
@media (min-width: 1200px) {
    .details {
        max-width: 1200px;
        padding: 40px;
    }

    .tours {
        max-width: 1200px;
        padding: 40px;
    }
}

/* TABLET GRANDE - 1024px a 1199px */
@media (max-width: 1199px) and (min-width: 1024px) {
    .details {
        padding: 30px;
    }

    .tours {
        padding: 30px;
    }

    .tour-card {
        flex: 0 0 48%;
        max-width: 48%;
        margin: 0 1% 20px;
        min-width: 280px;
    }

    .hero {
        height: 380px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.1em;
    }
}

/* TABLET - 768px a 1023px */
@media (max-width: 1023px) {
    .details {
        padding: 24px;
    }

    .details h2 {
        font-size: 1.6rem;
    }

    .details p, .details ul {
        font-size: 1rem;
    }

    .tours {
        padding: 24px;
        margin: 30px auto;
    }

    .tours h2 {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }

    .tour-cards {
        padding: 0 10px;
    }

    .tour-card {
        flex: 0 0 48%;
        max-width: 48%;
        margin: 0 1% 20px;
        min-width: 240px;
    }

    .tour-image {
        height: 180px;
    }

    .tour-content h3 {
        font-size: 1.2em;
        margin-bottom: 12px;
    }

    .tour-content p {
        font-size: 0.95em;
        margin-bottom: 15px;
    }

    .hero {
        height: 350px;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 2.2em;
        margin-bottom: 8px;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* MÓVIL GRANDE - 576px a 767px */
@media (max-width: 767px) {
    .hero {
        height: 300px;
        padding: 0 15px;
        margin-bottom: 15px;
    }

    .hero h1 {
        font-size: 1.8em;
        margin-bottom: 8px;
    }

    .hero p {
        font-size: 0.95em;
    }

    .details {
        padding: 16px;
    }

    .details h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .details p, .details ul {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .details li {
        margin-bottom: 8px;
    }

    .tours {
        margin: 20px auto;
        padding: 16px;
    }

    .tours h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .tour-cards {
        padding: 0 5px;
    }

    .tour-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 0 18px;
        min-width: auto;
    }

    .tour-image {
        height: 200px;
    }

    .tour-content {
        padding: 12px;
    }

    .tour-content h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .tour-content p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .tour-content li {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .tour-footer {
        padding-top: 12px;
    }

    .tour-button {
        padding: 8px 20px;
        font-size: 0.9em;
    }
}

/* MÓVIL PEQUEÑO - 480px a 575px */
@media (max-width: 575px) {
    .hero {
        height: 250px;
        padding: 0 12px;
        margin-bottom: 12px;
    }

    .hero h1 {
        font-size: 1.5em;
        margin-bottom: 5px;
    }

    .hero p {
        font-size: 0.9em;
        max-width: 100%;
    }

    .details {
        padding: 12px;
    }

    .details h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .details p, .details ul {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .details li {
        margin-bottom: 6px;
    }

    .tours {
        margin: 16px auto;
        padding: 12px;
    }

    .tours h2 {
        font-size: 1.2rem;
        margin-bottom: 16px;
        padding-bottom: 8px;
    }

    .tour-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 0 14px;
    }

    .tour-image {
        height: 180px;
    }

    .tour-content {
        padding: 10px;
    }

    .tour-content h3 {
        font-size: 1em;
        margin: 0 0 8px;
    }

    .tour-content p {
        font-size: 0.85rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .tour-content li {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .tour-footer {
        padding-top: 10px;
        flex-direction: column;
        gap: 8px;
    }

    .tour-precio {
        width: 100%;
        border-radius: 25px;
        padding: 0;
        height: auto;
        background: #205c32;
        color: white;
        padding: 8px 0;
        text-align: center;
        font-weight: bold;
    }

    .tour-button {
        padding: 8px 16px;
        font-size: 0.85rem;
        width: 100%;
    }
}

/* MÓVIL EXTRA PEQUEÑO - menos de 480px */
@media (max-width: 479px) {
    .hero {
        height: 220px;
        padding: 0 8px;
        margin-bottom: 10px;
    }

    .hero h1 {
        font-size: 1.3em;
        margin-bottom: 4px;
    }

    .hero p {
        font-size: 0.8em;
    }

    .details {
        padding: 10px;
    }

    .details h2 {
        font-size: 1.08rem;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .details p, .details ul {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .details li {
        margin-bottom: 4px;
    }

    .tours {
        margin: 12px auto;
        padding: 10px;
    }

    .tours h2 {
        font-size: 1.08rem;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }

    .tour-image {
        height: 160px;
    }

    .tour-content {
        padding: 8px;
    }

    .tour-content h3 {
        font-size: 0.95rem;
        margin: 0 0 6px;
    }

    .tour-content p {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .tour-content li {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .tour-content li i {
        width: 14px;
        margin-right: 6px;
    }

    .tour-footer {
        padding-top: 8px;
    }

    .tour-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
