/* 
   SaludApps Public Design System
   Modern Medical Tech Aesthetic
*/

:root {
    --primary: #0D6EFD;
    --primary-dark: #0045A5;
    --primary-light: #E7F0FF;
    --secondary: #0F172A;
    --accent: #10B981;
    --emergency: #EF4444;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --bg-light: #F1F5F9;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.75);
    --glass-dark: rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 25px 50px -12px rgba(13, 110, 253, 0.25);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    padding: 1.25rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
}

.navbar.navbar-scrolled {
    padding: 0.75rem 0;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    padding: 0.5rem 1.4rem !important; /* Más espacio */
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem; /* Ajuste sutil */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 1.2rem;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2.4rem);
}

/* Buttons */
.btn-primary-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.3);
    color: white;
    filter: brightness(1.1);
}

.btn-download {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/* Hero Section Premium */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    background-color: var(--white);
    background-image: 
        radial-gradient(at 0% 0%, rgba(13, 110, 253, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.03) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(13, 110, 253, 0.02) 0px, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

/* Cards */
.stat-label {
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.modern-card {
    border: 1px solid rgba(13, 110, 253, 0.05);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 3rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.modern-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px -20px rgba(13, 110, 253, 0.15);
    background: white;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.modern-card:hover .card-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(13, 111, 253, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { 
    background: #cbd5e1; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Pulse animation */
@keyframes pulse-primary {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

.btn-pulse {
    animation: pulse-primary 2s infinite;
}

.floating-decoration {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    border-radius: 50%;
}

/* Stats & Backgrounds */
/* Stats Floating Card */
.stats-box {
    background: white;
    padding: 60px 0;
    color: var(--secondary);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-premium);
}

.stat-num {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5rem;
    font-weight: 900;
}

.bg-primary-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.bg-white-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat-num {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 80px;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Helper Utilities */
.ls-wide {
    letter-spacing: 1px;
}

.extra-small {
    font-size: 0.7rem;
}

.text-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive */
@media (max-width: 991px) {
    .hero {
        padding-top: 140px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   COMPONENTES PREMIUM (V2.0)
   ========================================================================== */

/* TIMELINE CÓMO FUNCIONA */
.timeline-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 60px;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 45px;
    bottom: -45px;
    width: 3px;
    background: var(--blue-gradient);
    opacity: 0.2;
}

.timeline-step:last-child::before { display: none; }

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background-color: var(--primary); /* Fallback sólido */
    background-image: var(--blue-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.3);
    z-index: 2;
}

/* MARQUEE ALIADOS */
.marquee-container {
    padding: 60px 0;
    background: white;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.marquee-content {
    display: inline-block;
    animation: marquee 40s linear infinite;
}

.partner-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 60px;
    opacity: 0.4;
    transition: all 0.3s;
    font-weight: 700;
    font-size: 1.3rem;
    color: #475569;
}

.partner-logo:hover { opacity: 0.8; transform: scale(1.05); }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* FAQ ACCORDION PREMIUM */
.faq-glass {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-glass:hover {
    background: white !important;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.accordion-button {
    background: transparent !important;
    color: var(--secondary) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    padding: 1.5rem !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary) !important;
    background: rgba(13, 110, 253, 0.02) !important;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem 1.5rem !important;
    color: #64748b;
    line-height: 1.6;
}