/* ==========================================================================
   Nexoss Academy (academy.nexossconsulting.com) — landing page styles
   Typeface: Inter Tight (Google Fonts, loaded from index.html).
   ========================================================================== */

:root {
    --c-bg: #000;
    --c-bg-soft: #0a0a0a;
    --c-card: #121212;
    --c-white: #fff;
    --c-grey-3: #cfcfcf;
    --c-grey-4: #8a8a8a;
    --c-yellow: #ffb829;
    --c-purple: #8052ff;
    --c-green: #189b81;
    --c-border: rgba(255, 255, 255, 0.1);
    --c-error: #ff7070;
    --c-noise-blend: normal;
    --c-noise-opacity: 0.05;
    --max-w: 1240px;
    color-scheme: dark;
    transition: background-color 0.35s ease;
}

/* Solo modo oscuro: el modo claro y su botón se retiraron. */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background-color: var(--c-bg);
    color: var(--c-white);
    font-family: 'Inter Tight', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    transition: background-color 0.35s ease, color 0.35s ease;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    /* Film grain generated in SVG, no image file needed. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 240px;
    mix-blend-mode: var(--c-noise-blend);
    opacity: var(--c-noise-opacity);
    pointer-events: none;
}

/* Floating pyramids behind the whole page (scripts/3d/page-pyramids.js): under the content, never clickable. */
.page-pyramids {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    backdrop-filter: blur(6px);
    transition: background 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.header.is-scrolled {
    background: rgba(0, 0, 0, 0.82);
    border-bottom-color: var(--c-border);
}

.header__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.logo__mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--c-purple), var(--c-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__link {
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--c-grey-3);
    transition: color 0.2s ease;
}

.nav__link {
    position: relative;
    white-space: nowrap;
}

/* Enlaces al ecosistema Nexoss: solo en el menú móvil (en escritorio están en el pie) */
.nav__eco {
    display: none;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 2px;
    background: var(--c-yellow);
    transition: right 0.25s ease;
}

.nav__link:hover {
    color: var(--c-white);
}

.nav__link.is-active {
    color: var(--c-white);
}

.nav__link.is-active::after {
    right: 0;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: flex;
    background: none;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--c-white);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    border-radius: 8px;
}

/* ---------- Barra "Ecosistema Nexoss" (sobre el header; se va al hacer scroll) ----------
   IGUAL en los tres sitios (nexossconsulting.com, ia. y academy.): mismos colores, tamaños,
   tipografía, icono y efecto al pasar el ratón. Si se cambia, cambiarla en los tres. */

.eco-bar {
    box-sizing: border-box;
    height: 45px;
    background: #0b0d10;
    border-bottom: 1px solid #2b3039;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.eco-bar__inner {
    max-width: var(--max-w);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.eco-bar__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8f98;
}

.eco-bar__links {
    display: flex;
    gap: 8px;
}

.eco-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid #2b3039;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #c4c8ce;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.eco-bar__btn:hover,
.eco-bar__btn:focus-visible {
    background: #f5c400;
    border-color: #f5c400;
    color: #0b0d10;
}

.eco-bar__btn:focus-visible {
    outline: 2px solid #f5c400;
    outline-offset: 2px;
}

.eco-bar__btn svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    background: var(--c-white);
    color: var(--c-bg);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.btn:hover {
    background: var(--c-yellow);
    color: #000;
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--c-white);
    border: 1px solid var(--c-border);
}

.btn--ghost:hover {
    background: var(--c-white);
    color: var(--c-bg);
}

.btn--whatsapp {
    background: #25d366;
    color: #06240f;
}

.btn--whatsapp:hover {
    background: #1fb857;
    color: #06240f;
}

.btn__icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Floating WhatsApp shortcut, always reachable; sits under the open mobile menu. */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #06240f;
    box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.7);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Sections / typography ---------- */

.section {
    padding: 96px 0;
    position: relative;
}

.section--tight {
    padding: 64px 0;
}

.eyebrow {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
}

.eyebrow--yellow { color: var(--c-yellow); }
.eyebrow--purple { color: var(--c-purple); }
.eyebrow--green { color: var(--c-green); }

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.t-body {
    color: var(--c-grey-3);
    font-weight: 300;
    line-height: 1.6;
}

/* ---------- Hero ---------- */

/* The hero is also a .container: keep its 24px side gutter, which .section's padding would otherwise reset. */
.hero {
    padding: 120px 24px 100px;
    text-align: left;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 16px;
}

.hero__visual {
    position: relative;
    width: 100%;
    max-width: 680px;
    aspect-ratio: 1 / 1;
    justify-self: center;
}

.hero__visual canvas {
    width: 100%;
    height: 100%;
    display: block;
    -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 92%);
    mask-image: radial-gradient(circle, #000 62%, transparent 92%);
}

.hero__title {
    font-size: clamp(40px, 6vw, 84px);
    max-width: 16ch;
    margin-bottom: 28px;
}

.hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--c-purple), var(--c-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subtitle {
    font-size: clamp(18px, 2vw, 22px);
    max-width: 56ch;
    color: var(--c-grey-3);
    font-weight: 300;
    margin-bottom: 36px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    border-top: 1px solid var(--c-border);
    padding-top: 32px;
}

.stat__number {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat__label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-grey-4);
}

/* ---------- Intro banner ---------- */

.intro {
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.intro__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

.intro__title {
    font-size: clamp(28px, 3.4vw, 44px);
}

/* ---------- Cards grid ---------- */

.section-head {
    max-width: 760px;
    margin-bottom: 56px;
}

.section-head__title {
    font-size: clamp(30px, 4vw, 48px);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
    background-color: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 18px;
    padding: 34px 30px;
    transition: border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -30px rgba(0, 0, 0, 0.6);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-6px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 28px 50px -24px rgba(128, 82, 255, 0.35);
}

.card__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.02em;
    margin-bottom: 26px;
    color: #000;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
}

.card__title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.card__body {
    font-size: 15px;
    color: var(--c-grey-4);
    font-weight: 300;
    line-height: 1.6;
}

/* icon colour variants */
.icon--purple { background: var(--c-purple); }
.icon--yellow { background: var(--c-yellow); }
.icon--green { background: var(--c-green); }

/* ---------- Steps / methodology ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step {
    border-top: 1px solid var(--c-border);
    padding-top: 24px;
}

.step__number {
    counter-increment: step;
    font-size: 13px;
    color: var(--c-grey-4);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.step__number::before {
    content: "0" counter(step);
    margin-right: 8px;
    color: var(--c-yellow);
    font-weight: 600;
}

.step__title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step__body {
    font-size: 14px;
    color: var(--c-grey-4);
    font-weight: 300;
    line-height: 1.6;
}

/* ---------- CTA banner ---------- */

.cta-banner {
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(128, 82, 255, 0.25), transparent 60%);
    border-radius: 24px;
    padding: 80px 32px;
    border: 1px solid var(--c-border);
}

.cta-banner__title {
    font-size: clamp(28px, 4vw, 48px);
    max-width: 20ch;
    margin: 0 auto 32px;
}

.cta-banner__cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-banner__contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin-top: 28px;
    font-size: 15px;
    color: var(--c-grey-3);
}

.cta-banner__contact a:hover {
    color: var(--c-white);
}

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--c-border);
    padding: 48px 0;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer__copy {
    font-size: 13px;
    color: var(--c-grey-4);
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    font-size: 13px;
    color: var(--c-grey-4);
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--c-white);
}

.footer__social {
    display: flex;
    gap: 14px;
}

.footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer__social a:hover {
    background: var(--c-white);
    color: var(--c-bg);
}

.footer__social svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Ecosistema Nexoss (Nexoss Consulting, Nexoss IA) y política de privacidad */
.footer__eco {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--c-border);
    font-size: 13px;
    color: var(--c-grey-4);
}

.footer__eco-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
}

.footer__eco-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer__eco a {
    color: var(--c-grey-3);
    transition: color 0.2s ease;
}

.footer__eco a:hover {
    color: var(--c-white);
}

/* ---------- Formulario de contacto (#contacto) ---------- */

.contact-form {
    max-width: 760px;
    margin: 48px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--c-border);
    text-align: left;
}

.contact-form__intro {
    margin: 0 0 28px;
    text-align: center;
    font-size: 17px;
    color: var(--c-grey-3);
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.form-field--wide {
    grid-column: 1 / -1;
}

.form-field__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-grey-3);
}

.form-field__req {
    color: var(--c-yellow);
}

.form-field__optional {
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
    color: var(--c-grey-4);
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    font: inherit;
    font-size: 16px;
    color: var(--c-white);
    background-color: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: var(--c-grey-4);
}

.form-input:focus {
    outline: none;
    border-color: var(--c-purple);
    box-shadow: 0 0 0 3px rgba(128, 82, 255, 0.25);
}

select.form-input {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.form-field.has-error .form-input {
    border-color: var(--c-error);
}

.form-field__error {
    margin: 0;
    font-size: 13px;
    color: var(--c-error);
}

.form-field__error:empty {
    display: none;
}

/* Trampa anti-spam: fuera de la vista y del orden de tabulación */
.form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    text-align: center;
}

.contact-form__submit.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.contact-form__status {
    margin: 0;
    font-size: 14px;
    color: var(--c-error);
}

.contact-form__status:empty {
    display: none;
}

.contact-form__legal {
    margin: 0;
    font-size: 13px;
    color: var(--c-grey-4);
}

.contact-form__legal a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-form__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.contact-form__success[hidden] {
    display: none;
}

.contact-form__success .t-body {
    margin: 0;
}

.contact-form__success-title {
    font-size: clamp(22px, 3vw, 30px);
    outline: none;
}

.contact-form__demo {
    margin: 0;
    font-size: 14px;
    color: var(--c-yellow);
}

/* ---------- Scroll reveal ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.grid .card:nth-child(1) { transition-delay: 0s; }
.grid .card:nth-child(2) { transition-delay: 0.06s; }
.grid .card:nth-child(3) { transition-delay: 0.12s; }
.grid .card:nth-child(4) { transition-delay: 0.18s; }
.grid .card:nth-child(5) { transition-delay: 0.24s; }
.grid .card:nth-child(6) { transition-delay: 0.3s; }
.grid .card:nth-child(7) { transition-delay: 0.36s; }
.grid .card:nth-child(8) { transition-delay: 0.42s; }

.steps .step:nth-child(1) { transition-delay: 0s; }
.steps .step:nth-child(2) { transition-delay: 0.08s; }
.steps .step:nth-child(3) { transition-delay: 0.16s; }
.steps .step:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */

/* Menú desplegable: el menú completo necesita ~990px en una línea (a 901–1080px
   el botón de tema quedaba fuera de la pantalla), por eso cambia antes que el resto. */
@media (max-width: 1080px) {
    .nav {
        display: none;
        position: fixed;
        /* El backdrop-filter de .header hace de .header el bloque contenedor de este
           panel fijo: sin una altura explícita medía ~5px y los enlaces quedaban
           sin fondo, encima del contenido. */
        inset: 76px 0 auto 0;
        height: calc(100vh - 76px);
        height: calc(100dvh - 76px);
        overflow-y: auto;
        background: rgba(0, 0, 0, 0.97);
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        gap: 32px;
    }

    .nav--open {
        display: flex;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .nav__link {
        font-size: 20px;
    }

    .nav__eco {
        display: block;
    }

    /* Separa los enlaces al ecosistema Nexoss de las secciones de la página */
    .nav__list > li:not(.nav__eco) + .nav__eco {
        align-self: stretch;
        padding-top: 24px;
        border-top: 1px solid var(--c-border);
    }

    .nav__link--eco {
        font-size: 16px;
    }

    .nav-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
    .intro__grid { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { max-width: 420px; margin: 24px auto 0; }

    .hero {
        text-align: center;
    }

    .hero__title,
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
        text-align: center;
    }

    .section-head {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .intro__title,
    .intro .t-body {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .footer__inner {
        justify-content: center;
        text-align: center;
    }

    .footer__links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .section { padding: 64px 0; }
    .hero { padding: 96px 24px 64px; }
    .grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .footer__inner { flex-direction: column; align-items: center; }
    .hero__visual { max-width: 340px; }
    .contact-form__grid { grid-template-columns: 1fr; }
    .footer__eco { flex-direction: column; justify-content: center; text-align: center; }
    .footer__eco-nav { justify-content: center; }
}

@media (max-width: 560px) {
    .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
    .eco-bar__inner { justify-content: center; padding: 0 16px; }
    .eco-bar__label { display: none; }
}

@media (max-width: 400px) {
    .eco-bar__links { gap: 6px; }
    .eco-bar__btn { gap: 4px; padding: 7px 9px; font-size: 11px; letter-spacing: 0.02em; }
}

/* ---------- Página legal (/privacidad) ---------- */

/* También es .container: mantiene su margen lateral de 24px, que el padding de .section anularía. */
.legal {
    max-width: 868px;
    padding-left: 24px;
    padding-right: 24px;
}

.legal__title {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 16px;
}

.legal__lead {
    font-size: 19px;
    color: var(--c-grey-3);
    font-weight: 300;
    line-height: 1.5;
    margin: 0 0 48px;
}

.legal__h2 {
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.25;
    margin-bottom: 16px;
}

.legal__h3 {
    font-size: 20px;
    margin: 40px 0 12px;
}

.legal p,
.legal__list {
    color: var(--c-grey-3);
    font-weight: 300;
    line-height: 1.7;
}

.legal strong {
    color: var(--c-white);
    font-weight: 600;
}

.legal__list {
    padding-left: 20px;
}

.legal__list li + li {
    margin-top: 10px;
}

.legal p a:not(.btn),
.legal__list a {
    color: var(--c-white);
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.legal__back {
    margin-top: 48px;
}

/* ---------- Cursos: enlaces en las tarjetas del inicio y páginas /cursos/ (tools/cursos/build.mjs) ---------- */

.card__more {
    display: inline-block;
    margin-top: 16px;
    color: var(--c-white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.35);
}

.card__more:hover { color: var(--c-yellow); text-decoration-color: currentColor; }

.courses-all {
    margin: 36px 0 0;
    text-align: center;
}

a.card--link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

a.card--link .card__more { margin-top: auto; padding-top: 16px; text-decoration: none; }
a.card--link:hover .card__more { color: var(--c-yellow); }
a.card--link:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 3px; }

/* También es .container: mantiene su margen lateral de 24px, que el padding de .section anularía. */
.course {
    max-width: 868px;
    padding-left: 24px;
    padding-right: 24px;
}

.course p,
.course__list,
.course__steps {
    color: var(--c-grey-3);
    font-weight: 300;
    line-height: 1.7;
}

.course strong { color: var(--c-white); font-weight: 600; }

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--c-grey-4);
}

.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a:hover { color: var(--c-white); }
.crumbs [aria-current] { color: var(--c-grey-3); }

.course__title {
    font-size: clamp(34px, 5vw, 54px);
    margin-bottom: 16px;
}

.course__lead {
    font-size: 19px;
    line-height: 1.5;
    margin: 0 0 32px;
}

.course__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.course__h2 {
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.25;
    margin: 48px 0 14px;
}

.course__note { font-size: 15px; color: var(--c-grey-4); }

.course__list {
    padding-left: 20px;
    list-style: disc;
}

.course__list li::marker { color: var(--c-yellow); }
.course__steps li::marker { color: var(--c-yellow); font-weight: 600; }

.course__list li + li { margin-top: 8px; }

.course__steps {
    padding-left: 22px;
}

.course__steps li + li { margin-top: 10px; }

.course__faq details {
    border: 1px solid var(--c-border);
    border-radius: 14px;
    background: var(--c-card);
    margin-bottom: 12px;
}

.course__faq summary {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
}

.course__faq details p { margin: 0; padding: 0 20px 18px; }

.course__cta {
    margin-top: 56px;
    padding: 32px;
    border: 1px solid var(--c-border);
    border-radius: 18px;
    background: var(--c-card);
}

.course__cta .course__h2 { margin-top: 0; }
.course__cta .course__actions { margin-bottom: 0; }

.course-related { padding-top: 0; }
.course-related .grid { margin-top: 24px; }
.course-related__all { margin-top: 28px; text-align: center; }
.course-related__all a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
    .course__actions .btn { width: 100%; white-space: normal; }
}
