/**
 * MiLanding para Agencias - Estilos
 * Landing profesional, moderna y responsive
 * Paleta: Violeta, Azul, Blanco, Gris
 */

/* ========== RESET Y VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ml-green: #08916a;
    --ml-green-2: #16a34a;
    --ml-green-dark: #08795a;
    --ml-ink: #0f172a;
    --ml-muted: #5f6c80;
    --ml-soft: #f7f9fc;
    --ml-border: #dee6f0;

    --color-primary: #08916a;
    --color-primary-dark: #08795a;
    --color-primary-light: #16a34a;
    --color-secondary: #1376e8;
    --color-secondary-dark: #0a5bcc;
    --color-success: #10b981;
    --color-text: #0f172a;
    --color-text-light: #5f6c80;
    --color-bg: #ffffff;
    --color-bg-light: #f7f9fc;
    --color-bg-alt: #f3f4f6;
    --color-border: #dee6f0;
    --color-shadow: rgba(14, 30, 52, 0.08);
    --color-shadow-md: rgba(15, 30, 49, 0.1);

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    --transition: all 0.3s ease;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Open Sans', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== UTILIDADES ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ========== HEADER (MiLanding) ========== */
.main-nav {
    background: color-mix(in srgb, var(--color-bg) 88%, transparent);
    border-bottom: 1px solid var(--ml-border);
    box-shadow: 0 8px 24px rgba(15, 30, 49, 0.06);
    backdrop-filter: saturate(1.25) blur(6px);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--ml-ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    color: var(--ml-green);
}

.nav-link-lite {
    color: color-mix(in srgb, var(--color-text) 88%, #7b8ba3 12%);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link-lite:hover {
    color: var(--ml-green);
}

/* Theme Toggle Button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    border: 1.5px solid var(--ml-border);
    background: var(--color-bg-light);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--ml-green);
    border-color: var(--ml-green);
    color: #fff;
    transform: rotate(15deg);
}

.btn-main,
.btn-main:visited {
    background: var(--ml-green);
    border-color: var(--ml-green);
    color: #fff;
    font-weight: 700;
    padding: 0.6rem 1.35rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-main:hover,
.btn-main:focus {
    background: var(--ml-green-dark);
    border-color: var(--ml-green-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary-lite {
    background: var(--color-bg);
    border: 1px solid color-mix(in srgb, var(--ml-border) 85%, #aec0d8 15%);
    color: color-mix(in srgb, var(--color-text) 88%, #6f839f 12%);
    border-radius: 0.5rem;
    padding: 0.6rem 1.35rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary-lite:hover,
.btn-secondary-lite:focus {
    background: var(--color-bg-light);
    border-color: color-mix(in srgb, var(--ml-green) 40%, var(--ml-border) 60%);
    color: var(--color-text);
}

/* ========== BOTONES ========== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--ml-green);
    color: white;
    box-shadow: 0 4px 15px rgba(8, 145, 106, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 106, 0.4);
    background: var(--ml-green-dark);
}

.btn-secondary {
    background: var(--color-bg-light);
    color: var(--ml-green);
    border: 2px solid var(--ml-green);
}

.btn-secondary:hover {
    background: var(--ml-green);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--ml-green);
    border: 2px solid var(--ml-green);
}

.btn-outline:hover {
    background: var(--ml-green);
    color: white;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
}

/* ========== HERO ========== */
.hero-section {
    padding: 2rem 0 1.2rem;
}

.hero-preview-col {
    padding-top: 3rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ecf8f1;
    color: #167f5d;
    border: 1px solid #d4ecd8;
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    font-weight: 700;
    font-size: 0.86rem;
}

.hero-title {
    font-size: clamp(2rem, 5.4vw, 3.6rem);
    line-height: 1.03;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--ml-ink);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--ml-muted);
    max-width: 640px;
    margin-bottom: 1.2rem;
}

.hero-microcopy-text {
    display: block;
    color: var(--ml-green);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.hero-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #41526a;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.hero-bullets span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-bullets i {
    color: var(--ml-green);
}

.hero-mock {
    border: 1px solid var(--ml-border);
    border-radius: 1.1rem;
    background: var(--color-bg);
    box-shadow: 0 16px 36px rgba(15, 30, 49, 0.1);
    overflow: hidden;
    position: relative;
}

/* Hero View Toggle (White / Dark) */
.hero-view-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem;
    background: rgba(15, 23, 36, 0.06);
    border-bottom: 1px solid var(--ml-border);
}

.hero-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 0.4rem;
    border: none;
    background: transparent;
    color: var(--ml-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.hero-view-btn:hover {
    background: rgba(8, 145, 106, 0.1);
    color: var(--ml-green);
}

.hero-view-btn.active {
    background: var(--ml-green);
    color: #fff;
    box-shadow: 0 2px 8px rgba(8, 145, 106, 0.25);
}

.hero-view-btn i {
    font-size: 0.8rem;
}

/* Dark tinted images */
.dark-tinted {
    filter: brightness(0.45) saturate(0.5) hue-rotate(200deg) contrast(1.1);
}

.hero-carousel {
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: 240px;
    background: #0f1724;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.hero-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15, 23, 36, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.25rem 0.4rem;
    z-index: 2;
}

.hero-carousel-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-carousel-dot.active {
    background: #ffffff;
}

/* ========== SECCIONES GENERALES ========== */
section {
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-align: center;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: var(--spacing-2xl) 0 var(--spacing-lg) 0;
}

/* ========== SECCIÓN PROBLEMA ========== */
.problema {
    background-color: var(--color-bg-light);
}

.comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-top: var(--spacing-xl);
}

.comparison-item {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 8px var(--color-shadow);
}

.comparison-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: var(--spacing-sm) 0;
    font-size: 0.95rem;
}

.comparison-list strong {
    color: var(--color-primary);
}

.comparison-divider {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-align: center;
}

/* ========== BENEFICIOS ========== */
.beneficios {
    background-color: white;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px var(--color-shadow);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(8, 145, 106, 0.15);
    border-color: var(--ml-green);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.benefit-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ========== CÓMO FUNCIONA ========== */
.como-funciona {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

/* Step cards - igual que home.php */
.steps-sub {
    color: var(--ml-green-2);
    font-weight: 700;
    margin-bottom: 1.4rem;
}

.step-card {
    border: 1px solid var(--ml-border);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 30, 49, 0.05);
    padding: 1rem;
    text-align: center;
    height: 100%;
}

.step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--ml-green-2);
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
}

.step-title {
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.step-text {
    color: #57677f;
    font-size: 0.92rem;
    margin: 0;
}

/* Keep old step styles for backward compat */
.steps-container {
    display: none;
}

.step {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 2px 8px var(--color-shadow);
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ml-green) 0%, var(--ml-green-dark) 100%);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-bottom: var(--spacing-md);
}

.step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.step p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ml-green);
}

/* ========== CASOS DE USO ========== */
.casos-uso {
    background-color: white;
}

.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.persona-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-border);
    text-align: center;
    transition: var(--transition);
}

.persona-card:hover {
    border-color: var(--ml-green);
    box-shadow: 0 8px 16px rgba(8, 145, 106, 0.1);
}

.persona-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.persona-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.persona-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.rubros-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-xl);
}

.rubro {
    background: var(--color-bg-alt);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
}

/* ========== VENDELO ========== */
.vendelo {
    background: linear-gradient(135deg, #ecf9f4 0%, #d4ecd8 100%);
}

.vendelo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.vendelo-item {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.vendelo-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.vendelo-item p {
    color: var(--color-text-light);
}

/* ========== PLANES ========== */
.planes {
    background-color: var(--color-bg-light);
}

.planes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: var(--spacing-xl);
    align-items: start;
}

@media (max-width: 991px) {
    .planes-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Tarjeta base --- */
.plan-card {
    background: #fff;
    border-radius: 1.1rem;
    border: 1.5px solid var(--color-border);
    padding: 2rem 1.75rem 1.75rem;
    position: relative;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    box-shadow: 0 14px 32px rgba(15, 30, 49, 0.1);
    transform: translateY(-3px);
}

/* --- Tarjeta destacada (Pro) --- */
.plan-featured {
    border: 2px solid var(--ml-green) !important;
    box-shadow: 0 8px 28px rgba(8, 145, 106, 0.15);
}

.plan-featured:hover {
    box-shadow: 0 16px 36px rgba(8, 145, 106, 0.22);
    transform: translateY(-4px);
}

/* --- Badge "Mejor valor" --- */
.plan-badge-top {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ml-green);
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.22rem 0.9rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(8, 145, 106, 0.35);
}

/* --- Nombre y descripción del plan --- */
.plan-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: var(--ml-ink);
}

.plan-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.1rem;
}

/* --- Bloque de precio --- */
.plan-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.3rem;
}

.plan-price-amount {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--ml-ink);
    line-height: 1;
}

.plan-price-period {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
}

/* --- Nota equivalencia (10 meses pagos) --- */
.plan-price-equiv {
    font-size: 0.8rem;
    color: var(--ml-green);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* --- Lista de features con checkmark verde --- */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0;
    font-size: 0.93rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-bg-alt);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li .bi {
    color: var(--ml-green);
    font-size: 1.05rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* --- Créditos IA --- */
.plan-ai-line {
    font-size: 0.83rem;
    color: #1a7055;
    font-weight: 700;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.plan-ai-line .bi {
    color: var(--ml-green);
    font-size: 0.95rem;
}

/* --- Nota pie de tarjeta --- */
.plan-footer-note {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

/* --- Botones de plan --- */
.btn-plan {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 0.6rem;
    font-weight: 700;
    font-size: 0.97rem;
    padding: 0.82rem 1rem;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
    margin-top: auto;
}

.btn-plan-primary {
    background: var(--ml-green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(8, 145, 106, 0.32);
}

.btn-plan-primary:hover {
    background: var(--ml-green-dark);
    color: #fff;
    box-shadow: 0 6px 18px rgba(8, 145, 106, 0.42);
    transform: translateY(-2px);
}

.btn-plan-outline {
    background: transparent;
    color: var(--ml-green);
    border: 2px solid var(--ml-green);
}

.btn-plan-outline:hover {
    background: var(--ml-green);
    color: #fff;
    transform: translateY(-2px);
}

/* ========== DASHBOARD PREVIEW ========== */
.dashboard-preview {
    background: linear-gradient(135deg, #f9fafb 0%, #ecf9f4 100%);
}

.dashboard-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.dashboard-item {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--color-primary);
}

.dashboard-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.dashboard-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.dashboard-note {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    text-align: center;
}

/* ========== FAQ ========== */
.faq {
    background-color: white;
}

.faq-items {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.faq-item[open] {
    border-color: var(--ml-green);
    background-color: var(--color-bg-light);
}

.faq-question {
    padding: var(--spacing-lg);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::after {
    content: '';
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--ml-green) 0%, var(--ml-green-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    transition: var(--transition);
}

.faq-item[open] .faq-question {
    color: var(--ml-green);
}

.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ========== CTA FINAL ========== */
.cta-final {
    background: linear-gradient(135deg, var(--ml-green) 0%, var(--ml-green-dark) 100%);
    color: white;
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.cta-final .section-title {
    color: white;
}

.cta-final .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.cta-final .btn {
    background: white;
    color: var(--ml-green);
    margin-top: var(--spacing-lg);
}

.cta-final .btn:hover {
    background: var(--color-bg-light);
}

/* ========== FOOTER ========== */
.site-footer {
    background-color: var(--ml-ink);
    color: rgba(255, 255, 255, 0.9);
    padding: 3.5rem var(--spacing-lg) 1rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-logo:hover {
    color: var(--ml-green);
}

.footer-logo .brand-icon {
    width: 1.4rem;
    height: 1.4rem;
    object-fit: contain;
}

.footer-muted {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

/* MP Logo & AFIP - matching home.php */
.footer-compliance {
    margin-top: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-compliance-mp {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.footer-mp-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.footer-mp-note {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.25;
}

.footer-afip-qr {
    width: 54px;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.35rem;
    background: #fff;
}

.footer-col-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.footer-list-icon {
    color: var(--ml-green);
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 0.8rem;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: var(--ml-green);
}

.social-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.social-links a,
.social-icon-static {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--ml-green);
    border-color: var(--ml-green);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--ml-green);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-content {
        padding: var(--spacing-md) 0;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav {
        display: none;
        margin: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--color-border);
        padding: var(--spacing-lg);
    }

    .nav.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-toggle {
        display: flex;
        order: 1;
    }

    .btn-header {
        font-size: 0.9rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .hero {
        padding: 4rem var(--spacing-lg) 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    section {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .comparison {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .comparison-divider {
        display: none;
    }

    .comparison-item {
        padding: var(--spacing-lg);
    }

    .comparison-item h3 {
        font-size: 1.1rem;
    }

    .beneficios-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-md);
    }

    .benefit-card {
        padding: var(--spacing-lg);
    }

    .personas-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .plan-card.featured {
        transform: scale(1);
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: var(--spacing-md) 0;
    }

    .rubros-list {
        gap: var(--spacing-xs);
    }

    .rubro {
        font-size: 0.85rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .vendelo-features {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        align-items: center;
    }
}

@media (max-width: 640px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    .personas-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .persona-icon {
        font-size: 1.75rem;
    }

    .benefit-icon {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ========== IMPRESIÓN ========== */
@media print {

    .header,
    .footer,
    .nav,
    .btn {
        display: none;
    }
}

/* ========== DARK MODE (Toggle del header) ========== */
body {
    transition: background-color 0.35s ease, color 0.35s ease;
}

body.dark-mode {
    --color-bg: #0f172a;
    --color-bg-light: #1e293b;
    --color-bg-alt: #1e293b;
    --color-text: #e2e8f0;
    --color-text-light: #94a3b8;
    --color-border: #334155;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-md: rgba(0, 0, 0, 0.4);
    background-color: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .main-nav {
    background: color-mix(in srgb, #0f172a 88%, transparent);
    border-bottom-color: #334155;
}

body.dark-mode .brand {
    color: #e2e8f0;
}

body.dark-mode .nav-link-lite {
    color: #94a3b8;
}

body.dark-mode .nav-link-lite:hover {
    color: var(--ml-green);
}

body.dark-mode .theme-toggle {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .hero-title {
    color: #e2e8f0;
}

body.dark-mode .hero-mock {
    border-color: #334155;
    background: #1e293b;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

body.dark-mode .hero-view-toggle {
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: #334155;
}

body.dark-mode .hero-chip {
    background: #1a3a2e;
    color: #6ee7b7;
    border-color: #2d6652;
}

body.dark-mode .btn-secondary-lite {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

body.dark-mode .btn-secondary-lite:hover {
    background: #293548;
    border-color: var(--ml-green);
}

body.dark-mode .problema,
body.dark-mode .faq,
body.dark-mode .casos-uso {
    background-color: #0f172a;
}

body.dark-mode .beneficios {
    background-color: #0f172a;
}

body.dark-mode .planes {
    background-color: #0f172a;
}

body.dark-mode .como-funciona {
    background: linear-gradient(135deg, #1e293b 0%, #162032 100%);
}

body.dark-mode .vendelo {
    background: linear-gradient(135deg, #1a3a2e 0%, #1e3330 100%);
}

body.dark-mode .dashboard-preview {
    background: linear-gradient(135deg, #1e293b 0%, #1a3a2e 100%);
}

body.dark-mode .comparison-item,
body.dark-mode .benefit-card,
body.dark-mode .step,
body.dark-mode .persona-card,
body.dark-mode .plan-card,
body.dark-mode .dashboard-item,
body.dark-mode .dashboard-note,
body.dark-mode .faq-item {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .benefit-card:hover {
    border-color: var(--ml-green);
    box-shadow: 0 12px 24px rgba(8, 145, 106, 0.2);
}

body.dark-mode .plan-card.featured {
    border-color: var(--ml-green);
}

body.dark-mode .plan-badge {
    background: #1a3a2e;
    color: #6ee7b7;
    border-color: #2d6652;
}

body.dark-mode .pricing-toggle {
    background: #1e293b;
    border: 1px solid #334155;
}

body.dark-mode .pricing-toggle-btn {
    color: #cbd5e1;
}

body.dark-mode .pricing-toggle-btn.active {
    background: var(--ml-green);
    color: #fff;
}

body.dark-mode .pricing-annual-badge {
    background: #2d6652;
    color: #6ee7b7;
}

body.dark-mode .pricing-annual-note {
    color: #6ee7b7;
}

body.dark-mode .pricing-ai-credit {
    color: #6ee7b7;
}

body.dark-mode .faq-item[open] {}

body.dark-mode .section-title,
body.dark-mode .subsection-title {
    color: #e2e8f0;
}

body.dark-mode .rubro {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

body.dark-mode .cta-final {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

/* ========== CARRUSEL MÓVIL (scroll horizontal) ========== */
@media (max-width: 767px) {

    /* --- Mixin base reutilizable via clase --- */
    .beneficios-grid,
    .personas-grid,
    .dashboard-features,
    .planes-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.85rem;
        padding-bottom: 1rem;
        /* Extend to edges */
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        /* Quitar max-width del override de planes a tablet */
        max-width: none;
        margin-top: var(--spacing-lg);
    }

    /* Ocultar scrollbar (mantener funcional) */
    .beneficios-grid::-webkit-scrollbar,
    .personas-grid::-webkit-scrollbar,
    .dashboard-features::-webkit-scrollbar,
    .planes-grid::-webkit-scrollbar,
    .steps-snap-wrap::-webkit-scrollbar,
    .rubros-list::-webkit-scrollbar {
        display: none;
    }

    /* --- Cards individuales --- */
    .beneficios-grid .benefit-card {
        flex: 0 0 72vw;
        min-width: 220px;
        max-width: 300px;
        scroll-snap-align: start;
    }

    .personas-grid .persona-card {
        flex: 0 0 68vw;
        min-width: 200px;
        max-width: 280px;
        scroll-snap-align: start;
    }

    .dashboard-features .dashboard-item {
        flex: 0 0 75vw;
        min-width: 220px;
        max-width: 300px;
        scroll-snap-align: start;
    }

    .planes-grid .plan-card {
        flex: 0 0 85vw;
        min-width: 270px;
        max-width: 340px;
        scroll-snap-align: start;
        /* Cancelar el transform del hover que rompe el layout en scroll */
        transform: none !important;
    }

    /* --- Steps (Cómo funciona) — Bootstrap row override --- */
    .steps-snap-wrap {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.7rem;
        padding-bottom: 1rem;
        margin-left: -1.25rem !important;
        margin-right: -1.25rem !important;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .steps-snap-wrap > [class*="col-"] {
        flex: 0 0 72vw !important;
        width: 72vw !important;
        max-width: none !important;
        scroll-snap-align: start;
    }

    /* --- Rubros (chips) — ya es flex, solo override wrap --- */
    .rubros-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        margin-top: var(--spacing-lg);
    }

    .rubros-list .rubro {
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    /* --- Indicador visual de scroll (fade derecho) --- */
    .beneficios,
    .como-funciona,
    .casos-uso,
    .planes,
    .dashboard-preview {
        position: relative;
    }
}