/* ============================================================
   NeuroPain — Landing pública (estilo moderno, médico, limpio)
   Depende de los tokens definidos en modern-theme.css
   ============================================================ */

.np-body {
    background: var(--white);
    color: var(--ink-900);
    overflow-x: hidden;
}

/* ---------- Barra superior de contacto ---------- */
.np-topbar {
    background: var(--ink-900);
    color: var(--ink-200);
    font-size: .82rem;
    letter-spacing: .01em;
}
.np-topbar .container {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: .5rem 15px;
}
.np-topbar i { color: var(--accent-400); margin-right: .35rem; }

/* ---------- Navbar ---------- */
.np-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--ink-100);
    transition: box-shadow var(--t-med) var(--ease);
}
.np-navbar.np-scrolled { box-shadow: var(--shadow-md); }
.np-navbar .navbar-brand img { height: 46px; width: auto; }
.np-navbar .nav-link {
    color: var(--ink-700) !important;
    font-weight: 500;
    padding: .5rem 1rem !important;
    border-radius: 8px;
    transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.np-navbar .nav-link:hover { color: var(--brand-600) !important; background: var(--brand-50); }
.np-navbar .nav-link.active { color: var(--brand-600) !important; }

.np-btn-login {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: #fff !important;
    border-radius: 999px;
    padding: .55rem 1.4rem !important;
    font-weight: 600;
    box-shadow: var(--shadow-brand);
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.np-btn-login:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37,99,235,.4); color:#fff !important; }

/* Botón hamburguesa (móvil) */
.np-navbar .navbar-toggler {
    border: 1px solid var(--ink-200);
    padding: .35rem .6rem;
    border-radius: 8px;
}
.np-navbar .navbar-toggler:focus { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.np-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%231D4ED8' stroke-width='2.2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menú desplegable en móvil (cuando se colapsa el navbar) */
@media (max-width: 991.98px) {
    .np-navbar .navbar-collapse {
        background: #fff;
        border-top: 1px solid var(--ink-100);
        margin: .5rem -15px 0;
        padding: .5rem 15px 1rem;
        box-shadow: var(--shadow-md);
    }
    .np-navbar .navbar-nav { margin: .25rem 0; }
    .np-navbar .nav-link {
        padding: .65rem .5rem !important;
        border-bottom: 1px solid var(--ink-100);
        border-radius: 0;
    }
    .np-navbar .navbar-collapse > .d-flex { padding-top: .5rem; }
    .np-btn-login { display: inline-block; }
}

/* ---------- Hero ---------- */
.np-hero {
    position: relative;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(6,182,212,.14), transparent 60%),
        radial-gradient(900px 500px at 0% 20%, rgba(37,99,235,.12), transparent 55%),
        linear-gradient(180deg, var(--ink-50), var(--white));
    padding: 5.5rem 0 4.5rem;
    overflow: hidden;
}
.np-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--ink-900);
    margin-bottom: 1.25rem;
}
.np-hero h1 .np-grad-text {
    background: linear-gradient(120deg, var(--brand-600), var(--accent-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.np-hero p.lead {
    font-size: 1.15rem;
    color: var(--ink-600);
    max-width: 540px;
    margin-bottom: 2rem;
}
.np-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--brand-100);
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.np-pill i { color: var(--accent-500); }

.np-btn-hero {
    border-radius: 999px;
    padding: .85rem 1.8rem;
    font-weight: 600;
    font-size: 1.02rem;
}
.np-btn-primary {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: #fff;
    border: none;
    box-shadow: var(--shadow-brand);
}
.np-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(37,99,235,.4); color:#fff; }
.np-btn-ghost {
    background: var(--white);
    color: var(--brand-700);
    border: 1px solid var(--ink-200);
}
.np-btn-ghost:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--brand-700); }

/* Tarjeta visual del hero */
.np-hero-card {
    position: relative;
    border-radius: var(--radius-xl);
    background: linear-gradient(150deg, var(--brand-700), var(--brand-500) 55%, var(--accent-500));
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    color: #fff;
    overflow: hidden;
}
.np-hero-card::after {
    content: "";
    position: absolute;
    width: 320px; height: 320px;
    right: -90px; top: -90px;
    background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
    border-radius: 50%;
}
.np-hero-card .np-hero-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 1rem;
}

/* ---------- Stats ---------- */
.np-stats { margin-top: -2.5rem; position: relative; z-index: 3; }
.np-stat-card {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.np-stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.np-stat-num {
    font-size: 2.3rem; font-weight: 800; line-height: 1;
    background: linear-gradient(120deg, var(--brand-600), var(--accent-500));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.np-stat-label { color: var(--ink-600); font-weight: 500; margin-top: .4rem; }

/* ---------- Secciones ---------- */
.np-section { padding: 5rem 0; }
.np-section-alt { background: var(--ink-50); }
.np-eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 700;
    color: var(--accent-600);
    margin-bottom: .6rem;
}
.np-section h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.np-section .np-sub { color: var(--ink-600); font-size: 1.08rem; max-width: 640px; }

/* Tarjetas de tratamientos */
.np-treat-card {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.np-treat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-200);
}
.np-treat-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
}
.np-treat-card:nth-child(4n+2) .np-treat-icon { background: linear-gradient(135deg, var(--accent-500), var(--info)); }
.np-treat-card:nth-child(4n+3) .np-treat-icon { background: linear-gradient(135deg, var(--success), #34D399); }
.np-treat-card:nth-child(4n+4) .np-treat-icon { background: linear-gradient(135deg, var(--brand-700), var(--accent-500)); }
.np-treat-card h4 { font-weight: 700; font-size: 1.2rem; margin-bottom: .6rem; }
.np-treat-card ul { list-style: none; padding: 0; margin: 0; }
.np-treat-card ul li {
    color: var(--ink-600);
    font-size: .92rem;
    padding: .25rem 0 .25rem 1.4rem;
    position: relative;
}
.np-treat-card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; color: var(--brand-500); font-size: .75rem; top: .45rem;
}

/* Nosotros / features */
.np-feature {
    display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem;
}
.np-feature-icon {
    flex-shrink: 0;
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--brand-50); color: var(--brand-600);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.np-feature h5 { font-weight: 700; margin-bottom: .25rem; }
.np-feature p { color: var(--ink-600); margin: 0; font-size: .95rem; }

.np-about-visual {
    border-radius: var(--radius-xl);
    background: linear-gradient(150deg, var(--ink-900), var(--brand-800));
    color: #fff;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

/* CTA login */
.np-cta {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500) 60%, var(--accent-500));
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.np-cta::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 200px at 50% -20%, rgba(255,255,255,.18), transparent 70%);
}
.np-cta > * { position: relative; }
.np-cta h2 { color: #fff; font-weight: 800; }
.np-cta .np-btn-white {
    background: #fff; color: var(--brand-700);
    border-radius: 999px; padding: .85rem 2rem; font-weight: 700;
    box-shadow: var(--shadow-md);
}
.np-cta .np-btn-white:hover { transform: translateY(-2px); color: var(--brand-800); }

/* ---------- Contacto ---------- */
.np-contact-card {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.np-contact-card .np-feature-icon { margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.np-footer {
    background: var(--ink-900);
    color: var(--ink-300);
    padding: 3.5rem 0 1.5rem;
}
.np-footer img { height: 42px; margin-bottom: 1rem; }
.np-footer h6 { color: #fff; font-weight: 700; letter-spacing: .02em; margin-bottom: 1rem; }
.np-footer a { color: var(--ink-300); display: block; padding: .25rem 0; font-size: .92rem; }
.np-footer a:hover { color: var(--accent-400); }
.np-social { display: flex; gap: .6rem; margin-top: .25rem; }
.np-social a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--ink-200) !important;
    font-size: 1rem;
    transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.np-social a:hover {
    background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
    color: #fff !important;
    transform: translateY(-2px);
}

.np-footer .np-foot-contact li { padding: .3rem 0; font-size: .92rem; display: flex; gap: .6rem; }
.np-footer .np-foot-contact i { color: var(--accent-400); margin-top: .25rem; }
.np-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 2.5rem; padding-top: 1.5rem;
    font-size: .85rem; color: var(--ink-500);
}

/* ---------- Animación de entrada ---------- */
.np-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.np-reveal.np-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 767.98px) {
    .np-hero { padding: 3rem 0; text-align: center; }
    .np-hero p.lead { margin-left: auto; margin-right: auto; }
    .np-topbar { display: none; }
    .np-stats { margin-top: 1.5rem; }
}
