/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colores */
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --secondary-color: #00d2d3;
    --accent-color: #ff9f43;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --bg-light: #f9fbfd;
    --bg-dark: #1e272e;
    --border-color: #dfe6e9;

    /* Tipografía */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Espaciados y Layout */
    --header-height: 80px;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);

    /* Transiciones */
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. UTILITIES & COMPONENTS
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-bg-light {
    background-color: var(--bg-light);
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.text-white {
    color: var(--white) !important;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    gap: 12px;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* =========================================
   3. HEADER
   ========================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--white);
}

.logo span {
    color: var(--secondary-color);
}

#header.scrolled .logo {
    color: var(--primary-dark);
}

/* Nav Menu */
.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

#header.scrolled .nav-link {
    color: var(--text-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-toggle,
.nav-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

#header.scrolled .nav-toggle {
    color: var(--text-dark);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: -1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Search Box Style */
.search-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 15px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f1f2f6;
    padding: 12px 15px;
    border-radius: 8px;
    min-width: 200px;
}

.input-group i {
    color: var(--primary-color);
    margin-right: 10px;
}

.input-group input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
    color: var(--text-dark);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* =========================================
   5. DESTINOS & CARDS
   ========================================= */
.destinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.price-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

.card-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* =========================================
   6. OFERTAS
   ========================================= */
.ofertas-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

/* Banner Grande */
.oferta-banner {
    display: flex;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.oferta-img {
    flex: 1;
    position: relative;
}

.oferta-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.oferta-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #e74c3c;
    color: var(--white);
    padding: 8px 12px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.oferta-cat {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.oferta-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
}

.price-box {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.1rem;
}

.new-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Ofertas Pequeñas */
.ofertas-grid-small {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.oferta-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    height: 100%;
    position: relative;
    transition: var(--transition);
}

.oferta-card:hover {
    transform: translateX(5px);
}

.oferta-card img {
    width: 40%;
    object-fit: cover;
}

.oferta-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-box-small {
    margin-top: 10px;
}

.price-box-small .new-price {
    font-size: 1.4rem;
}

/* =========================================
   7. PAQUETES
   ========================================= */
.paquetes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.package-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.package-box:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.package-img {
    position: relative;
}

.package-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.package-details {
    padding: 25px;
    text-align: center;
}

.package-details h3 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.package-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.package-icons li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.package-icons i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* =========================================
   8. TESTIMONIOS (SLIDER)
   ========================================= */
.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
    text-align: center;
}

.testimonial-slider {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(0.9);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
    position: relative;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.client-img img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--secondary-color);
}

.opinion {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #dcdde1;
}

.client-name {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stars {
    color: var(--accent-color);
}

.slider-controls {
    margin-top: 30px;
}

.slider-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* =========================================
   9. CONTACTO
   ========================================= */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.contact-form-container {
    flex: 1;
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

/* =========================================
   10. MODAL
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease forwards;
    transform: translateY(20px);
    opacity: 0;
}

@keyframes modalSlideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    text-align: center;
}

.modal-body img {
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    max-height: 300px;
    width: 100%;
    object-fit: cover;
}

.modal-body h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.error-msg {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    height: 15px;
}

.success-message {
    margin-top: 15px;
    color: #2ecc71;
    font-weight: 600;
    text-align: center;
    display: none;
}

/* =========================================
   10. FOOTER
   ========================================= */
.footer {
    background-color: #1a1a1a;
    color: #b2bec3;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--white);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter-form button {
    background: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* =========================================
   11. ANIMACIONES & MEDIA QUERIES
   ========================================= */

/* Reveal Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .ofertas-container {
        grid-template-columns: 1fr;
    }

    .oferta-banner {
        flex-direction: column;
    }

    .oferta-img {
        height: 200px;
    }

    .paquetes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        flex-direction: column;
        padding: 30px;
    }
}

@media (max-width: 768px) {

    /* Mobile Nav */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        padding: 80px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.4s;
        display: flex;
        flex-direction: column;
    }

    .nav-menu.show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .nav-link {
        color: var(--text-dark);
        font-size: 1.1rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        color: var(--text-dark);
    }

    .nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .paquetes-grid {
        grid-template-columns: 1fr;
    }

    .oferta-card {
        flex-direction: column;
    }

    .oferta-card img {
        width: 100%;
        height: 150px;
    }
}