@import url('https://fonts.googleapis.com/css2?family=Poppins:wght=300;400;600;700&display=swap');

html {
    scroll-behavior: smooth !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-blue: #54baff;
    --dark-text: #2c3e50;
    --light-text: #666666;
    --sand-text: #e5b382;
    --white: #ffffff;
    --light-gray: #f8f9fa;
}

body {
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* --- HEADER --- */
header {
    padding: 20px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

nav {
    display: flex;
    gap: 15px;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    padding: 8px 20px;
    transition: 0.3s;
    border-radius: 4px;
}

.nav-link.active, .nav-link:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* --- HERO SECTION --- */
.hero {
    text-align: center;
    padding: 50px 20px 30px 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-blue);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary-blue);
    opacity: 0.8;
    margin-bottom: 15px;
}

.hero-description {
    max-width: 750px;
    margin: 0 auto 25px auto;
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.6;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 35px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #3ba4eb;
}

/* --- GALERÍA DE ÓVALOS --- */
.hero-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: 100px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.gallery-item.video-item {
    position: relative;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-label {
    width: 100%;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.45);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* --- CARACTERÍSTICAS (FEATURES) --- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 70px 20px 40px 20px;
    text-align: center;
}

.feature-card .feature-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.6;
}

/* --- BOTÓN CTA WHATSAPP --- */
.features-cta {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.btn-features-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25d366;
    color: #ffffff;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-features-whatsapp:hover {
    background-color: #1eb956;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-features-whatsapp i {
    font-size: 1.3rem;
}

/* --- SECCIÓN INSTAGRAM --- */
.instagram-section {
    padding: 40px 20px 60px 20px;
    text-align: center;
}

.instagram-section h2 {
    color: #e1306c;
    font-size: 2rem;
    margin-bottom: 5px;
}

.insta-subtitle {
    color: var(--light-text);
    margin-bottom: 15px;
    font-style: italic;
}

.btn-instagram {
    display: inline-block;
    padding: 8px 20px;
    background: #0095f6;
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
    margin-bottom: 25px;
}

.btn-instagram:hover {
    background: #0077c5;
}

.insta-carousel-wrapper {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0;
}

.insta-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.insta-grid-slider {
    display: flex;
    gap: 15px;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.insta-card {
    flex: 0 0 calc((100% - 45px) / 4);
    aspect-ratio: 1 / 1;
    height: auto;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: #f8f9fa;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block;
    scroll-snap-align: start;
}

.insta-card:hover {
    transform: translateY(-4px);
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(225, 48, 108, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-card:hover .insta-overlay {
    opacity: 1;
}

/* --- SECCIÓN QUIÉNES SOMOS --- */
.about-section {
    padding: 60px 0;
    background-color: var(--white);
}

.about-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-content {
    flex: 1.3;
}

.about-title {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 400;
}

.about-card-container {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    min-height: 220px;
}

.about-tabs {
    width: 35%;
    background-color: #f8f9fa;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 20px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn:last-child {
    border-bottom: none;
}

.tab-btn:hover {
    background-color: #edf2f7;
}

.tab-btn.active {
    color: #e53e3e;
    background-color: #ffffff;
    border-right: 3px solid #e53e3e;
}

.about-tab-details {
    width: 65%;
    padding: 25px 30px;
    display: flex;
    align-items: center;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
}

.about-video-box {
    flex: 1;
    max-width: 500px;
    width: 100%;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- FONDO AZUL PARA LA SECCIÓN DE QUIÉNES SOMOS --- */
.popular-destinations {
    background-color: var(--primary-blue);
    padding: 60px 0 80px 0;
    color: var(--white);
}

.popular-destinations h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.destination-img {
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.destination-info {
    margin-top: 15px;
}

.destination-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.destination-info .price {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    margin-top: 5px;
}

/* --- SECCIÓN DE CONTACTO --- */
.contact-section {
    padding: 70px 0;
    background-color: var(--white);
}

.contact-wrapper {
    display: flex;
    background-color: var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact-info-side {
    flex: 1;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-side h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.contact-info-side p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.95;
}

/* --- BLOQUE UNIFICADO DE CONTACTO Y AGENTES --- */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.contact-card, 
.agent-card {
    background: rgba(0, 0, 0, 0.15);
    border-left: 3px solid #ffffff;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(4px);
}

.contact-card p, 
.agent-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.contact-card i, 
.agent-phone i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.agents-block {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.agents-block h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.agent-card {
    margin-bottom: 10px;
}

.agent-card:last-child {
    margin-bottom: 0;
}

.agent-name {
    font-size: 0.92rem !important;
    font-weight: 600;
    margin-bottom: 4px !important;
    color: #ffffff;
}

/* --- FORMULARIO DE CONTACTO --- */
.contact-form-side {
    flex: 1.2;
    padding: 45px;
    background-color: var(--white);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 18px;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--dark-text);
    background-color: #fafafa;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(84, 186, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.captcha-container {
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
    margin-bottom: 20px;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background-color: #3ba4eb;
    transform: translateY(-1px);
}

/* --- FOOTER CORREGIDO --- */
.main-footer {
    background-color: var(--white);
    padding: 25px 0;
    border-top: 1px solid #eee;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-col-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.footer-col-center {
    flex: 2;
    text-align: center;
}

.footer-col-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.footer-logo {
    height: 45px;
    max-height: 45px;
    width: auto;
    object-fit: contain;
}

.copyright {
    font-size: 0.85rem;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.4;
}

.designer-separator {
    color: #ccc;
    font-weight: 300;
}

.designer-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: #3ba4eb;
}

/* LIMITACIÓN ESTRICTA DE TAMAÑO PARA EL LOGO GP EN TODAS LAS PANTALLAS */
.designer-logo {
    height: 20px !important;
    max-height: 20px !important;
    width: auto !important;
    max-width: 60px !important;
    object-fit: contain !important;
    vertical-align: middle;
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--primary-blue);
    font-size: 1.1rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.7;
}

/* --- RESPONSIVE GENERAL --- */
@media (max-width: 992px) {
    .hero-gallery { grid-template-columns: repeat(2, 1fr); }
    .features, .destinations-grid { grid-template-columns: 1fr; gap: 30px; }
    .features-cta { grid-column: 1; }
    .about-wrapper { flex-direction: column; }
    .about-video-box { max-width: 100%; }
    .contact-wrapper { flex-direction: column; }
    .contact-info-side, .contact-form-side { padding: 35px 25px; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }

    /* AJUSTES MÓVILES PARA EL FOOTER */
    .footer-bottom { 
        flex-direction: column; 
        gap: 15px; 
        text-align: center; 
    }

    .footer-col-left, 
    .footer-col-center, 
    .footer-col-right {
        justify-content: center;
        width: 100%;
    }

    .copyright {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 4px;
    }

    .designer-separator {
        display: none; /* Se oculta la barra en móviles para un mejor flujo visual */
    }

    .designer-logo {
        height: 18px !important;
        max-height: 18px !important;
    }

    .insta-card {
        flex: 0 0 calc((100% - 15px) / 2);
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .about-card-container {
        flex-direction: column;
        border: none;
        background-color: transparent;
    }

    .about-tabs {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 6px;
        background-color: transparent;
        border-right: none;
        border-bottom: none;
        margin-bottom: 15px;
    }

    .tab-btn {
        flex: 1 1 auto;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .tab-btn.active {
        background-color: #ffffff;
        color: var(--dark-text);
        border-right: none;
        font-weight: 700;
    }

    .about-tab-details {
        width: 100%;
        background-color: #ffffff;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .tab-content p {
        color: #2c3e50;
    }

    .about-video-box {
        margin-top: 25px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-gallery { grid-template-columns: 1fr; }

    .insta-card {
        flex: 0 0 90%;
        aspect-ratio: 1 / 1;
        height: auto;
    }
}