/* ===== Página HERRAMIENTAS (shortcode [neuro-interactivo]) ===== */
.neuro-hero {
    text-align: center;
    padding: 90px 20px 60px;
}
.neuro-badge {
    background: #EEF4F0;
    color: #205339;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 18px;
}
.neuro-hero h1 {
    font-size: 40px;
    margin: 0 0 12px;
}
.neuro-hero p {
    color: #6b7280;
    max-width: 640px;
    margin: 0 auto;
}

.neuro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    padding: 40px 24px 80px;
}
.neuro-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 26px 70px rgba(0,0,0,.06);
    text-decoration: none;
    color: #111827;
    transition: transform .25s ease, box-shadow .25s ease;
}
.neuro-card h3 {
    font-size: 16px;
    margin: 0 0 10px;
}
.neuro-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}
.neuro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0,0,0,.08);
}

/* Responsive */
@media (max-width: 768px) {
    .neuro-hero {
        padding-top: 60px;
    }
    .neuro-hero h1 {
        font-size: 28px;
    }
    .neuro-grid {
        padding: 32px 16px 60px;
        gap: 20px;
    }
}

/* ===== Páginas de TEST: ocultar headers y full-screen iframe ===== */
.neuro-test-page header,
.neuro-test-page .site-header,
.neuro-test-page .site-footer,
.neuro-test-page .entry-header,
.neuro-test-page .page-header,
.neuro-test-page .entry-title,
.neuro-test-page .page-title,
.neuro-test-page .kadence-page-title {
    display: none !important;
}

.neuro-test-page #primary,
.neuro-test-page .content-area,
.neuro-test-page .site-main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.neuro-test-wrapper {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.neuro-test-iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
}

/* Botón flotante ATRÁS en páginas de test */
.neuro-test-back {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 9999;
}
.neuro-test-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(0,0,0,.16);
    font-size: 13px;
    color: #111827;
    text-decoration: none;
}
.neuro-test-back-link:hover {
    box-shadow: 0 18px 45px rgba(0,0,0,.20);
}
.neuro-test-back-icon {
    font-size: 14px;
    line-height: 1;
}
.neuro-test-back-text {
    font-weight: 500;
}
@media (max-width: 768px) {
    .neuro-test-back {
        top: 12px;
        left: 12px;
    }
    .neuro-test-back-link {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Botón ATRÁS centrado verticalmente a la derecha */
.neuro-test-back {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

@media (max-width: 768px) {
    .neuro-test-back {
        right: 12px;
    }
}

/* Ajuste grid específico de herramientas interactivas */
.neuro-grid--interactive {
    max-width: 1100px;
    margin: 0 auto 80px;
}

/* Tarjetas tipo blog premium */
.neuro-card--interactive {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 24px;
    background: #FAFCFA;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.06);
}

.neuro-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0f172a;
    flex-shrink: 0;
}

.neuro-card-icon--tmt {
    background: radial-gradient(circle at 0% 0%, #c4f1ff, #60a5fa);
}

.neuro-card-icon--parto {
    background: radial-gradient(circle at 0% 0%, #fde68a, #f59e0b);
}

.neuro-card-icon--psico {
    background: radial-gradient(circle at 0% 0%, #e9d5ff, #8b5cf6);
}

.neuro-card-icon-letter {
    transform: translateY(1px);
}

.neuro-card-body h3 {
    margin: 4px 0 8px;
    font-size: 18px;
}

.neuro-card-body p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #6b7280;
}

.neuro-card-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #EEF4F0;
    color: #205339;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
}

.neuro-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #205339;
}

.neuro-card-cta::after {
    content: '↗';
    font-size: 12px;
    transform: translateY(1px);
}

.neuro-card--interactive:hover {
    transform: translateY(-3px);
}

/* Responsive tarjetas */
@media (max-width: 768px) {
    .neuro-card--interactive {
        padding: 18px 16px;
        gap: 14px;
    }
    .neuro-card-body h3 {
        font-size: 16px;
    }
}

/* ===== SHELL DE TEST: barra superior + iframe centrado ===== */
.neuro-test-shell {
    min-height: 100vh;
    background: #020617;
}

.neuro-test-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.neuro-test-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #0b1120;
    box-shadow: 0 10px 25px rgba(15,23,42,.5);
    font-size: 12px;
    color: #e5e7eb;
    text-decoration: none;
}

.neuro-test-back-link:hover {
    background: #020617;
}

.neuro-test-back-icon {
    font-size: 14px;
    line-height: 1;
}

.neuro-test-back-text {
    font-weight: 500;
}

.neuro-test-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

/* Área del iframe */
.neuro-test-frame-area {
    position: fixed;
    top: 48px; /* altura aproximada de la barra superior */
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
}

.neuro-test-iframe {
    border: none;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    background: #020617;
}

/* Ajuste en móvil: barra algo más compacta */
@media (max-width: 768px) {
    .neuro-test-topbar {
        padding: 8px 10px;
        gap: 8px;
    }
    .neuro-test-title {
        font-size: 13px;
    }
}
