/* Westribe - Estilos Premium 2026 */
/* Paleta: #0B2335 (azul) | #D0282F (rojo) */
/* Tipografia: Impact (titulos) | Montserrat (cuerpo) */

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

::selection {
    background-color: #D0282F;
    color: #fff;
}

/* ===== Gradient Text (legible on dark bg) ===== */
.gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, #f5f5f5 60%, #ffd1d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ===== Glassmorphism Card ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Navbar Scrolled ===== */
.navbar-scrolled {
    background: rgba(11, 35, 53, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar-scrolled #nav-inner {
    height: 4rem;
}

.navbar-scrolled #nav-logo {
    height: 2rem;
}

/* ===== Buttons ===== */
.btn-glow {
    box-shadow: 0 0 20px rgba(208, 40, 47, 0.3);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(208, 40, 47, 0.5);
}

/* ===== Form Inputs ===== */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: #374151;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #D0282F;
    box-shadow: 0 0 0 3px rgba(208, 40, 47, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* ===== Noise Overlay ===== */
.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Marquee (Clients) ===== */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

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

/* ===== Swiper Custom Styles ===== */
.swiper-testimonials {
    overflow: hidden;
}

.swiper-testimonials .swiper-slide {
    height: auto;
}

.swiper-testimonials .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 2rem;
}

.swiper-testimonials .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}

.swiper-testimonials .swiper-pagination-bullet-active {
    background: #D0282F;
    width: 24px;
    border-radius: 4px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0B2335; }
::-webkit-scrollbar-thumb { background: #D0282F; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ff4444; }

/* ===== Status ===== */
.form-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== Spinner ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== AOS Fallback ===== */
/* If AOS JS fails to load entirely */
.no-aos [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* Safety: ensure elements above the fold are never stuck invisible.
   AOS adds .aos-init when it processes an element, then .aos-animate when visible.
   If an element has .aos-init but not .aos-animate after 3s, show it. */
@keyframes aos-safety {
    to { opacity: 1; transform: none; }
}
[data-aos].aos-init:not(.aos-animate) {
    animation: aos-safety 0s 3s forwards;
}

/* ===== Screenshot mode (cap hero height, disable animations) ===== */
.screenshot-mode #hero { min-height: 700px !important; }
.screenshot-mode * { animation-play-state: paused !important; }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
