/* Estilos generales */
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-title {
    display: flex;
    align-items: center;
}

.logo-title img {
    width: 300px;
    height: auto;
}

.menu-bar {
    list-style: none;
    padding-left: 0;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    gap: 0;
}

.menu-bar a {
    text-decoration: none;
    margin-left: 0;
    border-radius: 0;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

.carousel-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}

.slide-title {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 3.2rem;
    font-weight: bold;
    z-index: 2;
    text-align: center;
    text-shadow: 2px 2px 8px #888, 0 2px 16px #888;
}

.carousel-main-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 1;
    padding: 18px 48px;
    font-size: 2.2rem;
    background: rgba(26, 1, 83, 0.9);
    border-radius: 35px;
    color: #fff;
    border: none;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 400px;
    max-height: 750px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 1s ease;
    padding: 0;
    margin: 0;
}

.mySlides {
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.quick-search-buttons .w3-button {
    flex: 1;
}

/* ============================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ============================================ */

/* DESKTOP - 1200px y superior */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .quick-search-buttons {
        width: 50%;
    }

    .acerca-nosotros,
    .testimonios {
        max-width: 48%;
    }
}

/* TABLET GRANDE - 1024px a 1199px */
@media (max-width: 1199px) and (min-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .quick-search-buttons {
        width: 60%;
        max-width: 600px;
    }

    .destinos-destacados {
        gap: 24px 1%;
    }

    .destinos-destacados .w3-third {
        flex: 1 1 300px;
        max-width: 340px;
    }
}

/* TABLET - 768px a 1023px */
@media (max-width: 1023px) {
    .w3-row-padding {
        flex-direction: column;
        align-items: center;
        gap: 24px 0;
        padding: 0 12px;
    }

    .w3-row-padding > div {
        max-width: 95% !important;
        width: 100%;
    }

    .quick-search-buttons {
        width: 90%;
        max-width: 500px;
        flex-direction: column;
    }

    .quick-search-buttons .w3-button {
        width: 100%;
    }

    .destinos-destacados {
        gap: 24px;
        padding: 0 20px;
    }

    .destinos-destacados .w3-third {
        flex: 1 1 280px;
        max-width: 100%;
        min-width: auto;
    }

    .acerca-nosotros,
    .testimonios {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .carousel-main-btn {
        padding: 14px 36px;
        font-size: 1.5rem;
    }

    main {
        padding: 20px 0;
    }

    main .w3-third {
        max-width: 100% !important;
        margin: 0 auto 20px auto !important;
    }

    .carousel-wrapper {
        max-height: 500px;
    }

    .mySlides img {
        height: 500px;
    }
}

/* MÓVIL GRANDE - 576px a 767px */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .container {
        max-width: 100%;
        padding: 0 10px;
    }

    .main-container {
        padding: 20px 0;
    }

    .quick-search-buttons {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .quick-search-buttons .w3-button {
        width: 100%;
        padding: 12px;
        font-size: 0.95rem;
    }

    .destinos-destacados {
        gap: 20px;
        padding: 0 10px;
    }

    .destinos-destacados .w3-third {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: auto;
    }

    .destinos-destacados .w3-card-4 {
        margin: 0 auto;
    }

    .destinos-destacados img {
        height: auto;
        max-height: 250px;
    }

    .acerca-nosotros,
    .testimonios {
        max-width: 100%;
        padding: 20px 16px;
        margin-bottom: 20px;
    }

    .acerca-nosotros h2,
    .testimonios h2 {
        font-size: 1.4rem;
    }

    .testimonios img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .slide-title {
        font-size: 1.8rem;
        top: 20px;
    }

    .carousel-main-btn {
        padding: 12px 28px;
        font-size: 1.2rem;
    }

    .carousel-button {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .carousel-wrapper {
        max-height: 350px;
        min-height: 300px;
    }

    .mySlides img {
        height: 350px;
    }

    .footer .container {
        gap: 20px;
        padding: 0 10px;
    }

    .footer div {
        flex: 1 1 100%;
        min-width: auto;
    }

    .footer h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .footer ul li {
        margin-bottom: 8px;
    }

    .footer .social-links {
        gap: 12px;
    }

    .footer .social-links a {
        font-size: 1.5rem;
    }

    .tour-card {
        margin: 0 auto;
    }

    .tour-footer {
        flex-direction: column;
        gap: 10px;
    }

    .tour-precio {
        width: 100%;
        border-radius: 30px;
        height: 40px;
    }

    .tour-button {
        width: 100%;
        border-radius: 30px;
    }

    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }
}

/* MÓVIL PEQUEÑO - 480px a 575px */
@media (max-width: 575px) {
    body {
        font-size: 13px;
    }

    .container {
        padding: 0 8px;
    }

    .main-container {
        padding: 15px 0;
    }

    .quick-search-buttons {
        gap: 8px;
        margin-bottom: 15px;
    }

    .quick-search-buttons .w3-button {
        padding: 10px;
        font-size: 0.9rem;
    }

    .destinos-destacados {
        gap: 15px;
        padding: 0 5px;
    }

    .destinos-destacados h3 {
        font-size: 0.95rem;
        margin: 10px 0;
    }

    .destinos-destacados p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .acerca-nosotros,
    .testimonios {
        padding: 16px 12px;
        margin-bottom: 15px;
    }

    .acerca-nosotros h2,
    .testimonios h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .acerca-nosotros p,
    .testimonios p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .testimonios img {
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }

    .testimonios div {
        margin-bottom: 12px;
    }

    .slide-title {
        font-size: 1.4rem;
        top: 15px;
        text-shadow: 1px 1px 4px #888;
    }

    .carousel-main-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .carousel-button {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .carousel-button.left {
        left: 5px;
    }

    .carousel-button.right {
        right: 5px;
    }

    .carousel-wrapper {
        max-height: 280px;
        min-height: 250px;
    }

    .mySlides img {
        height: 280px;
    }

    .footer {
        padding: 20px 0;
        margin-top: 20px;
    }

    .footer .container {
        gap: 15px;
        padding: 0 8px;
    }

    .footer h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .footer ul li {
        margin-bottom: 6px;
        font-size: 0.9rem;
    }

    .footer ul li a {
        font-size: 0.85rem;
    }

    .footer .social-links {
        gap: 10px;
    }

    .footer .social-links a {
        font-size: 1.3rem;
    }

    .footer .copyright {
        font-size: 0.8rem;
        margin-top: 15px;
        padding: 0 8px;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.2rem !important;
    }

    h3 {
        font-size: 0.95rem !important;
    }

    p {
        font-size: 0.85rem;
    }
}

/* MÓVIL EXTRA PEQUEÑO - menos de 480px */
@media (max-width: 479px) {
    body {
        font-size: 12px;
    }

    .container {
        padding: 0 5px;
    }

    .main-container {
        padding: 10px 0;
    }

    .quick-search-buttons {
        gap: 6px;
        margin-bottom: 10px;
    }

    .quick-search-buttons .w3-button {
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    .destinos-destacados {
        gap: 12px;
        padding: 0;
    }

    .destinos-destacados .w3-third {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .destinos-destacados h3 {
        font-size: 0.9rem;
        margin: 8px 0;
    }

    .destinos-destacados p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .acerca-nosotros,
    .testimonios {
        padding: 12px;
        margin-bottom: 12px;
    }

    .slide-title {
        font-size: 1.1rem;
        top: 10px;
    }

    .carousel-main-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .carousel-wrapper {
        max-height: 220px;
        min-height: 200px;
    }

    .mySlides img {
        height: 220px;
    }

    h1 {
        font-size: 1.3rem !important;
    }

    h2 {
        font-size: 1rem !important;
    }

    h3 {
        font-size: 0.9rem !important;
    }

    p {
        font-size: 0.8rem;
    }
}

/* Estilos movidos desde los elementos inline */
.tipo-cambio {
    background-color: #d32f2f;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
}

.tipo-cambio p {
    margin: 0;
}

.tipo-cambio span {
    float: right;
    color: #fff;
    font-size: 0.95em;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 32px 0;
}

.quick-search-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
    width: 50%;
    max-width: 700px;
}

.destinos-destacados {
    margin-top: 24px;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 2%;
}

.destinos-destacados .w3-third {
    flex: 1 1 320px;
    max-width: 370px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.destinos-destacados .w3-card-4 {
    flex: 1;
}

.destinos-destacados img {
    width: 100%;
}

.destinos-destacados h3 {
    text-align: center;
}

.destinos-destacados p {
    text-align: center;
}

.destinos-destacados button {
    display: block;
    margin: 0 auto;
}

.acerca-nosotros {
    flex: 1 1 380px;
    max-width: 48%;
    min-width: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
    padding: 32px 24px;
}

.acerca-nosotros h2 {
    text-align: center;
    color: #d32f2f;
}

.acerca-nosotros img {
    display: block;
    margin: 0 auto 16px;
}

.acerca-nosotros p {
    text-align: center;
}

.testimonios {
    flex: 1 1 380px;
    max-width: 48%;
    min-width: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
    padding: 32px 24px;
}

.testimonios h2 {
    text-align: center;
    color: #d32f2f;
}

.testimonios div {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.testimonios img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 12px;
}

.testimonios p {
    font-style: italic;
    text-align: center;
}

.footer {
    background: #222;
    color: #fff;
    padding: 32px 0;
    margin-top: 32px;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.footer h3 {
    color: #d32f2f;
}

.footer div {
    flex: 1 1 260px;
    min-width: 220px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li a {
    color: #fff;
    text-decoration: underline;
}

.footer .social-links {
    display: flex;
    gap: 18px;
    margin-top: 12px;
}

.footer .social-links a {
    color: #fff;
    font-size: 2rem;
}

.footer .copyright {
    text-align: center;
    color: #bbb;
    margin-top: 32px;
    font-size: 0.95em;
}

#btn-conoce-mas:hover {
    background: rgba(26, 1, 83, 0.9) !important;
    color: #fff !important;
}

.acerca-nosotros,
.testimonios,
.destinos-destacados .w3-card-4 {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#btn-nacional,
#btn-internacional {
    background: rgba(158, 11, 31, 0.9);
    color: #fff;
}

