/* ========================================================
   SISTEMA DE DISEÑO RESPONSIVE & MOBILE-FIRST - DIRECTORIOPRO
   ======================================================== */
:root {
    --bg-dark: #0a0e17;
    --bg-surface: #111827;
    --bg-surface-elevated: #1a2234;
    --bg-card: rgba(17, 24, 39, 0.95);
    
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(79, 70, 229, 0.25);

    --emerald: #10b981;
    --emerald-light: #34d399;
    --emerald-glow: rgba(16, 185, 129, 0.25);

    --gold: #f59e0b;

    --border: #1f293d;
    --border-hover: #374151;

    --text-primary: #f9fafb;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-soft: 0 10px 25px -10px rgba(0, 0, 0, 0.5);
    --shadow-heavy: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    scroll-behavior: smooth;
    word-break: break-word;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    width: 100%;
}

.nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-symbol {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--primary-glow);
    flex-shrink: 0;
}

.brand-symbol svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-name span {
    color: var(--emerald-light);
}

.nav-menu {
    display: flex;
    gap: 22px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #fff;
}

.nav-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.btn-nav-outline {
    color: var(--text-secondary);
    border: 1px solid var(--border-hover);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-nav-solid {
    background: linear-gradient(135deg, var(--emerald) 0%, #059669 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--emerald-glow);
    white-space: nowrap;
    transition: all 0.2s;
}

/* HERO SECTION */
.hero-section {
    padding: 50px 16px 40px 16px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    max-width: 95%;
    text-align: center;
}

.hero-pill .dot {
    width: 6px;
    height: 6px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 0 auto 16px auto;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #10b981 0%, #818cf8 60%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(0.92rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 30px auto;
    line-height: 1.55;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.btn-cta-main {
    background: linear-gradient(135deg, var(--emerald) 0%, #047857 100%);
    color: #ffffff;
    padding: 14px 26px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 8px 20px -4px var(--emerald-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-cta-main:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-cta-secondary {
    background: #1a2234;
    border: 1px solid var(--border-hover);
    color: #f1f5f9;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-cta-secondary:hover {
    background: #243048;
    color: #fff;
}

/* STATS ROW */
.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    text-align: center;
    padding: 6px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* SECCIONES COMUNES */
.section-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 16px;
}

.section-badge {
    color: var(--emerald-light);
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.25;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 720px;
    line-height: 1.55;
}

.center-head {
    text-align: center;
    margin-bottom: 38px;
}
.center-head .section-desc {
    margin: 0 auto;
}

/* TARJETAS DE VALOR (3 COLUMNAS) */
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: all 0.2s ease;
}

.feature-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.feature-box.highlight {
    background: linear-gradient(180deg, #162036 0%, #111827 100%);
    border-color: rgba(99, 102, 241, 0.4);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.icon-emerald { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-emerald svg { fill: var(--emerald-light); }

.icon-purple { background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3); }
.icon-purple svg { fill: var(--primary-light); }

.icon-gold { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-gold svg { fill: var(--gold); }

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 18px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list li {
    font-size: 0.84rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bullet-check {
    color: var(--emerald);
    font-weight: 900;
}

/* SHOWCASE SPLIT (FEED & VISUAL) */
.split-showcase {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.mock-feed-window {
    background: #0b0f19;
    border: 1px solid #1f293d;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    width: 100%;
}

.feed-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1a2234;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.feed-title-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 0.82rem;
    color: #fff;
}

.badge-tag {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 800;
}

.mock-card-item {
    background: #141c2e;
    border: 1px solid #243048;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.mock-card-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.mock-card-heading {
    font-weight: 800;
    font-size: 0.92rem;
    color: #fff;
    margin-bottom: 4px;
}

.mock-card-body {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.45;
}

.mock-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.reactions-group {
    display: flex;
    gap: 6px;
}

.reaction-pill {
    background: #0b0f19;
    border: 1px solid #243048;
    color: #cbd5e1;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

.btn-mini-cta {
    background: var(--emerald);
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

/* PLANES COMERCIALES */
.pricing-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.price-card-tier {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.2s ease;
}

.price-card-tier.most-popular {
    background: linear-gradient(180deg, #13242e 0%, #111827 100%);
    border-color: var(--emerald);
    box-shadow: 0 10px 30px -8px rgba(16, 185, 129, 0.25);
}

.popular-ribbon {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--emerald);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.tier-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.tier-cost {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.tier-cost span {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 500;
}

.tier-summary {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.45;
}

.tier-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
}

.tier-benefits li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-tier-cta {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.92rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.btn-tier-emerald {
    background: var(--emerald);
    color: #fff;
    box-shadow: 0 4px 14px var(--emerald-glow);
}

.btn-tier-ghost {
    background: #1a2234;
    border: 1px solid var(--border-hover);
    color: #f1f5f9;
}

/* COMPLIANCE & LEGAL NOTICE BOX */
.compliance-box {
    background: #131c2e;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    margin-top: 36px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.compliance-badge-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.compliance-badge-icon svg {
    width: 22px;
    height: 22px;
    fill: #a5b4fc;
}

.compliance-text h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #a5b4fc;
    margin-bottom: 6px;
}

.compliance-text p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* FAQ SECTION */
.faq-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.faq-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 18px;
}

.faq-q {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.35;
}

.faq-q span {
    color: var(--emerald);
    flex-shrink: 0;
}

.faq-a {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* FOOTER */
.master-footer {
    background: #070a10;
    border-top: 1px solid var(--border);
    padding: 50px 16px 30px 16px;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 28px;
    margin-bottom: 36px;
}

.footer-col-title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-contact-item {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-disclaimer {
    max-width: 1140px;
    margin: 0 auto;
    border-top: 1px solid #161f30;
    padding-top: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ========================================================
   REGLAS ESPECÍFICAS PARA DISPOSITIVOS MÓVILES (SMARTPHONES)
   ======================================================== */
@media (max-width: 768px) {
    /* Navbar móvil limpia y sin desborde */
    .header-nav {
        padding: 10px 12px;
    }

    .nav-wrap {
        gap: 6px;
    }

    .brand-symbol {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .brand-symbol svg {
        width: 17px;
        height: 17px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .nav-menu {
        display: none !important;
    }

    .nav-buttons .btn-nav-outline {
        display: none !important;
    }

    .nav-buttons .btn-nav-solid {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    /* Hero en móviles */
    .hero-section {
        padding: 36px 12px 30px 12px;
    }

    .hero-pill {
        font-size: 0.7rem;
        padding: 4px 10px;
        margin-bottom: 14px;
    }

    .hero-title {
        font-size: 1.7rem;
        line-height: 1.22;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 24px;
        padding: 0 4px;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-bottom: 28px;
    }

    .btn-cta-main,
    .btn-cta-secondary {
        width: 100%;
        padding: 13px 18px;
        font-size: 0.92rem;
    }

    /* Métrica en 2 columnas */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 14px 4px;
    }

    .stat-number {
        font-size: 1.45rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    /* Secciones generales */
    .section-container {
        padding: 42px 12px;
    }

    .center-head {
        margin-bottom: 26px;
    }

    .section-title {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .section-desc {
        font-size: 0.88rem;
    }

    /* Grillas a 1 columna en móvil */
    .cards-grid-3,
    .pricing-wrap,
    .split-showcase,
    .faq-container {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .split-showcase {
        padding: 20px 14px;
    }

    .feature-box {
        padding: 20px 16px;
    }

    .price-card-tier {
        padding: 24px 16px;
    }

    .tier-cost {
        font-size: 2.1rem;
    }

    .compliance-box {
        flex-direction: column;
        padding: 16px 14px;
        gap: 12px;
    }

    .compliance-badge-icon {
        width: 34px;
        height: 34px;
    }

    .compliance-badge-icon svg {
        width: 18px;
        height: 18px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* Pantallas extra pequeñas (< 380px) */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .brand-name {
        font-size: 0.95rem;
    }
    .btn-nav-solid {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}
