/* === RUTARED.CL - 100% MOBILE-FIRST DESIGN SYSTEM === */

:root {
    --bg-dark: #090204;
    --card-bg: rgba(24, 6, 13, 0.82);
    --card-border: rgba(255, 23, 68, 0.28);
    --red-primary: #FF1744;
    --red-light: #FF2A4B;
    --gold-accent: #FFD600;
    --text-white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.72);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 23, 68, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 100% 70%, rgba(255, 214, 0, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.5;
    padding-bottom: 90px; /* Espacio para barra inferior móvil */
}

/* Header Móvil Superior */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    z-index: 1000;
    background: rgba(9, 2, 4, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    max-width: 600px;
    height: 100%;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 23, 68, 0.6));
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #FFF;
    line-height: 1;
}

.red-text {
    color: var(--red-primary);
}

.brand-tag {
    font-size: 9px;
    font-weight: 800;
    color: var(--red-light);
    letter-spacing: 0.5px;
}

.nav-btn-apk {
    background: linear-gradient(135deg, var(--red-primary), #D50000);
    color: #FFF;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(255, 23, 68, 0.4);
    transition: transform 0.2s;
}

.nav-btn-apk:active {
    transform: scale(0.95);
}

/* Wrapper Principal Centrado Estilo Celular */
.mobile-wrapper {
    max-width: 540px;
    margin: 0 auto;
    padding: 80px 16px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tarjeta Hero Principal */
.hero-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 28px 20px;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 23, 68, 0.12);
    border: 1px solid var(--card-border);
    color: var(--red-light);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Botón Principal CTA Descargar APK */
.cta-download-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--red-primary), #D50000);
    color: #FFF;
    padding: 16px 20px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
}

.cta-download-btn:active {
    transform: scale(0.98);
}

.cta-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cta-text {
    flex-grow: 1;
    text-align: left;
}

.cta-sub {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
    display: block;
}

.cta-main {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 900;
}

.cta-arrow {
    font-size: 14px;
    opacity: 0.7;
}

/* Quick Specs Row */
.quick-specs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-accent);
}

.spec-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* Smartphone Live Screen Preview */
.screen-preview-card {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 100%;
    max-width: 320px;
    height: 520px;
    background: #000;
    border-radius: 40px;
    padding: 10px;
    border: 2.5.dp solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 50px rgba(255, 23, 68, 0.35);
    position: relative;
}

.phone-notch {
    width: 100px;
    height: 18px;
    background: #000;
    border-radius: 0 0 12px 12px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.app-screen {
    width: 100%;
    height: 100%;
    background: #0B0307;
    border-radius: 30px;
    padding: 22px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.turn-banner {
    background: rgba(30, 5, 12, 0.95);
    border: 1.5px solid var(--red-primary);
    border-radius: 16px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.turn-arrow {
    width: 36px;
    height: 36px;
    background: rgba(255, 23, 68, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gold-accent);
}

.turn-info {
    display: flex;
    flex-direction: column;
}

.turn-distance {
    font-size: 9px;
    font-weight: 900;
    color: var(--red-primary);
    letter-spacing: 0.5px;
}

.turn-street {
    font-size: 12px;
    font-weight: 800;
    color: #FFF;
}

/* Simulated Map Canvas */
.simulated-map {
    flex-grow: 1;
    margin: 8px 0;
    background: #14050A;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.route-polyline {
    position: absolute;
    width: 6px;
    height: 80%;
    background: var(--red-primary);
    top: 10%;
    left: 48%;
    border-radius: 3px;
    box-shadow: 0 0 14px var(--red-primary);
}

.bus-cursor {
    position: absolute;
    top: 50%;
    left: 48%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--red-primary);
    border-radius: 50%;
    border: 2px solid #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 14px;
    box-shadow: 0 0 16px var(--red-primary);
    animation: busPulse 2s infinite;
}

@keyframes busPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.street-label {
    position: absolute;
    top: 32%;
    left: 48%;
    transform: translate(-50%, -100%);
    background: var(--red-primary);
    color: #FFF;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.speedometer {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    background: #000;
    border: 2px solid var(--red-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.speed-number {
    font-size: 11px;
    font-weight: 900;
    color: #FFF;
    line-height: 1;
}

.speed-unit {
    font-size: 7px;
    color: var(--red-primary);
    font-weight: 800;
}

.route-footer {
    background: rgba(20, 5, 10, 0.95);
    border-radius: 14px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.service-code {
    background: var(--red-primary);
    color: #FFF;
    font-weight: 900;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 5px;
}

.service-destination {
    font-size: 11px;
    font-weight: 800;
    color: #FFF;
}

.stop-info {
    font-size: 9px;
    color: var(--text-muted);
}

/* Sections */
.section-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.section-subtitle {
    font-size: 10px;
    font-weight: 800;
    color: var(--red-primary);
    letter-spacing: 1px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
}

/* Feature Mobile Cards */
.feature-mobile-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.red-glow {
    background: rgba(255, 23, 68, 0.15);
    color: var(--red-primary);
    border: 1px solid var(--card-border);
}

.gold-glow {
    background: rgba(255, 214, 0, 0.12);
    color: var(--gold-accent);
    border: 1px solid rgba(255, 214, 0, 0.3);
}

.feature-content h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Membership Cards */
.membership-mobile-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 24px 18px;
    position: relative;
}

.featured-card {
    background: linear-gradient(180deg, rgba(42, 5, 15, 0.95) 0%, rgba(18, 2, 6, 0.95) 100%);
    border: 2px solid var(--red-primary);
    box-shadow: 0 8px 30px rgba(255, 23, 68, 0.25);
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--red-primary);
    color: #FFF;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.plan-header {
    margin-bottom: 16px;
}

.plan-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    color: var(--gold-accent);
}

.old-price {
    font-size: 15px;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.45);
    margin-right: 6px;
    font-weight: 700;
}

.plan-price-free {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-muted);
}

.plan-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-list li {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-red {
    color: var(--red-primary);
}

.check-gray {
    color: #888;
}

.off-item {
    opacity: 0.45;
}

/* Install Box */
.install-box {
    background: rgba(30, 4, 10, 0.9);
    border: 1.5px solid var(--red-primary);
    border-radius: 22px;
    padding: 20px;
}

.install-box h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.step-num {
    width: 22px;
    height: 22px;
    background: var(--red-primary);
    color: #FFF;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Sticky Bottom Bar */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9, 2, 4, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--card-border);
    padding: 10px 16px;
}

.sticky-download-btn {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--red-primary), #D50000);
    color: #FFF;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 900;
    padding: 14px;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.5);
}

/* Footer Móvil */
.mobile-footer {
    max-width: 540px;
    margin: 0 auto;
    padding: 24px 16px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.footer-logo {
    height: 26px;
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 18px;
}

.mobile-footer p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.copyright {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}
