/* === NEBULA POLISH v2 — overrides + home único === */

/* === HEADER Y FOOTER GLOBALES DE NEBULA (en TODAS las páginas) === */
.np-skip {
    position: absolute;
    top: -100px;
    left: 8px;
    background: #1E3A5F;
    color: #FAF7F1;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
}
.np-skip:focus { top: 0; }

/* Reset agresivo: que el CSS global del AT no afecte a mi header/footer */
.np-global-header, .np-global-header *,
.np-global-footer, .np-global-footer * {
    box-sizing: border-box;
    font-family: 'Nunito', 'Nunito Sans', system-ui, -apple-system, sans-serif !important;
}
.np-global-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(250, 247, 241, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 9999 !important;
    border-bottom: 1px solid rgba(30, 61, 95, 0.08) !important;
    box-shadow: 0 2px 12px rgba(30, 61, 95, 0.04) !important;
    display: block !important;
}
.np-global-header__inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 14px 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.np-global-header__brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    color: #1E3A5F !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
}
.np-global-header__logo {
    max-height: 44px !important;
    width: auto !important;
    display: block !important;
    height: auto !important;
}
.np-global-header__name {
    font-size: 18px !important;
    color: #1E3A5F !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}
.np-global-header__nav {
    margin-left: auto !important;
    display: block !important;
}
.np-global-header__nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    gap: 2px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}
.np-global-header__nav a {
    color: #1E3A5F !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: background 0.15s, color 0.15s !important;
    display: inline-block !important;
    background: transparent !important;
}
.np-global-header__nav a:hover {
    background: rgba(30, 61, 95, 0.08) !important;
    color: #EA8A6E !important;
}
.np-global-header__nav a[aria-current="page"] {
    color: #EA8A6E !important;
    background: rgba(234, 138, 110, 0.10) !important;
    font-weight: 700 !important;
}
.np-global-header__actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}
.np-global-header__cta {
    background: #EA8A6E !important;
    color: #FFFFFF !important;
    padding: 10px 20px !important;
    border-radius: 100px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: background 0.18s, transform 0.15s !important;
    white-space: nowrap !important;
    display: inline-block !important;
}
.np-global-header__cta:hover { background: #D77B5F !important; transform: translateY(-1px) !important; }
.np-global-header__burger {
    display: none !important;
    background: transparent !important;
    border: none !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 8px !important;
    cursor: pointer !important;
    margin-left: auto !important;
    align-items: center !important;
    justify-content: center !important;
}
.np-global-header__burger span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: #1E3A5F !important;
    border-radius: 2px !important;
    transition: transform 0.2s !important;
}
.np-global-header__mobile {
    display: none !important;
    background: #FAF7F1 !important;
    border-top: 1px solid #E5E7EB !important;
    padding: 12px 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.np-global-header__mobile.open { display: block !important; }
.np-global-header__mobile ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.np-global-header__mobile a {
    color: #1E3A5F !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 12px 14px !important;
    display: block !important;
    border-radius: 8px !important;
}
.np-global-header__mobile a:hover { background: rgba(30, 61, 95, 0.08) !important; color: #EA8A6E !important; }

/* Tablet: ocultar texto del sitio, mantener CTA */
@media (max-width: 1080px) {
    .np-global-header__name { display: none !important; }
    .np-global-header__nav a { padding: 6px 10px !important; font-size: 13px !important; }
}
/* Móvil: burger */
@media (max-width: 900px) {
    .np-global-header__nav { display: none !important; }
    .np-global-header__burger { display: flex !important; }
    .np-global-header__cta { padding: 8px 14px !important; font-size: 13px !important; }
    .np-global-header__inner { padding: 12px 16px !important; gap: 12px !important; }
    .np-global-header__logo { max-height: 36px !important; }
    .np-global-header__mobile.open { display: block !important; }
}
@media (max-width: 480px) {
    .np-global-header__name { display: none !important; }
    .np-global-header__cta { display: none !important; }
    .np-global-header__inner { padding: 10px 14px !important; }
    .np-global-header__burger {
        width: 44px !important;
        height: 44px !important;
        background: rgba(234, 138, 110, 0.12) !important;
        border-radius: 8px !important;
        border: 2px solid rgba(234, 138, 110, 0.4) !important;
    }
}

/* === FOOTER GLOBAL NEBULA === */
.np-global-footer, .np-global-footer * {
    box-sizing: border-box;
    font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif !important;
}
.np-global-footer {
    background: linear-gradient(180deg, #2D5489 0%, #1E3A5F 100%) !important;
    color: #FAF7F1 !important;
    padding: 40px 24px 20px !important;
    margin-top: 0 !important;
    clear: both !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
}
.np-global-footer__inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1.5fr !important;
    gap: 40px !important;
    padding-bottom: 32px !important;
    border-bottom: 1px solid rgba(250, 247, 241, 0.15) !important;
    width: 100% !important;
}
.np-global-footer__logo {
    max-height: 48px !important;
    width: auto !important;
    margin-bottom: 16px !important;
    background: #FAF7F1 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    display: inline-block !important;
    height: auto !important;
}
.np-global-footer__about {
    color: rgba(250, 247, 241, 0.85) !important;
    line-height: 1.6 !important;
    margin: 0 0 12px !important;
    font-size: 14px !important;
    max-width: 480px !important;
}
.np-global-footer__email a, .np-global-footer__phone {
    color: #F5D966 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    margin: 4px 0 !important;
    display: block !important;
    font-size: 14px !important;
}
.np-global-footer__col h4 {
    font-family: 'Nunito', sans-serif !important;
    color: #F5D966 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 0 16px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}
.np-global-footer__col ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}
.np-global-footer__col a, .np-global-footer__col li {
    color: rgba(250, 247, 241, 0.85) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.15s !important;
    line-height: 1.5 !important;
}
.np-global-footer__col a:hover { color: #F5D966 !important; }
.np-global-footer__bottom {
    max-width: 1280px !important;
    margin: 24px auto 0 !important;
    padding-top: 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    color: rgba(250, 247, 241, 0.7) !important;
    font-size: 13px !important;
    width: 100% !important;
    border-top: 1px solid rgba(250, 247, 241, 0.1) !important;
}
.np-global-footer__bottom p { margin: 0 !important; }
.np-global-footer__credit { color: #F5D966 !important; }
@media (max-width: 900px) {
    .np-global-footer__inner { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
    .np-global-footer__inner { grid-template-columns: 1fr !important; gap: 32px !important; }
    .np-global-footer { padding: 40px 20px 20px !important; }
}

/* === HOVER EN FOOTER === */
.np-global-footer a, .np-footer a {
    transition: color 0.2s, padding-left 0.2s, transform 0.2s;
    position: relative;
    display: inline-block;
}
.np-global-footer a:hover, .np-footer a:hover {
    color: #F5D966 !important;
    padding-left: 4px;
}
.np-global-footer__col li, .np-footer li {
    transition: transform 0.2s;
}
.np-global-footer__col li:hover, .np-footer li:hover {
    transform: translateX(4px);
}
.np-global-footer__logo, .np-footer__logo {
    transition: transform 0.3s, filter 0.3s;
}
.np-global-footer__logo:hover, .np-footer__logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(245, 217, 102, 0.4));
}

/* === OCULTAR chrome del AT en TODAS las páginas (no solo home) === */
body.nebula-school .at-header,
body.nebula-school #at-header,
body.nebula-school .at-mobile-menu,
body.nebula-school .at-footer,
body.nebula-school footer.at-footer,
body.home .at-header,
body.home #at-header,
body.home .at-mobile-menu,
body.home .at-footer,
body.home footer.at-footer { display: none !important; }

/* === LLUVIA DE ESTRELLAS (contenido, NO sobre menú ni hero) === */
.np-stars-rain {
    position: absolute;
    top: 100vh; /* debajo del hero, en el área de contenido */
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 9998;
}
.np-stars-rain__star {
    position: absolute;
    top: -40px;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif !important;
    text-shadow: 0 0 12px rgba(245, 217, 102, 0.6);
    animation: np-fall linear forwards;
    user-select: none;
    will-change: transform;
    line-height: 1;
    display: block;
    cursor: pointer;
    pointer-events: auto;
    transition: filter 0.2s, transform 0.2s;
}
.np-stars-rain__star:hover,
.np-stars-rain__star.is-hover {
    filter: drop-shadow(0 0 12px #F5D966) drop-shadow(0 0 24px #F5D966);
    transform: scale(1.3) !important;
    z-index: 9999;
    position: relative;
}
.np-stars-rain__star:focus-visible {
    outline: 3px solid #F5D966;
    outline-offset: 4px;
    border-radius: 50%;
}
.np-stars-rain__star.is-exploding {
    animation: np-explode 0.4s ease-out forwards;
}
@keyframes np-fall {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(110vh) translateX(0); opacity: 0; }
}
@keyframes np-explode {
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(2) rotate(180deg); opacity: 0.6; }
    100% { transform: scale(3) rotate(360deg); opacity: 0; }
}
.np-stars-rain__particle {
    position: fixed;
    font-size: 24px;
    pointer-events: none;
    z-index: 9999;
    animation: np-particle 0.7s ease-out forwards;
}
@keyframes np-particle {
    0%   { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--np-tx), var(--np-ty)) scale(0.3); opacity: 0; }
}

/* === HERO DE PÁGINAS INTERNAS === */
.np-page-hero {
    position: relative;
    min-height: 280px;
    background: linear-gradient(135deg, #1E3A5F 0%, #2D5489 50%, #1E3A5F 100%);
    color: #FAF7F1;
    padding: 56px 24px 32px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 0;
}
.np-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, #FAF7F1, transparent),
        radial-gradient(1px 1px at 60% 70%, #F5D966, transparent),
        radial-gradient(1.5px 1.5px at 80% 20%, #FAF7F1, transparent),
        radial-gradient(1px 1px at 30% 80%, #F5D966, transparent),
        radial-gradient(2px 2px at 90% 60%, #FAF7F1, transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.4;
    z-index: 0;
}
/* Canvas de estrellas (sky) en el hero interno — z-index 1 (encima del ::before, debajo del contenido) */
.np-page-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.np-page-hero__content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}
.np-page-hero__emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    animation: np-float 4s ease-in-out infinite;
}
.np-page-hero h1 {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 900;
    margin: 0 0 8px;
    color: #FAF7F1;
    line-height: 1.15;
}
.np-page-hero h1 .np-accent { color: #F5D966; }
.np-page-hero p {
    color: rgba(250, 247, 241, 0.9);
    font-size: 16px;
    max-width: 620px;
    margin: 0 auto 16px;
    line-height: 1.6;
}
.np-page-hero__breadcrumb {
    color: rgba(245, 217, 102, 0.8);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.np-page-hero__breadcrumb a { color: #F5D966; text-decoration: none; }
.np-page-hero__breadcrumb a:hover { text-decoration: underline; }
.np-page-hero__image {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 16px auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(250, 247, 241, 0.2);
}
.np-page-hero__image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}
body.nebula-school .at-archive {
    background: #FAF7F1;
    border-radius: 0;
    padding-top: 0;
}

/* Eliminar el estilo de "article" del AT y aplicar el nuestro */
body.nebula-school .at-article,
body.nebula-school .at-archive {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
body.nebula-school .at-article__title {
    display: none !important;
}
body.nebula-school .at-archive__title {
    display: none !important;
}
body.nebula-school .at-article__body,
body.nebula-school .at-archive__grid {
    max-width: 1100px;
    margin: 0 auto !important;
    padding: 8px 24px 8px !important;
    background: #FAF7F1;
    border-radius: 0;
    position: relative;
    z-index: 3;
}
body.nebula-school .entry-content,
body.nebula-school .at-article__content {
    font-family: 'Nunito Sans', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #2A3340;
}
body.nebula-school .entry-content h2,
body.nebula-school .at-article__content h2 {
    font-family: 'Nunito', sans-serif;
    color: #1E3A5F;
    font-size: 28px;
    font-weight: 800;
    margin: 32px 0 16px;
}
body.nebula-school .entry-content h3,
body.nebula-school .at-article__content h3 {
    font-family: 'Nunito', sans-serif;
    color: #1E3A5F;
    font-size: 22px;
    font-weight: 700;
    margin: 24px 0 12px;
}
body.nebula-school .entry-content p,
body.nebula-school .at-article__content p { margin: 0 0 16px; }
body.nebula-school .entry-content ul, body.nebula-school .entry-content ol,
body.nebula-school .at-article__content ul, body.nebula-school .at-article__content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}
body.nebula-school .entry-content li,
body.nebula-school .at-article__content li { margin-bottom: 6px; }
body.nebula-school .entry-content strong,
body.nebula-school .at-article__content strong { color: #1E3A5F; }
body.nebula-school .entry-content a,
body.nebula-school .at-article__content a { color: #EA8A6E; font-weight: 600; text-decoration: none; border-bottom: 2px solid rgba(234, 138, 110, 0.3); }
body.nebula-school .entry-content a:hover,
body.nebula-school .at-article__content a:hover { border-bottom-color: #EA8A6E; }

/* Cards de blog */
body.nebula-school .at-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
body.nebula-school .at-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 61, 95, 0.10);
    border-color: #B5D8E0;
}
body.nebula-school .at-card__title a { color: #1E3A5F; text-decoration: none; }
body.nebula-school .at-card__title a:hover { color: #EA8A6E; }
body.nebula-school .at-card__meta { color: #6B7280; font-size: 13px; }
body.nebula-school .at-card__cat a {
    color: #EA8A6E;
    text-decoration: none;
    font-weight: 600;
}
body.nebula-school .at-card__excerpt { color: #4B5563; line-height: 1.6; }
body.nebula-school .at-card__link {
    color: #1E3A5F;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 0 !important;
}

/* Reset header al logo real de Nebula (PHP inyecta, esto es refuerzo) */
.at-header__brand .at-logo { background-color: transparent !important; }
.at-header__brand .at-logo svg,
.at-header__brand .at-logo .at-logo__svg { display: none !important; }

/* === HEADER Y FOOTER DEL HOME (front-page-nebula.php) ===
   Mismo reset agresivo que las internas */
.np-header, .np-header *,
.np-footer, .np-footer * {
    box-sizing: border-box !important;
    font-family: 'Nunito', 'Nunito Sans', system-ui, -apple-system, sans-serif !important;
}
.np-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(250, 247, 241, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 9999 !important;
    border-bottom: 1px solid rgba(30, 61, 95, 0.08) !important;
    box-shadow: 0 2px 12px rgba(30, 61, 95, 0.04) !important;
    display: block !important;
}
.np-header__inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 14px 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    width: 100% !important;
}
.np-header__brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    color: #1E3A5F !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
}
.np-header__logo {
    max-height: 44px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}
.np-header__name {
    font-size: 18px !important;
    color: #1E3A5F !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}
.np-header__nav { margin-left: auto !important; }
.np-header__nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    gap: 2px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}
.np-header__nav a {
    color: #1E3A5F !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: background 0.15s, color 0.15s !important;
    display: inline-block !important;
    background: transparent !important;
}
.np-header__nav a:hover {
    background: rgba(30, 61, 95, 0.08) !important;
    color: #EA8A6E !important;
}
.np-header__actions { display: flex !important; align-items: center !important; gap: 12px !important; }
.np-header__cta {
    background: #EA8A6E !important;
    color: #FFFFFF !important;
    padding: 10px 20px !important;
    border-radius: 100px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    display: inline-block !important;
}
.np-header__cta:hover { background: #D77B5F !important; }
.np-header__burger { display: none !important; }
.np-header__mobile { display: none !important; }

@media (max-width: 1080px) {
    .np-header__name { display: none !important; }
    .np-header__nav a { padding: 6px 10px !important; font-size: 13px !important; }
}
@media (max-width: 900px) {
    .np-header__nav { display: none !important; }
    .np-header__burger { display: flex !important; }
    .np-header__cta { padding: 8px 14px !important; font-size: 13px !important; }
    .np-header__inner { padding: 12px 16px !important; gap: 12px !important; }
    .np-header__logo { max-height: 36px !important; }
    .np-header__mobile.open { display: block !important; }
}
@media (max-width: 480px) {
    .np-header__name { display: none !important; }
    .np-header__cta { display: none !important; }
}

/* === FOOTER DEL HOME === */
.np-footer {
    background: linear-gradient(180deg, #2D5489 0%, #1E3A5F 100%) !important;
    color: #FAF7F1 !important;
    padding: 40px 24px 20px !important;
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
    clear: both !important;
}
.np-footer__inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 40px !important;
    padding-bottom: 32px !important;
    border-bottom: 1px solid rgba(250, 247, 241, 0.15) !important;
    width: 100% !important;
}
.np-footer__brand, .np-footer__nav, .np-footer__legal { color: #FAF7F1 !important; }
.np-footer__brand a, .np-footer__nav a, .np-footer__legal a {
    color: #F5D966 !important;
    text-decoration: none !important;
}
.np-footer__logo {
    max-height: 48px !important;
    width: auto !important;
    background: #FAF7F1 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    margin-bottom: 16px !important;
    display: inline-block !important;
    height: auto !important;
}
.np-footer h4 {
    color: #F5D966 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 0 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}
.np-footer ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.np-footer ul li { margin-bottom: 8px !important; }
.np-footer__about {
    color: rgba(250, 247, 241, 0.85) !important;
    line-height: 1.6 !important;
    margin: 0 0 12px !important;
    font-size: 14px !important;
}
.np-footer__bottom {
    max-width: 1280px !important;
    margin: 24px auto 0 !important;
    padding-top: 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    color: rgba(250, 247, 241, 0.7) !important;
    font-size: 13px !important;
    width: 100% !important;
}
.np-footer__credit { color: #F5D966 !important; }

@media (max-width: 900px) {
    .np-footer__inner { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
    .np-footer__inner { grid-template-columns: 1fr !important; }
    .np-footer { padding: 40px 20px 20px !important; }
}

/* WC rastro oculto */
.at-header__cart,
.at-header__cart-count,
.at-header__actions a[href*="/mi-cuenta/"] { display: none !important; }

/* Paleta forzada */
:root {
    --at-primary: #1E3A5F !important;
    --at-secondary: #EA8A6E !important;
    --at-navy: #1E3A5F !important;
    --at-cream: #FAF7F1;
    --at-yellow: #F5D966;
}

/* === Tipografía Nebula === */
body.at-body, body.nebula-school, body {
    background: var(--at-cream) !important;
    color: #1A1A1A;
    font-family: 'Nunito Sans', system-ui, sans-serif !important;
}

/* ============================================================
   FRONT-PAGE NEBULA — Override completo del front-page del AT
============================================================ */
body.home .at-main {
    background: transparent !important;
    padding: 0 !important;
}
body.home .at-container { max-width: 100% !important; padding: 0 !important; }

/* === HERO NEBULA === */
.np-hero {
    position: relative;
    min-height: 92vh;
    background: radial-gradient(ellipse at 30% 20%, #2D5489 0%, #1E3A5F 45%, #0A1E3A 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FAF7F1;
    font-family: 'Nunito', sans-serif;
}
.np-stars-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.np-hero__content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    padding: 48px 24px;
}
.np-hero__logo {
    max-width: 320px;
    margin: 0 auto 28px;
    display: block;
    filter: drop-shadow(0 4px 24px rgba(245, 217, 102, 0.4));
    animation: np-float 6s ease-in-out infinite;
}
@keyframes np-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.np-hero__badge {
    display: inline-block;
    background: rgba(245, 217, 102, 0.15);
    border: 1px solid rgba(245, 217, 102, 0.4);
    color: #F5D966;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.np-hero__title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 20px;
    color: #FAF7F1;
}
.np-hero__title .np-accent { color: #F5D966; }
.np-hero__subtitle {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.6;
    color: rgba(250, 247, 241, 0.92);
    max-width: 680px;
    margin: 0 auto 32px;
}
.np-hero__ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.np-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.18s;
    border: 2px solid transparent;
    cursor: pointer;
}
.np-btn-primary {
    background: #EA8A6E;
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(234, 138, 110, 0.4);
}
.np-btn-primary:hover {
    background: #D77B5F;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(234, 138, 110, 0.5);
}
.np-btn-ghost {
    background: transparent;
    color: #FAF7F1;
    border-color: rgba(250, 247, 241, 0.4);
}
.np-btn-ghost:hover {
    background: rgba(250, 247, 241, 0.1);
    border-color: #F5D966;
}
.np-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(250, 247, 241, 0.6);
    font-size: 13px;
    text-align: center;
}
.np-scroll::after {
    content: '↓';
    display: block;
    font-size: 24px;
    animation: np-bounce 2s ease-in-out infinite;
    margin-top: 4px;
}
@keyframes np-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* === STATS NEBULA === */
.np-stats {
    background: #FAF7F1;
    padding: 64px 24px;
    text-align: center;
}
.np-stats h2 {
    font-family: 'Nunito', sans-serif;
    color: #1E3A5F;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    margin: 0 0 8px;
}
.np-stats__lead {
    color: #4B5563;
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 1.6;
}
.np-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}
.np-stat {
    padding: 28px 20px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.np-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 61, 95, 0.10);
    border-color: #EA8A6E;
}
.np-stat__num {
    font-family: 'Nunito', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #EA8A6E;
    line-height: 1;
    margin-bottom: 8px;
}
.np-stat__label {
    font-size: 14px;
    color: #4B5563;
    font-weight: 600;
}

/* === MINI-JUEGO DE SÍLABAS === */
.np-game-section {
    background: linear-gradient(180deg, #FAF7F1 0%, #FFFFFF 100%);
    padding: 80px 24px;
}
.np-game-wrap {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.np-game-wrap h2 {
    font-family: 'Nunito', sans-serif;
    color: #1E3A5F;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin: 0 0 12px;
}
.np-game-wrap p {
    color: #4B5563;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.np-syllables {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 12px 40px rgba(30, 61, 95, 0.10);
    border: 2px solid #B5D8E0;
}
.np-target {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 900;
    color: #1E3A5F;
    margin: 16px 0 8px;
    letter-spacing: 0.04em;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.np-target__syllable {
    display: inline-block;
    animation: np-pop 0.4s ease;
    color: #1E3A5F;
}
.np-target__syllable.np-slot {
    color: #EA8A6E;
    border: 3px dashed #EA8A6E;
    border-radius: 12px;
    padding: 4px 12px;
    margin: 0 4px;
    min-width: 70px;
    background: rgba(234, 138, 110, 0.08);
    font-weight: 900;
    letter-spacing: 0.04em;
    animation: np-pulse 1.4s ease-in-out infinite;
}
.np-target__syllable.filled {
    background: #D1FAE5;
    border: 3px solid #6EE7B7;
    color: #065F46;
    border-radius: 12px;
    padding: 4px 12px;
    margin: 0 4px;
    animation: np-burst 0.5s ease;
}
.np-target__emoji {
    font-size: 56px;
    margin-right: 12px;
    animation: np-pop 0.5s ease;
}
@keyframes np-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
@keyframes np-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.np-hint {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 24px;
    min-height: 22px;
}
.np-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}
.np-syllable-btn {
    background: #FAF7F1;
    border: 3px solid #B5D8E0;
    color: #1E3A5F;
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 800;
    padding: 16px 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.15s, background 0.18s, border-color 0.18s, color 0.18s;
    min-width: 90px;
}
.np-syllable-btn:hover {
    background: #B5D8E0;
    border-color: #1E3A5F;
    transform: scale(1.05);
}
.np-syllable-btn:focus-visible {
    outline: 3px solid #F5D966;
    outline-offset: 2px;
}
.np-syllable-btn.correct {
    background: #D1FAE5;
    border-color: #6EE7B7;
    color: #065F46;
    animation: np-burst 0.5s ease;
}
.np-syllable-btn.wrong {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #991B1B;
    animation: np-shake 0.4s;
}
@keyframes np-burst {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); box-shadow: 0 0 32px rgba(110, 231, 183, 0.7); }
    100% { transform: scale(1); }
}
@keyframes np-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}
.np-score {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 15px;
    color: #4B5563;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.np-score strong { color: #1E3A5F; font-weight: 800; }
.np-stars-feedback {
    font-size: 32px;
    min-height: 44px;
    color: #F5D966;
    letter-spacing: 0.2em;
}
.np-progress {
    height: 6px;
    background: #E5E7EB;
    border-radius: 100px;
    overflow: hidden;
    margin-top: 16px;
}
.np-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #1E3A5F, #EA8A6E, #F5D966);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 100px;
}
.np-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.np-mini-btn {
    background: transparent;
    border: 2px solid #1E3A5F;
    color: #1E3A5F;
    padding: 10px 20px;
    border-radius: 100px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.np-mini-btn:hover { background: #1E3A5F; color: #FAF7F1; }
.np-mini-btn:focus-visible { outline: 3px solid #F5D966; outline-offset: 2px; }

/* === FEATURES NEBULA === */
.np-features {
    background: #1E3A5F;
    color: #FAF7F1;
    padding: 80px 24px;
}
.np-features__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.np-features__eyebrow {
    color: #F5D966;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.np-features__head h2 {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin: 0 0 12px;
    color: #FAF7F1;
}
.np-features__head p {
    color: rgba(250, 247, 241, 0.85);
    font-size: 16px;
    line-height: 1.6;
}
.np-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.np-feature {
    background: rgba(250, 247, 241, 0.05);
    border: 1px solid rgba(245, 217, 102, 0.2);
    border-radius: 20px;
    padding: 32px 24px;
    transition: transform 0.2s, background 0.2s;
}
.np-feature:hover {
    transform: translateY(-4px);
    background: rgba(250, 247, 241, 0.08);
}
.np-feature__icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}
.np-feature h3 {
    font-family: 'Nunito', sans-serif;
    color: #F5D966;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 8px;
}
.np-feature p {
    color: rgba(250, 247, 241, 0.85);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* === CTA FINAL === */
.np-cta {
    background: linear-gradient(135deg, #FAF7F1 0%, #F5E5C5 100%);
    padding: 80px 24px;
    text-align: center;
}
.np-cta h2 {
    font-family: 'Nunito', sans-serif;
    color: #1E3A5F;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin: 0 0 12px;
}
.np-cta p {
    color: #4B5563;
    max-width: 600px;
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 1.6;
}

/* === Responsive === */
@media (max-width: 720px) {
    .np-hero { min-height: 80vh; }
    .np-hero__logo { max-width: 220px; }
    .np-stat__num { font-size: 36px; }
    .np-stats, .np-game-section, .np-features, .np-cta { padding: 56px 20px; }
    .np-syllable-btn { font-size: 20px; padding: 12px 18px; min-width: 70px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* === BANNER PROMOCIONAL: Zona de juegos === */
.np-promo-section {
    background: #FAF7F1;
    padding: 40px 24px;
}
.np-promo-banner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1E3A5F 0%, #2D5489 50%, #1E3A5F 100%);
    border-radius: 28px;
    padding: 64px 48px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30, 61, 95, 0.25);
    border: 1px solid rgba(245, 217, 102, 0.2);
}
.np-promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 15% 25%, #F5D966, transparent),
        radial-gradient(1.5px 1.5px at 50% 50%, #FAF7F1, transparent),
        radial-gradient(1px 1px at 85% 20%, #FAF7F1, transparent),
        radial-gradient(2px 2px at 30% 75%, #B5D8E0, transparent),
        radial-gradient(1.5px 1.5px at 75% 80%, #F5D966, transparent);
    background-size: 240px 240px;
    background-repeat: repeat;
    opacity: 0.5;
    pointer-events: none;
}
.np-promo-banner__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.np-promo-banner__star {
    position: absolute;
    font-size: 32px;
    opacity: 0.4;
    animation: np-float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(245, 217, 102, 0.6));
}
.np-promo-banner__star--1 { top: 12%; left: 6%; animation-delay: 0s; font-size: 28px; }
.np-promo-banner__star--2 { top: 24%; right: 8%; animation-delay: 1.2s; font-size: 36px; }
.np-promo-banner__star--3 { top: 60%; left: 4%; animation-delay: 2.4s; font-size: 32px; }
.np-promo-banner__star--4 { top: 72%; right: 5%; animation-delay: 0.6s; font-size: 40px; }
.np-promo-banner__star--5 { top: 45%; left: 50%; animation-delay: 1.8s; font-size: 24px; }
.np-promo-banner__star--6 { top: 6%; right: 32%; animation-delay: 3s; font-size: 30px; }
.np-promo-banner__inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.np-promo-banner__eyebrow {
    display: inline-block;
    background: rgba(245, 217, 102, 0.18);
    border: 1px solid rgba(245, 217, 102, 0.5);
    color: #F5D966;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.np-promo-banner__title {
    font-family: 'Nunito', sans-serif;
    color: #FAF7F1;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    margin: 0 0 16px;
    line-height: 1.15;
}
.np-promo-banner__title .np-accent {
    color: #F5D966;
    position: relative;
}
.np-promo-banner__title .np-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(245, 217, 102, 0.3);
    z-index: -1;
    border-radius: 3px;
}
.np-promo-banner__desc {
    color: rgba(250, 247, 241, 0.9);
    font-size: 17px;
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto 32px;
}
.np-promo-banner__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.np-promo-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #EA8A6E;
    color: #FFFFFF;
    padding: 18px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 17px;
    box-shadow: 0 8px 24px rgba(234, 138, 110, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.np-promo-banner__cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(234, 138, 110, 0.5);
    background: #D77B5F;
    color: #FFFFFF;
}
.np-promo-banner__cta-arrow {
    display: inline-block;
    transition: transform 0.2s;
    font-size: 20px;
    font-weight: 700;
}
.np-promo-banner__cta:hover .np-promo-banner__cta-arrow {
    transform: translateX(4px);
}
.np-promo-banner__note {
    color: rgba(250, 247, 241, 0.6);
    font-size: 13px;
    letter-spacing: 0.04em;
    font-weight: 600;
}
@media (max-width: 720px) {
    .np-promo-banner { padding: 48px 24px; border-radius: 20px; }
    .np-promo-banner__cta { padding: 16px 24px; font-size: 15px; }
}

/* === BANNERS DE ENVÍO A SECCIONES (rutas) === */
.np-routes {
    background: #FAF7F1;
    padding: 80px 24px;
}
.np-routes__grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.np-route-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    border-radius: 24px;
    text-decoration: none;
    color: #1E3A5F;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    min-height: 280px;
}
.np-route-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(30, 61, 95, 0.12);
    border-color: #EA8A6E;
}
.np-route-card__bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at top right, rgba(245, 217, 102, 0.15) 0%, transparent 70%);
    border-radius: 0 0 0 100%;
    pointer-events: none;
}
.np-route-card--navy .np-route-card__bg { background: radial-gradient(circle at top right, rgba(30, 61, 95, 0.10) 0%, transparent 70%); }
.np-route-card--coral .np-route-card__bg { background: radial-gradient(circle at top right, rgba(234, 138, 110, 0.15) 0%, transparent 70%); }
.np-route-card--yellow .np-route-card__bg { background: radial-gradient(circle at top right, rgba(245, 217, 102, 0.20) 0%, transparent 70%); }
.np-route-card--sky .np-route-card__bg { background: radial-gradient(circle at top right, rgba(181, 216, 224, 0.25) 0%, transparent 70%); }
.np-route-card__icon {
    font-size: 36px;
    display: block;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.np-route-card__eyebrow {
    display: inline-block;
    background: rgba(234, 138, 110, 0.10);
    color: #D77B5F;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.np-route-card--navy .np-route-card__eyebrow { background: rgba(30, 61, 95, 0.10); color: #1E3A5F; }
.np-route-card--yellow .np-route-card__eyebrow { background: rgba(245, 217, 102, 0.25); color: #8B6914; }
.np-route-card--sky .np-route-card__eyebrow { background: rgba(181, 216, 224, 0.30); color: #4A8FA8; }
.np-route-card__title {
    font-family: 'Nunito', sans-serif;
    color: #1E3A5F;
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}
.np-route-card__desc {
    color: #4B5563;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px;
    flex: 1;
    position: relative;
    z-index: 1;
}
.np-route-card__cta {
    color: #EA8A6E;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}
.np-route-card:hover .np-route-card__cta { color: #D77B5F; }
.np-route-card:hover .np-route-card__title { color: #EA8A6E; }

/* === FIX 3: REDUCIR PADDING ENTRE HERO INTERNO Y BODY === */
@media (min-width: 901px) {
    body.nebula-school .at-article__body { padding-top: 0 !important; }
    body.nebula-school .np-page-hero { padding-bottom: 8px !important; }
}
@media (max-width: 900px) {
    body.nebula-school .at-article__body { padding-top: 0 !important; padding-bottom: 0 !important; }
    body.nebula-school .np-page-hero { padding-bottom: 8px !important; }
    body.nebula-school .np-page-hero { padding-top: 40px !important; }
    body.nebula-school .np-page-hero__image img { height: 160px !important; }
}

/* === FIX 4: BOTONES DE CONTACTO (mientras tanto) === */
.np-welcome-rich .np-cta-rich,
.np-welcome-rich a.np-cta-rich {
    color: #FFFFFF !important;
    background: #EA8A6E !important;
    text-decoration: none !important;
    display: inline-flex !important;
}
.np-welcome-rich a.np-cta-rich--navy {
    color: #FFFFFF !important;
    background: #1E3A5F !important;
}
.np-welcome-rich a.np-cta-rich:hover {
    color: #FFFFFF !important;
    background: #D77B5F !important;
}
.np-welcome-rich a.np-cta-rich--navy:hover {
    color: #FFFFFF !important;
    background: #2D5489 !important;
}

/* === FIX .at-section: sobrescribir padding del theme AT (era 64-96px) === */
.at-section,
.at-section--alt,
body.nebula-school .at-section,
body.nebula-school .at-section--alt {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}
@media (min-width: 768px) {
    .at-section,
    .at-section--alt,
    body.nebula-school .at-section,
    body.nebula-school .at-section--alt {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
}

/* === FIX 1: TESTIMONIOS (manifiesto) centrados al ancho total === */
.np-manifesto {
    text-align: center !important;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: calc(100% - 48px) !important;
    padding: 48px 32px !important;
    box-sizing: border-box !important;
}
.np-manifesto__text {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* === FIX 3: TEXTOS DE JUEGOS no se corten antes de tiempo === */
.np-program-card__desc,
.np-program-card__features li,
.np-feature-card__desc,
.np-different__desc,
.np-info-card__desc,
.np-blog-card__excerpt {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    text-wrap: pretty;
}

/* === FIX 6: GALERÍA DE LA SEDE === */
.np-gallery-section {
    background: #FAF7F1;
    padding: 64px 24px;
}
.np-gallery-section .np-section-title {
    font-family: 'Nunito', sans-serif;
    color: #1E3A5F;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin: 0 auto 16px;
    max-width: 1100px;
    padding: 0 0 12px;
    position: relative;
    text-align: center !important;
}
.np-gallery-section .np-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: #EA8A6E;
    border-radius: 3px;
}
.np-gallery-section .np-section-subtitle {
    text-align: center !important;
    max-width: 700px;
    margin: 0 auto 32px;
    color: #6B7280;
    font-size: 16px;
    line-height: 1.5;
}
.np-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}
.np-gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #1E3A5F;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(30, 61, 95, 0.10);
}
.np-gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
}
.np-gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(30, 61, 95, 0.20);
}
.np-gallery-item__label {
    position: relative;
    z-index: 1;
    color: #FAF7F1;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 15px;
    padding: 16px 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* === FIX 1: TESTIMONIOS (manifiesto) centrados al ancho total === */
.np-manifesto {
    text-align: center !important;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: calc(100% - 48px) !important;
    padding: 48px 32px !important;
    box-sizing: border-box !important;
}
.np-manifesto__text {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* === FIX 3: TEXTOS DE JUEGOS no se corten antes de tiempo === */
.np-program-card__desc,
.np-program-card__features li,
.np-feature-card__desc,
.np-different__desc,
.np-info-card__desc,
.np-blog-card__excerpt {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    text-wrap: pretty;
}
