/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
:root {
    /* Paleta de Colores */
    --primary-color: #0f172a; /* Azul noche profundo */
    --secondary-color: #334155; /* Gris azulado */
    --accent-color: #d4af37; /* Oro metálico elegante */
    --accent-hover: #b5952f;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --dark-bg: #020617;
    --error: #ef4444;
    --success: #22c55e;

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

    /* Espaciado y Dimensiones */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    
    /* Efectos */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    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;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* =========================================
   2. UTILIDADES Y COMPONENTES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

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

/* Tipografía */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

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

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

.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-color); }
.text-white { color: var(--white); }

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 10px;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
}

.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-white {
    background-color: var(--white);
    color: var(--primary-color);
}

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

.btn-text {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-text:hover {
    gap: 10px; /* Efecto de flecha moviéndose */
}

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

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

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i { color: var(--accent-color); }

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

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

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

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: var(--transition);
}

.header.scrolled .bar { background-color: var(--primary-color); }

/* =========================================
   4. HERO
   ========================================= */
.hero {
    height: 100vh;
    width: 100%;
    background-image: url('https://www.aviationgroup.es/wp-content/uploads/2024/01/fases-de-un-vuelo.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-search-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 100px;
    display: flex;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease-out 0.4s backwards;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    background: var(--white);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.input-group i { color: var(--accent-color); }

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

.btn-search {
    border-radius: 50px;
    padding: 10px 30px;
    white-space: nowrap;
}

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

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal.active { display: flex; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}
.modal-dialog {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: min(90%, 600px);
    overflow: hidden;
    z-index: 1;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
}
.modal-body {
    padding: 20px;
}
.modal-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}
.modal-price {
    margin-top: 15px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}
.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: flex-end;
}

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

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

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

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

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

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

.dest-price {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.dest-content {
    padding: 25px;
}

.dest-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

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

.dest-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* =========================================
   6. OFERTAS
   ========================================= */
.offers-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 500px;
}

.offer-banner {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    display: flex;
    transition: var(--transition);
    cursor: pointer;
}

.main-offer {
    grid-row: 1 / -1;
    background-color: var(--primary-color);
    color: var(--white);
}

.main-offer .offer-content {
    flex: 1;
    padding: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, rgba(15,23,42,1) 0%, rgba(15,23,42,0.6) 100%);
}

.main-offer .offer-img {
    position: absolute;
    right: 0;
    top: 0;
    width: 70%;
    height: 100%;
    z-index: 1;
}

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

.side-offer {
    position: relative;
    color: var(--white);
}

.side-offer .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.side-offer:hover .bg-img {
    transform: scale(1.05);
}

.side-offer .offer-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 2;
}

.badge {
    background: var(--error);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.badge-accent { background: var(--accent-color); }
.badge-dark { background: var(--primary-color); }

.side-offer .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    margin: 0;
    z-index: 3;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 0.9rem;
}

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

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

.package-box {
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    background: var(--white);
    transition: var(--transition);
}

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

.pkg-img {
    height: 200px;
    position: relative;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
}

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

.pkg-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pkg-body {
    padding: 25px;
}

.pkg-body h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.pkg-icons {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    color: var(--accent-color);
}

.pkg-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

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

/* =========================================
   8. TESTIMONIOS (CARRUSEL)
   ========================================= */
.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 400px;
    overflow: hidden;
}

.testimonial-track-container {
    height: 100%;
    position: relative;
}

.testimonial-track {
    position: relative;
    height: 100%;
    list-style: none;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto;
}

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

.stars {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.client-type {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

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

.prev-btn { left: 0; }
.next-btn { right: 0; }

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.current-slide {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* =========================================
   9. CONTACTO
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.error-msg {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none; /* Oculto por defecto */
}

.form-group.error input { border-color: var(--error); }
.form-group.error .error-msg { display: block; }

.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

.form-status.success { color: var(--success); }

/* =========================================
   10. FOOTER
   ========================================= */
.footer {
    background: #020617;
    color: #94a3b8;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

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

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

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

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

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

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}
.footer-contact {
    margin-top: 20px;
}
.footer-contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
}
.footer-contact i { color: var(--accent-color); }

/* =========================================
   11. ANIMACIONES Y RESPONSIVE
   ========================================= */

/* Animación Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Media Queries */
@media (max-width: 1024px) {
    :root { --container-width: 90%; }
    
    .hero-title { font-size: 3.5rem; }
    
    .offers-layout {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: 300px 200px 200px;
    }
    
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    
    .header-container { padding: 0 20px; }
    
    /* Menú Móvil */
    .mobile-toggle { display: block; z-index: 1001; }
    
    .mobile-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--primary-color); }
    .mobile-toggle.active .bar:nth-child(2) { opacity: 0; }
    .mobile-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--primary-color); }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 20px;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active { right: 0; }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    
    .nav-link { color: var(--text-dark); font-size: 1.2rem; }
    
    .contact-wrapper { grid-template-columns: 1fr; }
    
    .packages-grid { grid-template-columns: 1fr; }
    
    .hero-search-box { flex-direction: column; border-radius: 20px; }
    .input-group { width: 100%; }
    .btn-search { width: 100%; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 2rem; }
}
