/* ============================================================
   ALPETRAVEL - MEJORAS GLOBALES
   Animaciones, Ken Burns, WhatsApp flotante, reveal on scroll
   ============================================================ */

/* ---------- Animación Ken Burns en imágenes principales ---------- */
.hero-carousel .carousel-slide,
.hoteles-hero,
.cruceros-hero,
.destinos-hero,
.flights-hero,
.contact-hero,
.vr-hero,
.cruceros-hero,
.categorias-destinos-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: kenburns 18s ease-in-out infinite alternate;
}

/* Hero de hoteles usa un gradiente sobre la imagen -> le damos efecto a un pseudo-elemento */
.hoteles-hero,
.cruceros-hero,
.destinos-hero,
.flights-hero {
    position: relative;
    overflow: hidden;
}

.hoteles-hero::before,
.cruceros-hero::before,
.destinos-hero::before,
.flights-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transform: scale(1.15);
    animation: kenburns 18s ease-in-out infinite alternate;
    z-index: 0;
}

.hoteles-hero > *,
.cruceros-hero > *,
.destinos-hero > *,
.flights-hero > * {
    position: relative;
    z-index: 1;
}

@keyframes kenburns {
    0%   { transform: scale(1) translate(0, 0); }
    50%  { transform: scale(1.12) translate(1.5%, -1.5%); }
    100% { transform: scale(1.05) translate(-1%, 1%); }
}

/* Héroes con gradiente: les aplicamos el zoom a un pseudo-elemento */
.destinos-hero {
    background: linear-gradient(135deg, rgba(0, 77, 153, 0.72) 0%, rgba(0, 168, 255, 0.6) 100%),
        url('https://images.unsplash.com/photo-1503220317375-aaad61436b1b?q=80&w=1800&auto=format&fit=crop') no-repeat center center/cover;
}

.destinos-hero::before {
    background: linear-gradient(135deg, rgba(0, 77, 153, 0.72) 0%, rgba(0, 168, 255, 0.6) 100%),
        url('https://images.unsplash.com/photo-1503220317375-aaad61436b1b?q=80&w=1800&auto=format&fit=crop') no-repeat center center/cover;
    animation: kenburns 18s ease-in-out infinite alternate;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

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

/* ---------- Tarjetas más animadas ---------- */
.hotel-card,
.destino-card,
.offer-slide,
.destination-card,
.deal-card,
.tip-card,
.categoria-card,
.region-card,
.why-card,
.lujo-card,
.testimonio-card,
.feature-box,
.vr-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hotel-card:hover,
.destino-card:hover,
.offer-slide:hover,
.destination-card:hover,
.deal-card:hover,
.tip-card:hover,
.why-card:hover,
.lujo-card:hover,
.testimonio-card:hover,
.feature-box:hover,
.vr-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.hotel-image img,
.destino-image img,
.offer-image img,
.vr-media img,
.categoria-card img,
.region-card img {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.hotel-card:hover .hotel-image img,
.destino-card:hover .destino-image img,
.offer-slide:hover .offer-image img,
.vr-card:hover .vr-media img,
.categoria-card:hover img,
.region-card:hover img {
    transform: scale(1.12);
}

/* ---------- Botones con brillo ---------- */
.btn-primary,
.btn-secondary,
.hotel-btn,
.destino-btn,
.cta-button,
.search-button-hoteles,
.btn-search {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after,
.hotel-btn::after,
.destino-btn::after,
.cta-button::after,
.search-button-hoteles::after,
.btn-search::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::after,
.btn-secondary:hover::after,
.hotel-btn:hover::after,
.destino-btn:hover::after,
.cta-button:hover::after,
.search-button-hoteles:hover::after,
.btn-search:hover::after {
    left: 100%;
}

/* ---------- Animación de entrada del contenido del hero ---------- */
.hero-content,
.hoteles-hero h1,
.cruceros-hero h1,
.destinos-hero h1,
.flights-hero h1,
.contact-hero .hero-content,
.vr-hero-content {
    animation: fadeInUp 1s ease both;
}

.hero-content .hero-subtitle,
.hoteles-hero p,
.cruceros-hero p,
.destinos-hero p,
.flights-hero p,
.contact-hero .hero-subtitle,
.vr-hero-subtitle {
    animation: fadeInUp 1s ease 0.25s both;
}

.hero-content .btn-hero {
    animation: fadeInUp 1s ease 0.5s both;
}

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

/* ---------- Partículas decorativas del hero ---------- */
.hero-carousel .carousel-slide.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06), transparent 40%);
    z-index: 1;
}

/* ============================================================
   WHATSAPP FLOTANTE (3 números)
   ============================================================ */
.wa-float {
    position: fixed;
    bottom: 110px;
    right: 22px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.wa-float-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: waPulse 2s infinite;
    border: none;
}

.wa-float-main:hover {
    transform: scale(1.1);
}

.wa-float-main .wa-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

@keyframes waPulse {
    0%   { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70%  { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-float-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #333;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wa-float-main:hover .wa-float-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

.wa-float-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 290px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.wa-float-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-panel-header {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-panel-header i {
    font-size: 26px;
}

.wa-panel-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.wa-panel-header p {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.85;
}

.wa-panel-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: background 0.25s ease, transform 0.25s ease;
    border: 1px solid #f0f0f0;
}

.wa-contact:hover {
    background: #e8f8ef;
    transform: translateX(-4px);
}

.wa-contact-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.wa-contact-info {
    flex: 1;
    min-width: 0;
}

.wa-contact-info strong {
    display: block;
    font-size: 13.5px;
    color: #075e54;
}

.wa-contact-info span {
    display: block;
    font-size: 12.5px;
    color: #777;
}

.wa-contact-go {
    color: #25d366;
    font-size: 18px;
    transition: transform 0.25s ease;
}

.wa-contact:hover .wa-contact-go {
    transform: translateX(4px);
}

/* ============================================================
   BUSCADOR DE HOTELES - RESULTADOS BONITOS
   ============================================================ */
.hoteles-results {
    display: none;
    margin: 50px 0 30px;
}

.hoteles-results.show {
    display: block;
    animation: fadeInUp 0.6s ease both;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.results-header h3 {
    font-family: 'Playfair Display', serif;
    color: #004d99;
    margin: 0;
    font-size: 1.6rem;
}

.results-header .results-count {
    background: #f0f8ff;
    color: #004d99;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 14px;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    color: #ccc;
    display: block;
    margin-bottom: 15px;
}

.no-results button {
    margin-top: 15px;
    background: #004d99;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.no-results button:hover {
    background: #00a8ff;
}

/* Tarjetas de resultado con entrada escalonada */
.hoteles-results .hotel-card {
    animation: cardIn 0.6s ease both;
}

.hoteles-results .hotel-card:nth-child(1) { animation-delay: 0.05s; }
.hoteles-results .hotel-card:nth-child(2) { animation-delay: 0.15s; }
.hoteles-results .hotel-card:nth-child(3) { animation-delay: 0.25s; }
.hoteles-results .hotel-card:nth-child(4) { animation-delay: 0.35s; }
.hoteles-results .hotel-card:nth-child(5) { animation-delay: 0.45s; }
.hoteles-results .hotel-card:nth-child(6) { animation-delay: 0.55s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   RESPONSIVE MEJORADO
   ============================================================ */

/* ---------- Footer consistente en todas las páginas ---------- */
.footer {
    background-color: #0d1b2a;
    color: #fff;
    padding: 80px 0 0;
}

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

@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logo-symbol {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.footer-logo .logo-main {
    font-size: 1.5rem;
    color: #fff;
}

.footer-logo .logo-sub {
    font-size: 0.8rem;
    color: #9aa5b1;
}

.footer-about {
    color: #9aa5b1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: #00a8ff;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.links-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.links-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #00a8ff;
}

.links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-column ul li {
    margin-bottom: 12px;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-list a,
.links-column ul li a {
    color: #9aa5b1;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.links-list a:hover,
.links-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.copyright {
    text-align: center;
    color: #9aa5b1;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 992px) {
    .wa-float-panel {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .hoteles-hero h1,
    .cruceros-hero h1,
    .destinos-hero h1,
    .flights-hero h1 {
        font-size: 2.1rem !important;
    }

    .hoteles-hero p,
    .cruceros-hero p,
    .destinos-hero p,
    .flights-hero p {
        font-size: 1rem !important;
    }

    .wa-float-main {
        width: 54px;
        height: 54px;
        font-size: 26px;
    }

    .wa-float {
        bottom: 100px;
        right: 18px;
    }

    .wa-float-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .hoteles-grid,
    .destinos-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Respetar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hero-carousel .carousel-slide,
    .hoteles-hero,
    .cruceros-hero,
    .destinos-hero,
    .flights-hero,
    .contact-hero,
    .vr-hero,
    .wa-float-main {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
   MENÚ MÓVIL MEJORADO (hamburguesa funcional)
   ============================================================ */
.mobile-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 20px;
    z-index: 999;
}

.mobile-nav.show {
    display: block;
    animation: fadeInDown 0.3s ease both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav .nav-item {
    margin-bottom: 12px;
}

.mobile-nav .nav-link {
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    transition: background 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
}

.mobile-nav .nav-link i {
    width: 24px;
    text-align: center;
    color: #3182ce;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
    background-color: #f0f7ff;
    color: #3182ce;
    padding-left: 18px;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: #2d3748;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-button:hover {
    color: #3182ce;
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .header-nav {
        display: none;
    }
    .mobile-menu-button {
        display: block;
    }
    .mobile-nav {
        display: none;
    }
}

/* ============================================================
   CINTA DE AEROLÍNEAS (vuelos.html)
   ============================================================ */
.airline-partners {
    padding: 60px 0;
    background: #f8fafc;
    text-align: center;
}

.airline-partners h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.airlines-subtitle {
    color: #64748b;
    margin-bottom: 35px;
    font-size: 1rem;
}

.airlines-marquee {
    overflow: hidden;
    position: relative;
    padding: 12px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.airlines-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: airlinesScroll 30s linear infinite;
}

.airlines-marquee:hover .airlines-track {
    animation-play-state: paused;
}

@keyframes airlinesScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.airline-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--ac, #334155);
    background: var(--bg, #fff);
    border: 2px solid color-mix(in srgb, var(--ac, #334155) 25%, transparent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.airline-logo i {
    font-size: 1.15rem;
    color: var(--ac, #334155);
}

.airline-logo:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--ac, #334155) 35%, transparent);
    color: var(--ac, #334155);
}

@media (max-width: 768px) {
    .airline-logo {
        padding: 12px 18px;
        font-size: 0.9rem;
        gap: 8px;
    }
}
