html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem #258cfb;
}

body {
    margin: 0;
    padding: 0;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =============================== */
/*     HERO ULTRA PREMIUM STYLE    */
/* =============================== */

.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
    animation: parallaxMove 25s infinite alternate ease-in-out;
}

@keyframes parallaxMove {
    0% {
        transform: scale(1.05) translateY(-20px);
    }

    100% {
        transform: scale(1.10) translateY(20px);
    }
}

.shimmer {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

    .shimmer::before {
        content: "";
        position: absolute;
        top: 0;
        left: -150%;
        width: 150%;
        height: 100%;
        background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
        animation: shimmerMove 3s infinite;
    }

@keyframes shimmerMove {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

.hero-title {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease-out forwards;
}

.hero-sub {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.6s ease-out forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-ultra {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .btn-ultra::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .btn-ultra:hover::after {
        opacity: 0.15;
    }

    .btn-ultra:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }

    .btn-ultra:active {
        transform: scale(0.97);
    }

/* =============================== */
/*          ULTRA PREMIUM MENU     */
/* =============================== */

.menu-ultra {
    position: relative;
    padding-bottom: 6px;
    transition: color 0.35s ease, transform 0.35s ease, text-shadow 0.35s ease;
}

    .menu-ultra::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 0%;
        height: 2px;
        background: linear-gradient(to right, #14b8a6, #3b82f6);
        border-radius: 999px;
        transition: all 0.4s ease;
        transform: translateX(-50%);
        opacity: 0;
    }

    .menu-ultra:hover::after,
    .menu-ultra:focus-visible::after {
        width: 70%;
        opacity: 1;
    }

    .menu-ultra:hover,
    .menu-ultra:focus-visible {
        text-shadow: 0 0 18px rgba(20, 184, 166, 0.35);
        transform: translateY(-2px);
    }

    .menu-ultra:focus-visible {
        outline: none;
    }

/* =============================== */
/*    ULTRA PREMIUM SOCIAL ICONS   */
/* =============================== */

.social-ultra {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 0 8px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease, transform 0.2s ease;
}

    .social-ultra:hover {
        transform: translateY(-4px) scale(1.12);
        box-shadow: 0 10px 30px rgba(20, 184, 166, 0.35), 0 0 15px rgba(59, 130, 246, 0.45), inset 0 0 10px rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.45);
    }

    .social-ultra:active {
        transform: scale(0.95);
    }

#mainNav.bg-white .social-ultra {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
}

    #mainNav.bg-white .social-ultra:hover {
        color: #0f172a;
    }

/* =============================== */
/*         FILTROS VIAJES          */
/* =============================== */

.filtro-btn {
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

    .filtro-btn:hover,
    .filtro-btn:focus-visible {
        background: linear-gradient(to right, #14b8a6, #3b82f6);
        transform: translateY(-2px);
        outline: none;
    }

    .filtro-btn.active {
        background: linear-gradient(to right, #14b8a6, #3b82f6);
    }

/* =============================== */
/*        ESTADOS FORMULARIO       */
/* =============================== */

.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.error-text {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 6px;
}

/* =============================== */
/*        AJUSTES RESPONSIVE       */
/* =============================== */

@media (max-width: 991.98px) {
    .parallax-bg {
        animation-duration: 18s;
    }
}

@media (max-width: 767.98px) {
    .social-ultra {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .filtro-btn {
        padding: 9px 16px;
        font-size: 0.95rem;
    }

    .hero-title,
    .hero-sub {
        animation-duration: 0.9s;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .parallax-bg,
    .shimmer::before,
    .hero-title,
    .hero-sub {
        animation: none !important;
    }

    .btn-ultra,
    .menu-ultra,
    .social-ultra,
    .filtro-btn {
        transition: none !important;
    }
}
