/* ============================================================
   VALPO ASCENSORES — Custom Styles
   css/styles.css
   ============================================================ */

/* Base typography */
body { font-family: "Plus Jakarta Sans", sans-serif; }

/* Glass panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Emergency pulse */
.emergency-pulse { animation: pulse-red 2s infinite; }
@keyframes pulse-red {
    0%   { box-shadow: 0 0 0 0    rgba(183, 16, 42, 0.7); }
    70%  { box-shadow: 0 0 0 15px rgba(183, 16, 42, 0); }
    100% { box-shadow: 0 0 0 0    rgba(183, 16, 42, 0); }
}

/* Lift on hover */
.lift-on-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.lift-on-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border-color: #b7102a;
}

/* Client logos infinite scroll */
.logos-track {
    display: flex;
    width: max-content;
    animation: scroll-logos 28s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }
@keyframes scroll-logos {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.logos-wrapper {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Stat counter gradient text */
.stat-number {
    background: linear-gradient(135deg, #ffffff 0%, #b9c7e4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Testimonial card */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(0,0,0,0.08);
}

/* WhatsApp floating button */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    background: #25D366;
    color: white;
    border-radius: 9999px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}
.whatsapp-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 32px rgba(37,211,102,0.6);
}
.whatsapp-btn svg { width: 32px; height: 32px; fill: white; }

/* === NAVBAR & HEADER === */
#main-header {
    background-color: transparent;
    transition: background-color 0.3s ease,
                backdrop-filter 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}
#main-header.scrolled-header {
    background-color: rgba(10, 25, 47, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-item {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}
.nav-item.active {
    color: #ffffff;
    background: rgba(183, 16, 42, 0.2);
    border: 1px solid rgba(183, 16, 42, 0.4);
}

/* Mobile drawer */
#mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 85vw);
    height: 100vh;
    background: #07111e;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}
#mobile-drawer.open { transform: translateX(0); }

#drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#drawer-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.drawer-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding-left: 22px;
}

/* Map iframe */
.map-container iframe {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 0.75rem;
}

/* Section fade-in on scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Lightbox Modal ───────────────────────────────────────── */
#image-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}
#image-lightbox-modal.active #lightbox-img {
    opacity: 1;
    transform: scale(1);
}
.lightbox-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lightbox-item:hover {
    transform: translateY(-4px);
}
