/* ── BASE (hereda Poppins y fondo del layout guest) ── */
.home-section { padding: 5rem 2rem; }
.home-wrap { max-width: 1160px; margin: 0 auto; }
.home-eyebrow {
    font-size: 0.8rem; font-weight: 700; color: #2563eb;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 0.75rem; display: block;
}
.home-title {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800; color: #0f172a; line-height: 1.25;
    margin-bottom: 1rem;
}
.home-body { font-size: 1rem; color: #64748b; line-height: 1.7; max-width: 640px; }

/* ── BOTONES ── */
.btn-home-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #2563eb; color: #fff; font-weight: 600; font-size: 0.92rem;
    padding: 0.85rem 1.6rem; border-radius: 999px; text-decoration: none;
    box-shadow: 0 8px 20px rgba(37,99,235,0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
}
.btn-home-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,99,235,0.34); color:#fff; text-decoration:none; }
.btn-home-ghost {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #fff; color: #0f172a; font-weight: 600; font-size: 0.92rem;
    padding: 0.85rem 1.6rem; border-radius: 999px; text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.btn-home-ghost:hover { border-color: #2563eb; color:#2563eb; transform: translateY(-2px); text-decoration:none; }

/* ── HERO ── */
.hero-wrapper {
    margin: 1.5rem 2rem;
    border-radius: 24px;
    overflow: hidden;
    background: #dbeafe;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}
.hero-inner {
    display: flex; align-items: center; gap: 3rem;
    padding: 4rem 3rem;
}
.hero-copy { flex: 1.05; }
.hero-brand { font-size: 1rem; font-weight: 800; color: #2563eb; margin-bottom: 1.25rem; }
.hero-headline {
    font-size: clamp(2.1rem, 4vw, 2.9rem);
    font-weight: 800; color: #0f172a; line-height: 1.16;
    margin-bottom: 1.25rem;
}
.hero-headline span { color: #2563eb; }
.hero-sub { font-size: 1.05rem; color: #475569; line-height: 1.65; max-width: 46ch; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── HERO VISUAL: mockup de tarjetas ── */
.hero-visual { flex: 0.95; }
.mock-card {
    background: #fff; border-radius: 20px; padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(37,99,235,0.18);
}
.mock-row { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.mock-kpi {
    flex: 1; background: #f8fafc; border-radius: 12px; padding: 0.9rem 1rem;
    border: 1px solid #f1f5f9;
}
.mock-kpi-label { font-size: 0.65rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.35rem; }
.mock-kpi-num { font-size: 1.15rem; font-weight: 800; color: #0f172a; }
.mock-kpi-num.green { color: #16a34a; }
.mock-kpi-num.red { color: #e11d48; }
.mock-list { border-top: 1px solid #f1f5f9; margin-top: 0.5rem; padding-top: 0.75rem; }
.mock-list-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; }
.mock-list-name { font-size: 0.85rem; font-weight: 600; color: #0f172a; }
.mock-list-sub { font-size: 0.72rem; color: #94a3b8; }
.mock-badge {
    font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px;
}
.mock-badge.ok { background: #dcfce7; color: #16a34a; }
.mock-badge.warn { background: #fee2e2; color: #e11d48; }

/* ── PROBLEMA ── */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.pain-card { background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 16px; padding: 1.75rem; }
.pain-icon {
    width: 40px; height: 40px; border-radius: 10px; background: #fee2e2; color: #e11d48;
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.1rem;
}
.pain-card h3 { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; }
.pain-card p { font-size: 0.88rem; color: #64748b; line-height: 1.6; margin: 0; }

/* ── SERVICIOS (features) ── */
.home-section-alt { background: #f8fafc; }
.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; margin-top: 2.5rem; }
.feature-card {
    background: #fff; border-radius: 16px; padding: 1.6rem 1.3rem;
    box-shadow: 0 6px 20px rgba(15,23,42,0.05); border: 1px solid #f1f5f9;
}
.feature-icon {
    width: 42px; height: 42px; border-radius: 12px; background: #dbeafe; color: #2563eb;
    display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; font-size: 1.2rem;
}
.feature-card h3 { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.83rem; color: #64748b; line-height: 1.55; margin: 0; }

/* ── COMO FUNCIONA ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.step-item { position: relative; padding-left: 3.2rem; }
.step-num {
    position: absolute; left: 0; top: 0;
    width: 2.4rem; height: 2.4rem; border-radius: 999px;
    background: #2563eb; color: #fff; font-weight: 800; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center;
}
.step-item h3 { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 0.4rem; }
.step-item p { font-size: 0.88rem; color: #64748b; line-height: 1.6; margin: 0; }

/* ── PRECIOS ── */
.price-card {
    max-width: 460px; margin: 2.5rem auto 0; background: #fff; border-radius: 20px;
    padding: 2.5rem; text-align: center; box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}
.price-plan { font-size: 0.8rem; font-weight: 700; color: #2563eb; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.price-value { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin-bottom: 1.5rem; }
.price-list { list-style: none; padding: 0; margin: 0 0 2rem; text-align: left; }
.price-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; font-size: 0.9rem; color: #334155; }
.price-list li i { color: #16a34a; }

/* ── CONTACTO ── */
.contact-card {
    background: #dbeafe; border-radius: 24px; padding: 3.5rem 3rem;
    text-align: center;
}
.contact-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: #0f172a; margin-bottom: 0.75rem; }
.contact-card p { font-size: 1rem; color: #475569; max-width: 46ch; margin: 0 auto 2rem; }

/* ── FOOTER ── */
.home-footer {
    padding: 2.5rem 2rem; text-align: center;
}
.home-footer p { font-size: 0.8rem; color: #94a3b8; }
.home-footer a { color: #64748b; text-decoration: none; margin: 0 0.5rem; }
.home-footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .hero-inner { flex-direction: column; padding: 2.75rem 1.75rem; }
    .hero-ctas { justify-content: center; }
    .hero-copy, .hero-visual { flex: none; width: 100%; }
    .hero-headline, .hero-sub { text-align: center; margin-left: auto; margin-right: auto; }
    .hero-brand { text-align: center; }
    .pain-grid, .steps-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .home-section { padding: 3rem 1.25rem; }
    .hero-wrapper { margin: 1rem 0.5rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 2.5rem 1.5rem; }
}

/* ── HERO: insignia ── */
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 999px;
    padding: 0.4rem 0.9rem; margin-bottom: 1.25rem;
    font-size: 0.75rem; font-weight: 700; color: #2563eb;
    letter-spacing: 0.03em; text-transform: uppercase;
}
.hero-badge .dot {
    width: 6px; height: 6px; border-radius: 50%; background: #2563eb;
    animation: dot-blink 1.6s ease-in-out infinite;
}
@keyframes dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.15; }
}

/* ── HERO: franja de confianza ── */
.trust-row {
    display: flex; gap: 1.75rem; flex-wrap: wrap;
    margin-top: 1.75rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(15,23,42,0.08);
}
.trust-item {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; font-weight: 500; color: #334155;
}
.trust-item i { color: #2563eb; font-size: 1rem; }

/* ── HERO: marco tipo navegador para el mockup ── */
.browser-frame { background: #fff; border-radius: 18px; overflow: hidden; }
.browser-frame-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 0.7rem 1rem; border-bottom: 1px solid #f1f5f9;
}
.browser-dot { width: 8px; height: 8px; border-radius: 50%; }
.browser-dot.r { background: #fca5a5; }
.browser-dot.y { background: #fcd34d; }
.browser-dot.g { background: #86efac; }
.browser-frame-body { padding: 1.5rem; }

.float-card {
    position: absolute; background: #fff; border-radius: 14px;
    box-shadow: 0 14px 30px rgba(15,23,42,0.14);
    padding: 0.85rem 1.1rem; font-size: 0.78rem;
}
.float-card-label { color: #94a3b8; font-weight: 600; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.2rem; }
.float-card-value { color: #0f172a; font-weight: 800; font-size: 1rem; }
.float-card.top-right {
    top: -18px; right: -18px;
    animation: float-bounce 2.6s ease-in-out infinite;
}
@keyframes float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ── BENTO: por qué SCweb ── */
.bento-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem; margin-top: 2.5rem;
}
.bento-card {
    background: #fff; border-radius: 18px; padding: 1.75rem;
    border: 1px solid #f1f5f9; box-shadow: 0 6px 20px rgba(15,23,42,0.04);
}
.bento-card.dark {
    background: #1d4ed8; color: #fff; border: none;
}
.bento-card.dark h3, .bento-card.dark p { color: #fff; }
.bento-card.dark p { color: rgba(255,255,255,0.82); }
.bento-icon {
    width: 42px; height: 42px; border-radius: 12px; background: #dbeafe; color: #2563eb;
    display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; font-size: 1.15rem;
}
.bento-card.dark .bento-icon { background: rgba(255,255,255,0.16); color: #fff; }
.bento-card h3 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; }
.bento-card p { font-size: 0.88rem; color: #64748b; line-height: 1.6; margin: 0; }
.bento-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.bento-badge {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 0.4rem 0.7rem; font-size: 0.72rem; font-weight: 700; color: #334155;
}

/* ── STATS PREVIEW ── */
.stats-preview { background: #f8fafc; border-radius: 20px; padding: 2.5rem; margin-top: 2.5rem; }
.stats-preview-note { font-size: 0.8rem; color: #94a3b8; margin-bottom: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat-box { background: #fff; border-radius: 14px; padding: 1.25rem 1.4rem; border: 1px solid #f1f5f9; }
.stat-label { font-size: 0.72rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.4rem; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: #0f172a; }
.stat-value.red { color: #e11d48; }
.stat-value.green { color: #16a34a; }

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.dark { grid-row: auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .float-card.top-right { position: static; margin-top: 0.75rem; display: inline-block; }
}
@media (max-width: 560px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stats-preview { padding: 1.5rem; }
    .trust-row { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-badge .dot, .float-card.top-right { animation: none !important; }
}

/* ── COMO FUNCIONA: tarjetas oscuras escalonadas + círculos de fondo ── */
.process-wrap { position: relative; overflow: hidden; }
.process-ripple {
    position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
    width: 620px; height: 620px; pointer-events: none; z-index: 0;
}
.ripple-circle {
    position: absolute; top: 50%; left: 50%;
    border: 1px solid #2563eb; border-radius: 50%;
    background: rgba(37,99,235,0.04);
    transform: translate(-50%, -50%);
    animation: ripple-pulse 3s ease-in-out infinite;
}
@keyframes ripple-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(0.92); }
}

.process-track {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr;
    align-items: start; margin-top: 2.75rem;
}
.process-card {
    background: #1e2532; border-radius: 16px; padding: 1.75rem;
    position: relative; overflow: hidden;
}
.process-num {
    position: absolute; top: 0.6rem; right: 1rem;
    font-size: 4.2rem; font-weight: 800; line-height: 1; color: #16a34a;
    user-select: none;
}
.process-badge {
    width: 2.6rem; height: 2.6rem; border-radius: 50%;
    border: 2px solid #2563eb; color: #2563eb; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; position: relative; z-index: 1;
}
.process-card h3 { color: #fff; font-weight: 700; font-size: 1.02rem; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.process-card p { color: #94a3b8; font-size: 0.85rem; line-height: 1.6; margin: 0; position: relative; z-index: 1; }
.process-arrow { display: flex; align-items: center; justify-content: center; color: #2563eb; }

@media (max-width: 900px) {
    .process-track { grid-template-columns: 1fr; gap: 1rem; }
    .process-arrow { display: none; }
    .process-card { margin-top: 0 !important; }
    .process-ripple { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ripple-circle { animation: none !important; }
}