/* VARIABLES DE DISEÑO PREMIUM */
:root {
    --bg-primary: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --brand-primary: #4f46e5; /* Indigo */
    --brand-accent: #10b981;  /* Esmeralda/Tracking Live */
    --border-color: #e2e8f0;
    --font-family: 'Inter', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* HEADER & NAVBAR */
.main-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.logo-icon {
    color: var(--brand-primary);
    margin-right: 8px;
}

.navbar {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-primary);
}

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #f1f5f9;
}

.btn-text {
    color: var(--text-main);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.w-100 { width: 100%; }

/* SISTEMA DE PÁGINAS MÓVIL/SPA */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HERO SECTION */
.hero-section {
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.hero-stats strong {
    font-size: 24px;
    font-weight: 700;
}

.hero-stats p {
    font-size: 14px;
    margin: 0;
}

/* MOCKUP VISUAL */
.mockup-card {
    background-color: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mockup-header {
    background-color: #1e293b;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ef4444;
}
.mockup-header .dot:nth-child(2) { background-color: #f59e0b; }
.mockup-header .dot:nth-child(3) { background-color: #10b981; }

.mockup-title {
    color: #94a3b8;
    font-size: 12px;
    margin-left: 12px;
}

.mockup-body {
    padding: 60px 40px;
    text-align: center;
}

.chart-placeholder {
    color: var(--brand-accent);
}

.chart-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
}

.live-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* CARDS & GRIDS UNIVERSALES */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
}

.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* FEATURES PAGE */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.card-icon {
    font-size: 28px;
    color: var(--brand-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* PRICING PAGE */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: center;
}

.pricing-card {
    position: relative;
}

.pricing-card.popular {
    border: 2px solid var(--brand-primary);
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.ribbon {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--brand-primary);
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.price {
    font-size: 40px;
    font-weight: 700;
    margin: 20px 0;
}

.price span {
    font-size: 16px;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    margin-bottom: 32px;
}

.price-features li {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li i {
    color: var(--brand-accent);
}

.price-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-features li.disabled i {
    color: #ef4444;
}

/* CONTACT PAGE */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    font-weight: 600;
}

.info-item i {
    color: var(--brand-primary);
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* FOOTER */
.main-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 64px 0 24px 0;
    margin-top: 80px;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-links h5 {
    color: white;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .header-container { padding: 0 16px; }
    .navbar, .header-actions { display: none; } /* En producción agregarías un menú de hamburguesa */
    .hero-grid, .features-grid, .pricing-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-text h1 { font-size: 32px; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-4px); }
}