/* ========================================
   PlusFiscal Landing Page - Custom Styles
   ======================================== */

/* Smooth scroll and prevent horizontal overflow */
html, body {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Selection color */
::selection {
    background-color: rgba(99, 102, 241, 0.2);
    color: #1e1b4b;
}

/* ========================================
   NAVBAR STYLES
   ======================================== */
#navbar {
    backdrop-filter: blur(0px);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-text-color {
    color: white;
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text-color {
    color: #111827;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

#navbar.scrolled .nav-link {
    color: #4b5563;
}

#navbar.scrolled .nav-link:hover {
    color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.05);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

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

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-pulse-slow {
    animation: pulse-slow 6s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease forwards;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #c7d2fe;
}

.faq-item.active {
    border-color: #818cf8;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-content.show {
    max-height: 500px;
}

/* ========================================
   COUNTER ANIMATION
   ======================================== */
.counter {
    display: inline-block;
}

/* ========================================
   PRICING CARDS HOVER
   ======================================== */
@media (min-width: 768px) {
    #precios .scale-105 {
        transform: scale(1.05);
    }
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #10b981);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ========================================
   MOBILE MENU ANIMATION
   ======================================== */
#mobile-menu {
    animation: fade-in-up 0.3s ease forwards;
}

/* ========================================
   FORM STYLES
   ======================================== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #9ca3af;
}

/* ========================================
   LOADING STATE
   ======================================== */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ========================================
   RESPONSIVE TWEAKS
   ======================================== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }

    #precios .scale-105 {
        transform: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    #navbar, .fixed, footer {
        display: none;
    }
    body {
        font-size: 12pt;
    }
}
