/* styles.css */

/* VARIABLES */
:root {
    --primary: #1a2a6c;
    --accent: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
}

/* HEADER */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.main-header.scrolled {
    background: rgba(26, 42, 108, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.logo span span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--accent);
}

.btn-cta-nav {
    background: var(--accent);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO */
.hero {
    height: 100vh;
    background: url('img/flight_hero.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 16px 35px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 5px;
    margin-left: 15px;
    font-weight: 600;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* DESTINATIONS */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.dest-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dest-card:hover {
    transform: translateY(-15px);
}

.dest-img {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.dest-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.dest-card:hover .dest-img img {
    scale: 1.1;
}

.price-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--primary);
}

.dest-info {
    padding: 30px;
}

.dest-info h3 {
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.dest-info p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Variaciones Visuales */
.style-1 {
    border-bottom: 5px solid #3b82f6;
}

.style-2 {
    border-bottom: 5px solid #10b981;
}

.style-3 {
    border-bottom: 5px solid #f59e0b;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0;
    font-family: inherit;
}

.btn-text:hover {
    color: var(--accent);
    gap: 12px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
    background: var(--accent);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-image {
    position: relative;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 60px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.modal-details h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0;
}

.modal-details p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-price {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
}

.modal-cta {
    width: 100%;
    padding: 18px;
    text-align: center;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-image {
        min-height: 250px;
        max-height: 300px;
    }

    .modal-details {
        padding: 40px 30px;
    }

    .modal-details h2 {
        font-size: 2rem;
    }

    .price-value {
        font-size: 2rem;
    }
}

/* OFFERS */
.offers-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.offer-banner {
    display: flex;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    min-height: 350px;
    /* Increased height for impact */
}

.offer-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.offer-banner:hover .offer-image img {
    transform: scale(1.05);
    /* Subtle zoom effect */
}

.offer-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.offer-badge {
    background: var(--accent);
    color: var(--primary);
    padding: 8px 16px;
    position: absolute;
    top: 20px;
    left: 20px;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Ensure the second card (reverse) also looks good. 
   Since I manually swapped HTML order, flex row just works. 
   The badge will be top-left of the text container. */

.offer-content {
    padding: 60px 40px 40px;
    /* Top padding to clear badge */
}

.offer-content h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.prices {
    margin: 20px 0;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.6;
    margin-right: 15px;
}

.new-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

/* PACKAGES */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.package-box {
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
}

.p-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.p-content {
    padding: 25px;
}

.p-icons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.btn-outline {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* TESTIMONIALS */
.testimonials {
    background: var(--bg-light);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.test-card {
    min-width: 100%;
    padding: 40px;
    text-align: center;
}

.test-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--accent);
}

.stars {
    color: var(--accent);
    margin: 10px 0;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.slider-controls button {
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
}

/* CONTACT */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 30px;
    overflow: hidden;
}

.contact-info {
    background: var(--primary);
    color: var(--white);
    padding: 60px;
}

.contact-details {
    margin-top: 40px;
}

.contact-details p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--accent);
    margin-right: 15px;
}

.contact-form {
    padding: 60px;
}

.input-group {
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
}

.form-feedback {
    margin-top: 15px;
    font-weight: 600;
}

.success {
    color: #10b981;
}

.error {
    color: #ef4444;
}

/* FOOTER */
.main-footer {
    background: #0f172a;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    margin-top: 20px;
    opacity: 0.7;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-icons a:hover {
    background: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .offer-banner {
        flex-direction: column;
        height: auto;
    }

    .offer-banner.reverse {
        flex-direction: column-reverse;
    }

    .offer-image {
        min-height: 250px;
        flex: none;
    }

    .offer-details {
        padding-bottom: 30px;
    }
}

/* ANIMATIONS */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}