/* ============================================================
   NicheTable Pro – componentes de la landing, la demo y la guía
   Paleta: #2563eb (azul), #1d4ed8 (azul oscuro), #0f172a (tinta),
   #f59e0b (ámbar CTA), #e63946 (botón de compra)
   ============================================================ */

:root {
    --nt-blue: #2563eb;
    --nt-blue-dark: #1d4ed8;
    --nt-ink: #0f172a;
    --nt-slate: #475569;
    --nt-line: #e2e8f0;
    --nt-soft: #f7f9fc;
    --nt-amber: #f59e0b;
    --nt-red: #e63946;
}

/* ---------- Botones extra ---------- */
.nt-btn-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.7);
}
.nt-btn-ghost:hover { background: #fff; color: var(--nt-blue); }
.nt-btn-outline {
    background: #fff;
    color: var(--nt-blue);
    border: 2px solid var(--nt-blue);
}
.nt-btn-outline:hover { background: var(--nt-blue); color: #fff; }
.btn i { margin-right: 6px; }

.header-nav ul li.header-nav-cta a {
    background: var(--nt-amber);
    color: #fff;
    border-radius: 999px;
    line-height: 1;
    padding: 10px 18px;
    margin: 0 0 0 10px;
    position: relative;
    top: 50%;
    transform: translateY(0);
}
.header-nav ul { align-items: center; }
.header-nav ul li.header-nav-cta a:hover { background: #d97706; }
.header-logo img { height: 36px; }

/* ---------- Hero ---------- */
.nt-hero { padding-bottom: 0; overflow: hidden; }
.nt-hero .hero-container { max-width: 860px; }
.nt-hero h1 { font-size: 44px; }
.nt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}
.nt-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.nt-trust {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 26px 0 0;
    font-size: 14px;
    color: rgba(255,255,255,.92);
}
.nt-trust i { color: var(--nt-amber); margin-right: 6px; }
.nt-hero-sub { margin: 12px 0 0 !important; }

.nt-hero-preview {
    max-width: 1040px;
    margin: 50px auto -1px;
    padding: 0 20px;
}
.nt-browser {
    background: #fff;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -10px 40px rgba(15,23,42,.25);
    overflow: hidden;
    text-align: left;
    color: #3a3a3a;
}
.nt-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #eef2f7;
    border-bottom: 1px solid var(--nt-line);
}
.nt-browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.nt-browser-bar span:nth-child(1) { background: #f87171; }
.nt-browser-bar span:nth-child(2) { background: #fbbf24; }
.nt-browser-bar span:nth-child(3) { background: #34d399; }
.nt-browser-bar em {
    flex: 1;
    margin-left: 12px;
    background: #fff;
    border-radius: 6px;
    padding: 3px 12px;
    font-size: 12px;
    font-style: normal;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nt-browser-body { padding: 26px 26px 6px; overflow-x: auto; }

/* ---------- Títulos de sección ---------- */
.nt-section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    color: var(--nt-ink);
    margin-bottom: 10px;
    line-height: 1.3;
}
.nt-section-sub {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    max-width: 680px;
    margin: 0 auto 34px;
}
.features-intro h2, .faq-section h2 { color: var(--nt-ink); font-weight: 800; font-size: 30px; }

/* ---------- Ventajas ---------- */
.nt-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 40px 0 40px;
}
.nt-feature-card {
    background: #fff;
    border: 1px solid var(--nt-line);
    border-radius: 14px;
    padding: 26px 24px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.nt-feature-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 30px rgba(37,99,235,.12);
}
.nt-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--nt-blue);
    font-size: 20px;
    margin-bottom: 14px;
}
.nt-feature-card h3 { font-size: 17px; font-weight: 700; color: var(--nt-ink); margin-bottom: 6px; text-align: left; }
.nt-feature-card p { font-size: 14px; color: var(--nt-slate); margin: 0; }

/* ---------- Filtro ---------- */
.nt-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}
.nt-filter button {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--nt-slate);
    background: #fff;
    border: 1px solid var(--nt-line);
    border-radius: 999px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all .2s;
}
.nt-filter button:hover { border-color: var(--nt-blue); color: var(--nt-blue); }
.nt-filter button.is-active { background: var(--nt-blue); border-color: var(--nt-blue); color: #fff; }
[data-group].is-hidden { display: none !important; }

/* ---------- Galería de plantillas ---------- */
.nt-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.nt-gallery-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--nt-line);
    border-radius: 14px;
    overflow: hidden;
    color: inherit;
    transition: transform .25s, box-shadow .25s;
}
.nt-gallery-card:hover {
    color: inherit;
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(15,23,42,.12);
}
.nt-gallery-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    border-bottom: 1px solid var(--nt-line);
    overflow: hidden;
}
.nt-gallery-thumb { background: #fff; }
.nt-gallery-thumb img { width: 100%; height: auto; }
.nt-gallery-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.nt-gallery-body strong { font-size: 16px; color: var(--nt-ink); }
.nt-gallery-body > span:not(.nt-badge) { font-size: 13px; color: var(--nt-slate); line-height: 1.5; flex: 1; }
.nt-gallery-body em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--nt-blue); margin-top: 6px; }
.nt-gallery-body em i { margin-right: 4px; }

.nt-badge {
    align-self: flex-start;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 2px 10px;
    vertical-align: middle;
}
.nt-badge--avanzada { background: #fef3c7; color: #92400e; }
.nt-badge--basica { background: #dbeafe; color: #1e40af; }

/* ---------- Bandas ---------- */
.nt-band {
    background: linear-gradient(135deg, var(--nt-ink) 0%, #1e3a8a 100%);
    color: #fff;
    text-align: center;
    padding: 70px 0;
}
.nt-band h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.nt-band p { max-width: 720px; margin: 0 auto 26px; color: rgba(255,255,255,.85); font-size: 16px; }
.nt-band--soft { background: #eff6ff; color: var(--nt-ink); }
.nt-band--soft h2 { color: var(--nt-ink); }
.nt-band--soft p { color: var(--nt-slate); }
.nt-band--inline {
    border-radius: 16px;
    padding: 46px 30px;
    margin: 30px 0 60px;
}

/* ---------- Precio ---------- */
.pricing-title { color: var(--nt-ink); font-weight: 800; margin-bottom: 8px; }
.nt-price-wrap { max-width: 440px; margin: 0 auto 30px; }
.nt-price-card { border-radius: 14px !important; }
.nt-price-card .pricing-header { border-radius: 12px 12px 0 0; padding: 26px 20px; }
.nt-price-card .pricing-header h3 { font-size: 24px; font-weight: 800; }
.nt-price-card .price-amount { font-size: 62px; font-weight: 900; }
.nt-price-card .original-price { font-size: 22px; }
.nt-price-card .pricing-body { padding: 0 34px 10px; }
.nt-price-card .pricing-body ul li { font-size: 15px; padding: 11px 0; }
.nt-price-card .pricing-footer { padding: 10px 34px 6px; }
.nt-btn-buy {
    background: var(--nt-red) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    padding: 17px 18px !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 18px rgba(230,57,70,.3);
}
.nt-btn-buy:hover { background: #c92a37 !important; }
.nt-price-note { text-align: center; font-size: 12px; color: #94a3b8; padding: 10px 26px 22px; margin: 0; }
.nt-price-note i { margin-right: 4px; }

/* ---------- Comparativa ---------- */
.nt-compare-wrap { overflow-x: auto; margin-bottom: 14px; }
.nt-compare {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    font-size: 14px;
}
.nt-compare th {
    background: var(--nt-ink);
    color: #fff;
    padding: 15px 18px;
    text-align: center;
    font-size: 14px;
}
.nt-compare th:first-child, .nt-compare td:first-child { text-align: left; font-weight: 600; color: #334155; }
.nt-compare th:first-child { color: #fff; }
.nt-compare th.is-us { background: var(--nt-blue); }
.nt-compare td { padding: 13px 18px; text-align: center; border-bottom: 1px solid #eef2f7; color: #475569; }
.nt-compare tbody tr:nth-child(even) td { background: #fafcff; }
.nt-compare td.is-us { background: #eff6ff !important; font-weight: 600; color: var(--nt-ink); }
.nt-compare .is-good { color: #15803d !important; }
.nt-compare .is-bad { color: #b91c1c; }
.nt-compare .is-yes { color: #16a34a; font-size: 17px; }
.nt-compare .is-no { color: #dc2626; font-size: 17px; }
.nt-compare-note { font-size: 12px; color: #94a3b8; margin-bottom: 26px; }

/* ---------- Demo ---------- */
.nt-demo-index {
    background: #fff;
    border: 1px solid var(--nt-line);
    border-radius: 14px;
    padding: 22px 22px 14px;
    margin-bottom: 40px;
}
.nt-demo-index .nt-filter { margin-bottom: 16px; }
.nt-demo-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.nt-demo-chips a {
    display: inline-block;
    font-size: 13px;
    color: var(--nt-slate);
    background: var(--nt-soft);
    border-radius: 6px;
    padding: 4px 10px;
}
.nt-demo-chips a:hover { color: var(--nt-blue); background: #eff6ff; }
.nt-demo-item { margin-bottom: 56px; scroll-margin-top: 90px; }
.nt-demo-item-head { display: flex; gap: 16px; align-items: flex-start; }
.nt-demo-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--nt-blue);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 38px;
}
.nt-demo-item .demo-section-title { margin-top: 36px; }
.nt-demo-item .demo-section-desc { margin-bottom: 18px; }
.nt-demo-stage {
    background: #fff;
    border: 1px solid var(--nt-line);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(15,23,42,.06);
    overflow-x: auto;
}
.nt-demo-how { font-size: 13px; color: #64748b; margin: 12px 4px 0; }
.nt-demo-how i { color: var(--nt-amber); margin-right: 6px; }

/* Las tablas exportadas traen sus propios estilos; el tema no debe pisarlos.
   :where() deja estas reglas sin especificidad: solo sustituyen a las reglas base del tema (a, img). */
:where(.nt-demo-table) img { display: inline-block; }
:where(.nt-demo-table) a { color: inherit; }

/* ---------- Guía ---------- */
.nt-guide {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 50px;
    padding-top: 30px;
    padding-bottom: 70px;
}
.nt-guide-toc {
    position: sticky;
    top: 90px;
    align-self: start;
    background: var(--nt-soft);
    border: 1px solid var(--nt-line);
    border-radius: 14px;
    padding: 22px;
    font-size: 14px;
}
.nt-guide-toc strong { display: block; color: var(--nt-ink); margin-bottom: 10px; }
.nt-guide-toc ol { margin: 0 0 18px 18px; color: var(--nt-slate); }
.nt-guide-toc li { margin-bottom: 6px; }
.nt-guide-toc a { color: var(--nt-slate); }
.nt-guide-toc a:hover { color: var(--nt-blue); }
.nt-guide-cta { display: block; text-align: center; font-size: 12px; padding: 12px 14px; }
.nt-guide-body { font-size: 16px; color: #334155; line-height: 1.8; }
.nt-guide-body h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--nt-ink);
    margin: 46px 0 14px;
    scroll-margin-top: 90px;
}
.nt-guide-body h2:first-child { margin-top: 0; }
.nt-guide-body h3 { font-size: 18px; font-weight: 700; color: var(--nt-ink); margin: 24px 0 6px; }
.nt-guide-body p { margin-bottom: 14px; }
.nt-guide-body ul, .nt-guide-body ol { margin: 0 0 18px 22px; }
.nt-guide-body li { margin-bottom: 6px; }
.nt-guide-body a { color: var(--nt-blue); text-decoration: underline; }
.nt-guide-body code {
    background: #eef2f7;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: .9em;
    color: var(--nt-ink);
}
.nt-guide-body img {
    border-radius: 12px;
    border: 1px solid var(--nt-line);
    box-shadow: 0 10px 30px rgba(15,23,42,.08);
    margin: 10px 0 8px;
}

/* ---------- Pie ---------- */
.site-footer { background: var(--nt-ink); }
.footer-claim { font-size: 13px; color: rgba(255,255,255,.7); margin: -6px 0 16px; max-width: 280px; }
.footer-copy {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 34px;
    padding-top: 18px;
    font-size: 12px;
    color: rgba(255,255,255,.55);
    text-align: center;
}
.footer-copy a { color: rgba(255,255,255,.8); }
.footer-logo { height: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .nt-feature-grid, .nt-gallery { grid-template-columns: repeat(2, 1fr); }
    .nt-guide { grid-template-columns: 1fr; gap: 24px; }
    .nt-guide-toc { position: static; }
}
@media (max-width: 768px) {
    .nt-hero h1 { font-size: 30px; }
    .nt-feature-grid, .nt-gallery { grid-template-columns: 1fr; }
    .nt-section-title, .nt-band h2, .features-intro h2 { font-size: 24px; }
    .nt-browser-body { padding: 14px 10px 4px; max-height: 560px; overflow: hidden; position: relative; }
    .nt-browser-body::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 90px;
        background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
        pointer-events: none;
    }
    .nt-demo-stage { padding: 12px; }
    .nt-demo-num { display: none; }
    .header-nav ul { align-items: stretch; }
    .header-nav ul li.header-nav-cta a { margin: 10px 20px; text-align: center; }
    .nt-price-card .pricing-body, .nt-price-card .pricing-footer { padding-left: 22px; padding-right: 22px; }
}

/* ---------- Cabecera oscura (mismo color que el pie) ---------- */
.site-header { background: var(--nt-ink); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.header-nav ul li a:hover { background: rgba(255,255,255,.08); }
@media (max-width: 768px) {
    .header-nav.active { background: var(--nt-ink); padding-bottom: 6px; }
}

/* ============================================================
   Paleta oscura: azul marino (cabecera y pie) + brillo azul + ámbar
   ============================================================ */
.site-header { border-bottom: 1px solid rgba(255,255,255,.06); }

.hero-section {
    position: relative;
    background-color: var(--nt-ink);
    background-image:
        radial-gradient(900px 420px at 50% -8%, rgba(59,130,246,.38), transparent 65%),
        radial-gradient(600px 300px at 92% 20%, rgba(245,158,11,.12), transparent 70%),
        linear-gradient(180deg, #0f172a 0%, #131f3d 100%);
}
/* Rejilla sutil de fondo, como una tabla. */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
}
.hero-section > * { position: relative; }
.hero-section p { color: #cbd5e1; }
.nt-hero-accent {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nt-eyebrow { background: rgba(59,130,246,.16); border-color: rgba(147,197,253,.3); color: #dbeafe; }
.nt-trust { color: #cbd5e1; }
.nt-btn-ghost { border-color: rgba(255,255,255,.35); }
.nt-btn-ghost:hover { background: #fff; color: var(--nt-ink); }
.nt-browser { box-shadow: 0 -10px 60px rgba(59,130,246,.25), 0 0 0 1px rgba(255,255,255,.08); }

/* Títulos de las secciones en tinta, con detalles en azul. */
.module-text h2,
.demo-section-title,
.changelog-version h2 { color: var(--nt-ink); }
.demo-section-title { border-bottom-color: var(--nt-amber); }
.module-text h2::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 4px;
    background: var(--nt-amber);
    margin-bottom: 14px;
}
.module-alt, .pricing-section { background: #f8fafc; }
.nt-feature-icon { background: var(--nt-ink); color: #fbbf24; }

/* Precio: cabecera en tinta con la cinta ámbar. */
.nt-price-card { border-color: var(--nt-ink) !important; box-shadow: 0 20px 50px rgba(15,23,42,.18); }
.nt-price-card .pricing-header { background: var(--nt-ink); }
.nt-price-card .price-amount { color: var(--nt-ink); }
.nt-price-card .pricing-body ul li i { color: var(--nt-amber); }

/* Comparativa y demo */
.nt-compare th.is-us { background: #1e3a8a; }
.nt-filter button.is-active { background: var(--nt-ink); border-color: var(--nt-ink); }
.nt-demo-num { background: var(--nt-ink); color: #fbbf24; }

/* Aviso de vista previa */
.nt-preview-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid var(--nt-amber);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 0 auto 34px;
    max-width: 860px;
    text-align: left;
    font-size: 14px;
    color: #78350f;
    line-height: 1.6;
}
.nt-preview-note i { color: var(--nt-amber); font-size: 20px; margin-top: 2px; }
.nt-preview-note strong { color: #451a03; }
.nt-preview-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 12px;
}
.nt-browser-bar .nt-preview-tag { margin: 0 0 0 10px; white-space: nowrap; }
@media (max-width: 768px) {
    .nt-browser-bar .nt-preview-tag { display: none; }
}
.nt-browser-bar em { min-width: 0; }
.nt-browser-bar .nt-preview-tag { flex-shrink: 0; }
.nt-browser-bar .nt-preview-tag { width: auto; height: auto; border-radius: 999px; background: #fef3c7; }
