/* ============================================
   ELECTA ANALYTICS - HOME MODERN CSS
   Diseño moderno para landing page
   ============================================ */

/* Variables CSS - Navy Blue + Sky Blue accent */
:root {
    --primary-color: #1e293b;
    --primary-light: #38bdf8;
    --primary-dark: #111827;
    --secondary-color: #475569;
    --text-dark: #111827;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset y Base */
.home-modern {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.container-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand-modern:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.brand-text {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.brand-text strong {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(160deg, #f8fafc 0%, #eff6ff 40%, #f1f5f9 100%);
    opacity: 0.7;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.gradient-text {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: white;
    text-decoration: none;
}

.btn-secondary-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.btn-secondary-modern:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    text-decoration: none;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 0 0 auto;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* Hero Visual - Floating Cards */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 200px;
    right: 100px;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: 100px;
    left: 100px;
    animation-delay: 2s;
}

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

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(56, 189, 248, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 500;
}

.card-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.card-value.positive {
    color: var(--primary-light);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-left-color: #38bdf8;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(17, 24, 39, 0.08));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #38bdf8;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 32px 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e293b, #38bdf8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.step-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 40px;
}

/* ============================================
   MORE FEATURES SECTION
   ============================================ */
.more-features-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.feature-list-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.feature-list-item:last-child {
    border-bottom: none;
}

.feature-list-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(56, 189, 248, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-list-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.feature-list-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   ELECTION DAY SECTION
   ============================================ */
.election-day-section {
    padding: 100px 0;
    background: #f8fafc;
}

.election-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.election-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

.election-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.election-stat-card {
    background: white;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.election-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #38bdf8;
}

.election-stat-icon {
    margin-bottom: 12px;
}

.election-stat-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.election-stat-label {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   TECHNOLOGY SECTION
   ============================================ */
.tech-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.tech-logo {
    padding: 16px 32px;
    background: white;
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.tech-logo:hover {
    color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: #111827;
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 38px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #1e293b, #38bdf8);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
    color: white;
    text-decoration: none;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: #111827;
    padding: 48px 0;
}

.stats-bar-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.stats-bar-item {
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.stats-bar-icon {
    color: #38bdf8;
    margin-bottom: 12px;
}

.stats-bar-number {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.stats-bar-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.trust-logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.trust-logo-item:hover {
    opacity: 1;
}

.trust-logo-item svg {
    color: var(--primary-color);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-modern {
    background: #1e293b;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 600;
}

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-tech {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .hero-title {
        font-size: 38px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-visual {
        display: none;
    }

    .section-title {
        font-size: 32px;
    }

    .cta-title {
        font-size: 30px;
    }

    .stats-bar-grid {
        gap: 24px;
    }

    .stats-bar-number {
        font-size: 28px;
    }

    .trust-logos {
        gap: 32px;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .election-stats-grid {
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .container-nav {
        padding: 0 1rem;
    }

    .brand-text {
        font-size: 20px;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-title {
        font-size: 26px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .stats-bar-grid {
        gap: 20px;
    }

    .stats-bar-item {
        min-width: 120px;
    }

    .stats-bar-number {
        font-size: 24px;
    }

    .trust-logos {
        gap: 20px;
    }

    .trust-logo-item {
        font-size: 14px;
    }

    .tech-logos {
        gap: 16px;
    }

    .tech-logo {
        padding: 12px 24px;
        font-size: 14px;
    }

    .election-day-section .section-title {
        text-align: center !important;
    }

    .election-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 28px;
    }

    .stats-bar-number {
        font-size: 22px;
    }

    .stats-bar-item {
        min-width: 100px;
        flex: 0 0 calc(50% - 16px);
    }

    .feature-card {
        padding: 24px;
    }

    .election-stats-grid {
        grid-template-columns: 1fr;
    }

    .how-it-works-section,
    .more-features-section,
    .election-day-section {
        padding: 60px 0;
    }
}
