/* ═══════════════════════════════════════════
   RESET Y VARIABLES
   ═══════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0B3D91;
    --primary-dark: #062A66;
    --primary-light: #1E5BC6;
    --secondary: #00C853;
    --secondary-dark: #00A344;
    --accent: #2196F3;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --background: #F5F8FC;
    --surface: #FFFFFF;
    --divider: #E2E8F0;
    --shadow: 0 4px 12px rgba(11, 61, 145, 0.08);
    --shadow-lg: 0 20px 40px rgba(11, 61, 145, 0.12);
    --radius: 16px;
    --radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-bottom-color: var(--divider);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 22px;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 22px;
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #F5F8FC 0%, #E3EAF7 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(11, 61, 145, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: var(--surface);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: rgba(0, 200, 83, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 24px rgba(11, 61, 145, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(11, 61, 145, 0.35);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ═══ MOCKUP DEL TELÉFONO ═══ */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 100px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-preview {
    padding: 30px 20px 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-logo {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.app-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-title strong {
    font-size: 14px;
    color: var(--text-primary);
}

.app-title small {
    font-size: 11px;
    color: var(--text-secondary);
}

.app-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 200, 83, 0.15);
    color: #00A344;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    align-self: flex-start;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.app-qr {
    flex: 1;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.qr-placeholder {
    width: 70%;
    height: 70%;
    background: 
        linear-gradient(45deg, #0B3D91 25%, transparent 25%),
        linear-gradient(-45deg, #0B3D91 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #0B3D91 75%),
        linear-gradient(-45deg, transparent 75%, #0B3D91 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 8px;
}

.app-payment {
    background: white;
    border-radius: 16px;
    padding: 14px;
    border: 2px solid var(--secondary);
    animation: slideIn 1s ease;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-icon {
    width: 32px;
    height: 32px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.payment-header small {
    display: block;
    font-size: 9px;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.payment-header strong {
    display: block;
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 800;
}

.payment-detail {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    padding-top: 8px;
    border-top: 1px solid var(--divider);
}

/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */
.features {
    padding: 100px 0;
    background: var(--surface);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--background);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
    border-color: var(--divider);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   CÓMO FUNCIONA
   ═══════════════════════════════════════════ */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(135deg, #F5F8FC 0%, #E3EAF7 100%);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--primary);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(11, 61, 145, 0.25);
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ═══════════════════════════════════════════
   SEGURIDAD
   ═══════════════════════════════════════════ */
.security {
    padding: 100px 0;
    background: var(--surface);
}

.security-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.security-text h2 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 16px 0;
    line-height: 1.2;
}

.security-text > p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 32px;
}

.security-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.check {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: rgba(0, 200, 83, 0.15);
    color: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.security-list strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.security-list p {
    color: var(--text-secondary);
    font-size: 14px;
}

.security-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-shield {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 60px rgba(11, 61, 145, 0.3);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.shield-icon {
    font-size: 120px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* ═══════════════════════════════════════════
   DESCARGA
   ═══════════════════════════════════════════ */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.download > .container > .download-content > p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.btn-google-play {
    display: inline-block;
    transition: transform 0.3s;
    margin-bottom: 16px;
}

.btn-google-play:hover {
    transform: translateY(-4px) scale(1.02);
}

.download-note {
    opacity: 0.8;
    font-size: 14px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    background: #0A1628;
    color: #94A3B8;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.footer-disclaimer {
    font-size: 12px;
    opacity: 0.7;
    max-width: 500px;
    text-align: right;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 992px) {
    .hero-content,
    .security-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 { font-size: 42px; }
    .section-header h2 { font-size: 34px; }
    .security-text h2 { font-size: 32px; }
    .download h2 { font-size: 36px; }

    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .security-list { text-align: left; }
    .security-image { order: -1; }
    .security-shield { width: 200px; height: 200px; }
    .shield-icon { font-size: 80px; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-disclaimer { text-align: left; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: flex; }
    .hero { padding: 100px 0 60px; }
    .hero h1 { font-size: 34px; }
    .btn { padding: 14px 24px; font-size: 14px; }
    .features, .how-it-works, .security, .download { padding: 60px 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 28px; }
    .section-header h2 { font-size: 26px; }
    .phone-mockup { width: 240px; height: 480px; }
    .footer-grid { grid-template-columns: 1fr; }
}