/* 
 * UI Global Styles - Replicates Frontendv2 Design System
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --color-primary: #FF5722;
    --color-primary-hover: #E64A19;
    --color-black: #121212;
    --color-white: #ffffff;
    --color-surface: #ffffff;
    --color-background: #f8f9fa;
    --color-text: #2d3436;
    --color-text-light: #636e72;
    --color-border: #e9ecef;
    --color-success: #00b894;
    --color-error: #ff7675;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    --header-height: 100px;
    --border-radius: 12px;

    /* --- Escala de pesos tipográficos --- */
    --fw-light:    300;
    --fw-regular:  400;
    --fw-medium:   500;
    --fw-semibold: 600;
    --fw-bold:     700;
    --fw-extrabold:800;

    /* --- Escala modular de tamaños --- */
    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;

    /* --- Sistema 8pt de espaciado --- */
    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.25rem;
    --sp-6:  1.5rem;
    --sp-8:  2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: var(--fw-regular);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

p {
    font-weight: var(--fw-regular);
    line-height: 1.65;
}

h1 { font-size: var(--text-5xl);  font-weight: var(--fw-extrabold); letter-spacing: -0.03em;  line-height: 1.05; }
h2 { font-size: var(--text-4xl);  font-weight: var(--fw-bold);      letter-spacing: -0.025em; line-height: 1.1;  }
h3 { font-size: var(--text-2xl);  font-weight: var(--fw-semibold);  letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-size: var(--text-xl);   font-weight: var(--fw-semibold);  letter-spacing: -0.01em; }
h5 { font-size: var(--text-base); font-weight: var(--fw-medium); }
h6 { font-size: var(--text-sm);   font-weight: var(--fw-medium); }

input, button, select, textarea {
    font-family: inherit;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--fw-bold);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--color-black);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    font-family: inherit;
    gap: 0.5rem;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    background-color: var(--color-primary);
    color: white;
    padding: 0.7rem 1.75rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    width: fit-content;
    max-width: 220px;
    white-space: nowrap;
    margin-top: 1.25rem;
}

.btn-pill:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 87, 34, 0.4);
}

.btn-hero-solid {
    background-color: var(--color-primary);
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    display: inline-block;
}

.btn-hero-outline {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid #ffffff;
    display: inline-block;
}

.btn-hero-solid:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(255, 87, 34, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* --- Header --- */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    display: flex;
    align-items: center;
}

.header.scrolled {
    background-color: #000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 0.6rem 0;
    height: 90px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 250px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.header.scrolled .logo-img {
    width: 210px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-black);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link-btn {
    background: none;
    border: none;
    text-decoration: none;
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    cursor: pointer;
    font-family: inherit;
}

.header.scrolled .nav-link-btn {
    color: #fff;
}

.nav-link-btn:hover {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.desktop-only { display: inline-flex; }
.mobile-only { display: none; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 5px;
}

.header.scrolled .mobile-toggle {
    color: var(--color-black);
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: inline-flex !important; }
    
    .mobile-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links .nav-link-btn {
        color: var(--color-black) !important;
        font-size: 1.1rem;
        width: 100%;
        text-align: left;
    }
    
    .header.scrolled {
        height: 70px;
    }
    
    .nav-links.active {
        top: 70px;
    }
}

/* --- Hero --- */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    color: var(--color-white);
    display: flex;
    align-items: center;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: var(--fw-extrabold);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease backwards;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: var(--fw-light);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.mascot-container {
    position: absolute;
    right: 18%;
    bottom: 12%;
    width: 480px;
    z-index: 5;
    pointer-events: none;
    transition: all 0.5s ease;
}

.mascot-img {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.logo-img { 
    height: auto; 
    width: 250px; 
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.1));
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ===================================
   STATS STRIP — Premium dark section
   =================================== */
.stats-strip {
    width: 100%;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 87, 34, 0.4), transparent);
}

.stats-strip::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 87, 34, 0.2), transparent);
}

.stats-strip-inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 32px 48px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.strip-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: center;
}

.strip-icon {
    background: #281a17;
    border: 1px solid rgba(255, 87, 34, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF5722;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatIcon 4s ease-in-out infinite;
}

.strip-stat:nth-child(2) .strip-icon { animation-delay: 0.5s; }
.strip-stat:nth-child(4) .strip-icon { animation-delay: 1s; }
.strip-stat:nth-child(6) .strip-icon { animation-delay: 1.5s; }
.strip-stat:nth-child(8) .strip-icon { animation-delay: 2s; }

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

.strip-stat:hover .strip-icon {
    transform: scale(1.1) translateY(-8px);
    background: #32211d;
    border-color: rgba(255, 87, 34, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.strip-number {
    font-size: 2rem;
    font-weight: var(--fw-extrabold);
    color: #ffffff;
    line-height: 1;
    display: block;
}

.strip-label {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
    display: block;
    margin-top: 2px;
}

.strip-divider {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 0 8px;
}

/* --- Carousel Banner --- */
.carousel-banner-section {
    padding: 0;
    background-color: var(--color-background);
}

.carousel-banner-section .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.carousel-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.carousel-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 460px;
}

.carousel-split {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-color, #0a0a0a);
}

.slide-bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; transition: transform 8s ease;
}

.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, var(--bg-color, #0a0a0a) 0%, rgba(0,0,0,0.88) 28%, rgba(0,0,0,0.55) 52%, transparent 100%);
    z-index: 1;
}

.promo-side {
    position: relative;
    z-index: 2;
    width: 56%;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    height: 100%;
}

.badge-live {
    background: var(--accent-color, #60a5fa);
    color: #000; font-size: 0.68rem; font-weight: 800; padding: 5px 14px; border-radius: 4px; text-transform: uppercase;
}

.promo-store-label {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 4px; color: var(--accent-color, #60a5fa); margin: 1rem 0 0.5rem;
}

.promo-side h2 {
    font-size: 3rem; font-weight: 900; line-height: 1.0; margin-bottom: 0.6rem;
}

.promo-subtitle {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 3px; color: rgba(255, 255, 255, 0.55); text-transform: uppercase;
}

/* --- Navigation Buttons --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

.carousel-btn:hover {
    background: rgba(255, 87, 34, 0.85);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

/* --- Numeric Counter Removed in favor of Dots --- */
.carousel-counter {
    display: none;
}

/* --- Favorite Stores --- */
.favorite-stores-section { padding: 3rem 0; background-color: var(--color-background); }
.stores-title { font-size: 1.5rem; font-weight: 700; color: #1976D2; margin-bottom: 1.5rem; }
.stores-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; margin-bottom: 2rem; }
.store-card { background: #fff; border: 1px solid var(--color-border); border-radius: 8px; height: 60px; display: flex; align-items: center; justify-content: center; padding: 0.5rem; transition: all 0.2s; }
.store-card:hover { transform: translateY(-2px); border-color: #1976D2; box-shadow: var(--shadow-md); }
.store-logo { max-width: 100%; max-height: 35px; object-fit: contain; }
.stores-disclaimer { background: #E3F2FD; padding: 1rem; border-radius: 4px; text-align: center; color: #1976D2; font-weight: 500; font-size: 0.9rem; }

/* --- Refined Tracking --- */
.tracking-progress-container { margin-top: 2rem; position: relative; }
.progress-track { height: 6px; background: #eee; border-radius: 10px; position: relative; margin-bottom: 2rem; }
.progress-line { height: 100%; background: var(--color-primary); border-radius: 10px; }
.progress-steps { display: flex; justify-content: space-between; position: absolute; top: -8px; width: 100%; }
.step-item { display: flex; flex-direction: column; align-items: center; }
.step-circle { width: 22px; height: 22px; border-radius: 50%; background: #eee; border: 4px solid #fff; z-index: 10; }
.step-item.active .step-circle { background: var(--color-primary); }
.step-label { font-size: 0.75rem; color: #888; margin-top: 8px; font-weight: 600; }
.step-item.active .step-label { color: var(--color-black); }

/* --- Services --- */
.services-section { padding: var(--spacing-xl) 0; background: #fff; }
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem; 
    margin-bottom: 5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.service-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px 24px 0 0;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon { 
    color: var(--color-primary); 
    margin-bottom: 2rem; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: #fff5f2;
    border-radius: 50%;
    width: 64px;
    height: 64px;
}
.service-title { font-size: 1.2rem; font-weight: var(--fw-semibold); margin-bottom: 1rem; color: var(--color-black); letter-spacing: -0.01em; }
.service-description { 
    font-size: 0.95rem; 
    color: var(--color-text-light); 
    margin-bottom: 1.5rem; 
    text-align: center;
    line-height: 1.6;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}
.service-stat { 
    font-size: 0.85rem; 
    font-weight: 700; 
    color: #e64a19; 
    background: #fff5f2;
    padding: 8px 16px;
    border: 1px solid #ffebea;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: auto auto 0;
}
.service-stat i {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); max-width: 700px; }
}
@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* Capital Peruano Card */
.capital-peruano-card {
    max-width: 950px;
    margin: 4rem auto 0;
    text-align: center;
    background: linear-gradient(135deg, #fff 60%, #ffeaea);
    display: flex;
    flex-direction: column;
    padding: 3.5rem;
    border: 1px solid #ffeaea;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}
.peru-flag-shadow {
    position: absolute;
    top: 50%;
    right: 0%;
    transform: translateY(-50%);
    font-size: 180px;
    font-weight: 900;
    color: #000;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.capital-title { 
    font-size: 2.2rem; 
    font-weight: 800; 
    margin-bottom: 2rem; 
    color: var(--color-primary); 
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.capital-description { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: var(--color-text-light); 
    max-width: 680px; 
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}
.capital-description strong {
    color: var(--color-primary);
}

/* --- WhatsApp Button --- */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.whatsapp-button:hover { transform: scale(1.1) rotate(5deg); }
.whatsapp-icon-bg {
    background-color: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* --- Tracking & Calculator --- */
.tracking-section { 
    padding: var(--spacing-xl) 0; 
    background: #000; 
    color: var(--color-white); 
}
.tracking-container { max-width: 700px; margin: 0 auto; }
.tracking-form { 
    display: flex; gap: 1rem; margin-bottom: 2.5rem; 
    background: rgba(255,255,255,0.05); padding: 0.75rem; border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}
.tracking-input { 
    flex: 1; padding: 1.2rem; border-radius: 12px; border: none; 
    font-size: 1rem; background: rgba(255,255,255,1); outline: none;
    font-weight: 600; color: #1e293b;
}

.tracking-progress-container { margin-top: 2rem; position: relative; padding: 20px 0; }
.progress-track { height: 8px; background: #f1f5f9; border-radius: 10px; position: relative; margin-bottom: 2.5rem; }
.progress-line { height: 100%; background: var(--color-primary); border-radius: 10px; transition: width 1s ease; }
.progress-steps { display: flex; justify-content: space-between; position: absolute; top: 10px; width: 100%; }
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-dot.active {
    width: 24px;
    border-radius: 10px;
    background: var(--color-primary);
}
.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; }
.step-circle { 
    width: 26px; height: 26px; border-radius: 50%; background: #fff; 
    border: 3px solid #f1f5f9; z-index: 10; transition: all 0.3s;
}
.step-item.active .step-circle { background: var(--color-primary); border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.2); }
.step-label { font-size: 0.75rem; color: #64748b; margin-top: 12px; font-weight: 700; text-transform: uppercase; }
.step-item.active .step-label { color: #f1f5f9; }

.calculator-section { padding: var(--spacing-xl) 0; background: #fff; }
.calculator-card {
    background: #fff; padding: 3rem 4rem; border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04); max-width: 1000px; margin: 0 auto;
    border: 1px solid #f0f0f0;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calculator-inputs .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.calculator-inputs label {
    font-weight: var(--fw-semibold);
    color: #1a202c;
    font-size: 0.875rem;
}

.calculator-inputs input {
    padding: 1.25rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    font-size: 1rem;
    font-weight: var(--fw-regular);
    color: #4a5568;
    background: #fff;
    transition: all 0.3s;
}

.calculator-inputs input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.1);
    outline: none;
}

.calculator-results-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}

.results-title {
    font-size: 1rem;
    font-weight: var(--fw-semibold);
    margin-bottom: 2rem;
    color: #1a202c;
    letter-spacing: -0.01em;
}

.results-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    font-weight: var(--fw-regular);
    color: #4a5568;
}

.results-divider {
    border-top: 2px dashed #e2e8f0;
    margin: 2rem 0;
}

.total-section {
    margin-bottom: 1.5rem;
}

.total-label {
    display: block;
    font-weight: var(--fw-semibold);
    font-size: var(--text-sm);
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.total-price {
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.results-note {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.5;
    margin-top: 1rem;
}

/* --- Footer --- */
.footer { 
    background: #000; 
    color: #f8fafc; 
    padding: 6rem 0 0; 
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1.5fr; 
    gap: 5rem; 
    padding-bottom: 4rem;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}
.brand-white { color: #fff; }
.brand-orange { color: var(--color-primary); }

.footer-description { 
    color: #94a3b8; 
    line-height: 1.6; 
    font-size: 0.95rem; 
    margin-bottom: 2rem; 
    max-width: 320px; 
}

.footer-social-simple { display: flex; gap: 0.8rem; }
.social-icon-circle {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; color: #fff;
    transition: all 0.3s; text-decoration: none;
}
.social-icon-circle:hover { background: var(--color-primary); transform: translateY(-2px); }


.footer-title {
    font-size: 0.9rem; font-weight: var(--fw-semibold); color: #fff; margin-bottom: 2rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    position: relative; padding-bottom: 12px;
}
.footer-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--color-primary);
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 1.2rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; transition: all 0.2s; font-weight: var(--fw-regular); font-size: 0.9rem; }
.footer-links a:hover { color: #fff; padding-left: 5px; font-weight: var(--fw-medium); }

.footer-contact-list { list-style: none; padding: 0; }
.footer-contact-list li { 
    display: flex; gap: 1rem; margin-bottom: 1.5rem; 
    color: #cbd5e1; font-size: 0.95rem; line-height: 1.5;
}
.footer-contact-list i { color: var(--color-primary); flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: var(--sp-8) 0;
    text-align: center;
}
.footer-bottom p {
    line-height: 1.5;
}
.footer-bottom .footer-ruc {
    color: #64748b;
    font-size: var(--text-xs);
    margin-bottom: var(--sp-1);
}
.footer-bottom .footer-copy {
    color: #475569;
    font-size: var(--text-xs);
}

/* --- Mobile --- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-links, .header-actions { display: none; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .stats-strip-inner { flex-direction: column; gap: 2rem; padding: 3rem 2rem; }
    .strip-divider { display: none; }
    .strip-stat { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1.5rem; }
    .strip-stat:last-child { border-bottom: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .capital-description { font-size: 1rem; max-width: 100%; }
    .whatsapp-button { bottom: 20px; right: 20px; }
    .whatsapp-icon-bg { width: 55px; height: 55px; }
}

/* ================================================
   TRACKING RESULT CARD (Landing)
   ================================================ */
.tracking-result {
    display: none;
    background: white;
    border-radius: 20px;
    padding: var(--sp-10);
    color: #111;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.04);
    animation: fadeInUp 0.4s ease;
}
.tracking-result.visible { display: block; }

/* ================================================
   CALCULATOR HEADER (Landing)
   ================================================ */
.calculator-header {
    text-align: center;
    margin-bottom: var(--sp-12);
}
.calculator-header .section-title {
    margin: 0;
    font-size: var(--text-4xl);
}
.calculator-header .calc-desc {
    margin-top: var(--sp-4);
    font-size: var(--text-lg);
    color: var(--color-text-light);
}
.calculator-header .calc-note {
    display: block;
    color: #888;
    font-size: var(--text-sm);
    margin-top: var(--sp-1);
}

/* ================================================
   TRACKING SECTION — Dark overrides
   ================================================ */
.tracking-section .section-title {
    color: #fff;
    border-bottom: none;
}
.tracking-section .section-subtitle {
    color: rgba(255,255,255,0.6);
}

/* ================================================
   LOGIN PAGE
   ================================================ */
.login-body {
    background: radial-gradient(circle at 30% 45%, #1a1a1a 0%, #0a0a0a 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.btn-back-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s;
    z-index: 10;
}
.btn-back-home:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.whatsapp-login {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
    transition: transform 0.3s;
    text-decoration: none;
}
.whatsapp-login:hover { transform: scale(1.1); }

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    animation: fadeIn 0.8s ease;
    z-index: 2;
}

.card-header {
    background: #111;
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-logo {
    width: 220px;
    height: auto;
    object-fit: contain;
}

.card-content {
    background: white;
    padding: 2.5rem 2.5rem;
}

.welcome-title {
    font-size: var(--text-2xl);
    font-weight: var(--fw-bold);
    color: #111;
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-2);
}
.welcome-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: var(--sp-8);
    font-weight: var(--fw-regular);
}

.progress-line-container {
    display: flex;
    gap: 6px;
    margin-bottom: var(--sp-8);
}
.line-segment {
    height: 3px;
    flex: 1;
    border-radius: 2px;
    transition: background 0.4s;
}
.line-active   { background: var(--color-primary); }
.line-inactive { background: #e2e8f0; }

.success-box {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 12px;
    padding: 1rem;
    color: #166534;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: var(--sp-6);
    display: none;
    font-weight: var(--fw-regular);
}
.success-box strong { color: #14532d; font-weight: var(--fw-semibold); }

.login-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: var(--fw-semibold);
    color: #334155;
    margin-bottom: var(--sp-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.input-wrapper {
    position: relative;
    margin-bottom: var(--sp-6);
}
.input-wrapper i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}
.form-input {
    width: 100%;
    padding: 1.1rem 1rem 1.1rem 3.5rem;
    border: 1.5px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: var(--fw-regular);
    color: #1e293b;
    transition: all 0.3s;
    outline: none;
    font-family: inherit;
}
.form-input::placeholder {
    color: #94a3b8;
    font-weight: var(--fw-regular);
    opacity: 0.8;
}
.form-input:focus {
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(255,87,34,0.05);
}
.form-input.input-centered {
    text-align: center;
    padding-left: 1rem;
    font-size: 0.95rem;
}
#verifyCode {
    letter-spacing: 10px;
    text-align: center;
    padding-left: 1rem;
}

.help-text {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: var(--sp-6);
    font-weight: var(--fw-regular);
}

.btn-continue {
    width: 100%;
    padding: 1.1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(255,87,34,0.25);
    font-family: inherit;
}
.btn-continue:hover {
    background: var(--color-primary-hover, #E64A19);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255,87,34,0.35);
}

.resend-text {
    display: block;
    text-align: center;
    margin-top: var(--sp-5);
    font-size: 0.9rem;
    font-weight: var(--fw-medium);
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}
.resend-text:hover { opacity: 0.75; }

.login-footer-text {
    position: absolute;
    bottom: 6rem;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
    font-weight: var(--fw-regular);
}

.login-step { display: none; }
.login-step.active {
    display: block;
    animation: stepEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.login-step.leaving {
    animation: stepLeave 0.25s ease forwards;
}

@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes stepEnter { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes stepLeave { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-16px); } }

.error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: var(--sp-6);
    padding: 12px;
    background: #fef2f2;
    border-radius: 12px;
    display: none;
    text-align: left;
    border: 1px solid #fee2e2;
    font-weight: var(--fw-regular);
}

/* ================================================
   REGISTER PAGE
   ================================================ */
.register-body {
    background: radial-gradient(circle at 30% 45%, #1a1a1a 0%, #0a0a0a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-8);
}

.register-card {
    background: white;
    padding: var(--sp-12);
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.8s ease;
}

.register-header {
    text-align: center;
    margin-bottom: var(--sp-8);
}
.register-header h1 {
    font-size: var(--text-3xl);
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    color: #111;
    margin-top: var(--sp-6);
    margin-bottom: var(--sp-2);
}
.register-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.register-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.input-group {
    margin-bottom: 0;
}
.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
    color: #334155;
    margin-bottom: var(--sp-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.input-group .input-text {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1.5px solid #f1f5f9;
    background: #f8fafc;
    font-size: 0.95rem;
    font-weight: var(--fw-regular);
    color: #1e293b;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}
.input-group .input-text:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,87,34,0.05);
}
.register-full-col { grid-column: span 2; }

.register-footer-link {
    text-align: center;
    margin-top: var(--sp-8);
    font-size: 0.9rem;
    color: #64748b;
    font-weight: var(--fw-regular);
}
.register-footer-link a {
    color: var(--color-primary);
    font-weight: var(--fw-semibold);
    text-decoration: none;
}
.register-footer-link a:hover { text-decoration: underline; }
