/* landing.css — Decoración exclusiva de la landing page */
/* IMPORTANTE: aplicar solo con la clase .landing-page en body o sección */

/* ── Orbs ───────────────────────────────────────────────────── */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.orb-brand {
    background: rgba(105, 21, 232, 0.18);
    width: 500px;
    height: 500px;
}
.orb-accent {
    background: rgba(0, 212, 170, 0.14);
    width: 400px;
    height: 400px;
}
.orb-1 { top: -120px; right: -80px; }
.orb-2 { bottom: 60px; left: -120px; }
.orb-3 { top: 40%; right: -60px; width: 300px; height: 300px; }

/* ── Dot grid ───────────────────────────────────────────────── */
.dot-grid {
    background-image: radial-gradient(circle, rgba(105, 21, 232, 0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ── Gradient border card ───────────────────────────────────── */
.gradient-border {
    position: relative;
    border-radius: var(--radius-xl) !important;
    border: none !important;
    box-shadow: none !important;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: calc(var(--radius-xl) + 1.5px);
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    z-index: -1;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
}
@media (max-width: 767.98px) {
    .hero { padding: 3.5rem 0 3rem; min-height: auto; }
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--text-primary);
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.6;
}

/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    /* Grid: 2 cols en mobile, 4 en desktop */
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
@media (min-width: 768px) {
    .stats-bar { grid-template-columns: repeat(4, 1fr); }
}
.stat-item {
    text-align: center;
    padding: 1.25rem 1rem;
    position: relative;
}
/* Separadores con pseudo-elementos (no se rompen al cambiar columnas) */
.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}
/* Último de cada fila en mobile (columna 2) — sin separador derecho */
@media (max-width: 767.98px) {
    .stat-item:nth-child(2n)::after { display: none; }
    /* Separador inferior entre las dos filas */
    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }
}
/* En desktop: el último item no tiene separador */
@media (min-width: 768px) {
    .stat-item:last-child::after { display: none; }
}
.stat-number {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand);
    line-height: 1;
}
.stat-label { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 0.25rem; line-height: 1.3; }

/* ── Cómo funciona ──────────────────────────────────────────── */
.how-section {
    background: var(--bg-surface);
    padding: 5rem 0;
    position: relative;
}
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-brand);
}
.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.step-connector {
    position: absolute;
    top: 3.5rem;
    right: -12%;
    width: 24%;
    height: 2px;
    background: linear-gradient(to right, var(--brand-faint), var(--brand-faint));
    background-image: repeating-linear-gradient(to right, var(--border-brand), var(--border-brand) 6px, transparent 6px, transparent 14px);
    pointer-events: none;
}
@media (max-width: 767.98px) { .step-connector { display: none; } }
.step-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--brand);
}

/* ── Propuesta de valor ─────────────────────────────────────── */
.value-section { padding: 5rem 0; }
.value-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(105, 21, 232, 0.08);
    border-color: var(--border-brand);
}
.value-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    background: var(--brand-faint);
    color: var(--brand);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

/* ── Tipos de carga ─────────────────────────────────────────── */
.tipos-section {
    background: var(--bg-surface);
    padding: 5rem 0;
}
.tipo-carga-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: var(--brand-faint);
    color: var(--brand);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border-brand);
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.tipo-carga-pill:hover {
    background: var(--brand);
    color: #fff;
    transform: scale(1.04);
}

/* ── CTA final ──────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--brand) 0%, #4e0fb3 100%);
    padding: 5rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-section .orb-brand {
    background: rgba(255, 255, 255, 0.08);
}

/* ── Section headings ───────────────────────────────────────── */
.section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}
.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}
