/* ====== CEREBRUM on Cronode ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --teal: #009b92;
    --cb-ink: #101828;
    --cb-navy: #263f5a;
    --cb-blue: #426782;
    --cb-soft-blue: #6f93aa;
    --cb-line: rgba(38, 63, 90, 0.14);
    --cb-line-strong: rgba(38, 63, 90, 0.24);
    --bg: #f6f9fb;
    --bg-2: #ffffff;
    --bg-3: #eef4f7;
    --tx: #101828;
    --tx-2: #52687a;
    --tx-3: #7c93a4;
    --dark: #070b12;
    --shadow: 0 18px 48px rgba(38, 63, 90, 0.12);
    --shadow-strong: 0 26px 70px rgba(38, 63, 90, 0.18);
    --grad: linear-gradient(135deg, #263f5a 0%, #426782 55%, #7fa5bb 100%);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    overflow-x: hidden;
}

body {
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 10% 4%, rgba(111, 147, 170, 0.14), transparent 28rem),
        linear-gradient(180deg, #f8fbfd 0%, #f2f7fa 42%, #ffffff 100%);
    color: var(--tx);
    line-height: 1.6;
    opacity: 0;
    padding-top: 76px;
    transition: opacity 0.45s ease;
    overflow-x: hidden;
}

body.loaded {
    opacity: 1;
}

body.nav-open {
    overflow: hidden;
}

#brainwave-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.42;
}

header,
section,
footer {
    position: relative;
    z-index: 1;
}

/* ====== Header / Nav ====== */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    width: 100%;
    background: #070b12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
    transform: none !important;
}

.site-header.scrolled {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.site-nav {
    max-width: 1200px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-container,
.logo-container a {
    display: inline-flex;
    align-items: center;
}

.logo-container img {
    height: 44px;
    object-fit: contain;
}

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex: 1;
}

.mobile-menu-brand {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-links a,
.nav-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-links a {
    padding: 0 0.95rem;
    color: rgba(255, 255, 255, 0.76);
    border: 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
    color: #fff;
    background: transparent;
    outline: none;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.35rem;
    height: 3px;
    border-radius: 999px;
    background: #A7C3DF;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* ====== Dropdown nav ====== */
.nav-item--dropdown {
    position: relative;
    min-width: 176px;
}

.nav-item--dropdown > a {
    gap: 0.35rem;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.nav-dropdown-icon {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.nav-item--dropdown.open .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    list-style: none;
    z-index: 200;
}

.nav-dropdown__inner {
    background: #070b12;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 2px solid rgba(167, 195, 223, 0.65);
    padding: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.nav-item--dropdown.open .nav-dropdown {
    display: block;
}

.nav-dropdown li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-dropdown li:last-child {
    border-bottom: none;
}

.nav-dropdown li a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    min-height: unset;
    border: 0;
}

.nav-dropdown li a::after {
    display: none;
}

.nav-dropdown li a:hover {
    color: #fff;
    background: rgba(167, 195, 223, 0.1);
}

@media (max-width: 860px) {
    .nav-dropdown,
    .nav-item--dropdown.open .nav-dropdown {
        display: none !important;
    }

    .nav-dropdown-icon {
        display: none !important;
    }
}

.nav-cta {
    padding: 0 1.05rem;
    color: #000;
    background: #A7C3DF;
    border: 1px solid #A7C3DF;
    box-shadow: 0 10px 24px rgba(167, 195, 223, 0.24);
}

.nav-cta:hover,
.nav-cta:focus-visible {
    transform: translateY(-1px);
    background: #A7C3DF;
    border-color: #A7C3DF;
    outline: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 1003;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    display: block;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ====== Shared ====== */
section:not(.hero) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5.75rem 1.5rem;
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    color: var(--cb-navy);
    line-height: 1.08;
}

h2 {
    margin-bottom: 2.75rem;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.1rem);
}

p {
    color: var(--tx-2);
}

.section-title-left {
    text-align: left;
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 3.6vw, 3rem);
}

.section-body {
    max-width: 64ch;
    font-size: 1.05rem;
    line-height: 1.85;
}

.card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--cb-line);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(38, 63, 90, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--cb-line-strong);
    box-shadow: var(--shadow);
}

.card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.55rem;
}

.card p {
    font-size: 0.96rem;
}

/* ====== Hero ====== */
.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    padding: 4.75rem 0 5.25rem;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(246, 249, 251, 0.98) 0%, rgba(246, 249, 251, 0.82) 24%, rgba(246, 249, 251, 0.42) 58%, rgba(246, 249, 251, 0.16) 100%),
        url("../images/neurona.png") center / cover no-repeat;
    opacity: 0.9;
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(180deg, transparent, var(--bg));
    z-index: -1;
}

.hero-inner {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.1fr);
    gap: 4rem;
    align-items: center;
}

.hero-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-frame {
    width: min(100%, 420px);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-brand-img {
    width: 100%;
    max-width: 360px;
    height: auto;
    filter: drop-shadow(0 18px 34px rgba(38, 63, 90, 0.16));
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    max-width: 680px;
    font-size: clamp(2.45rem, 4vw, 4rem);
    color: #263f5a;
    text-shadow: 0 2px 18px rgba(255, 255, 255, 0.55);
}

.hero h1 em {
    display: block;
    color: #426782;
    font-style: normal;
}

.hero-lead {
    max-width: 620px;
    margin-top: 1.25rem;
    font-size: 1.08rem;
    line-height: 1.8;
    color: #324255;
    text-shadow: 0 2px 14px rgba(255, 255, 255, 0.5);
}

.hero-tagline {
    margin-top: 0.9rem;
    color: #263f5a;
    font-weight: 800;
    text-shadow: 0 2px 14px rgba(255, 255, 255, 0.52);
}

.hero-tags {
    display: none;
}

.cta-container,
.cta-final-buttons,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.cta-container {
    margin-top: 2rem;
    justify-content: center;
}

.cta-button,
.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    border: 1px solid var(--cb-navy);
    border-radius: 8px;
    background: var(--cb-navy);
    color: #fff;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(38, 63, 90, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(38, 63, 90, 0.24);
}

.cta-secondary,
.cta-outline {
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--cb-line-strong);
    color: var(--cb-navy);
    box-shadow: none;
}

/* ====== Content blocks ====== */
.two-col,
.distribuidor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
    gap: 3rem;
    align-items: center;
}

.visual-col {
    display: flex;
}

.section-img,
.experiencial-img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.section-img {
    aspect-ratio: 4 / 3;
}

.section-que-es {
    position: relative;
    overflow: hidden;
    height: calc(100vh - 76px);
    min-height: 0;
    display: flex;
    align-items: center;
    max-width: none !important;
    width: 100%;
    padding: 0 !important;
    background: #324255;
    color: #fff;
}

.section-que-es::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #324255 0%, #324255 34%, rgba(50, 66, 85, 0.9) 48%, rgba(50, 66, 85, 0.45) 70%, rgba(50, 66, 85, 0.76) 100%),
        url("../images/neuroeducacion.png") right center / auto 100% no-repeat fixed;
    opacity: 1;
    z-index: 0;
}

.section-que-es::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(50, 66, 85, 0.42) 0%, rgba(50, 66, 85, 0.16) 20%, transparent 42%),
        linear-gradient(180deg, rgba(50, 66, 85, 0.04), rgba(50, 66, 85, 0.22));
    z-index: 0;
}

.section-que-es .section-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem 0 clamp(1.5rem, 8vw, 8rem);
}

.section-que-es .two-col {
    grid-template-columns: minmax(0, 50%) minmax(0, 50%);
    gap: 4rem;
}

.section-que-es .section-title-left {
    color: #fff;
    max-width: none;
    width: max-content;
    white-space: nowrap;
    margin-bottom: 5rem;
}

.section-que-es .section-body {
    color: rgba(255, 255, 255, 0.84);
    max-width: 100%;
    font-size: clamp(1.3rem, 1.55vw, 1.75rem);
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
}

.section-cta-final {
    max-width: 1160px !important;
    border-radius: 8px;
    border: 1px solid var(--cb-line);
    box-shadow: var(--shadow);
}

.section-distribuidores {
    max-width: 1320px !important;
    padding: 5.5rem 1.5rem !important;
    background: transparent;
}

.distribuidor-layout {
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    gap: clamp(3rem, 5vw, 5rem);
}

.official-mark {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 0;
}

.official-mark img {
    width: 560px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.distribuidor-text-col .section-body {
    max-width: none;
    text-align: justify;
    text-align-last: left;
}

.distribuidor-text-col .section-body + .section-body {
    margin-top: 1.15rem;
}

.audience-nervous-system {
    position: relative;
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: minmax(175px, auto) 86px minmax(175px, auto);
    column-gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
}

.nerve-visual {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 2;
    left: 50%;
    width: 100vw;
    height: 86px;
    transform: translateX(-50%);
    pointer-events: none;
}

.nerve-spine {
    position: absolute;
    top: calc(50% - 5px);
    left: 0;
    width: 100%;
    height: 10px;
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #a7c3df 10%, #a7c3df 90%, rgba(255, 255, 255, 0));
    box-shadow: 0 16px 34px rgba(50, 66, 85, 0.18);
}

.audience-node {
    position: relative;
    width: auto;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.audience-node::after {
    content: "";
    position: absolute;
    left: 17px;
    transform: translateX(-50%);
}

.audience-node::after {
    width: 6px;
    height: 38px;
    border-radius: 999px;
    background: #a7c3df;
}

.audience-node--docentes {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    padding-bottom: 2.35rem;
}

.audience-node--instituciones {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    padding-top: 2.35rem;
}

.audience-node--equipos {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    padding-bottom: 2.35rem;
}

.audience-node--profesionales {
    grid-column: 4;
    grid-row: 3;
    align-self: start;
    padding-top: 2.35rem;
}

.audience-node--docentes::after,
.audience-node--equipos::after {
    bottom: -38px;
}

.audience-node--instituciones::after,
.audience-node--profesionales::after {
    top: -38px;
    background: #a7c3df;
}

.audience-node h3 {
    margin: 0 0 0.35rem;
    color: #324255;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.audience-node p {
    margin: 0;
    color: var(--tx-2);
    font-size: 0.98rem;
    line-height: 1.65;
}

.audience-icon-wrap,
.dif-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--grad);
    box-shadow: 0 12px 24px rgba(38, 63, 90, 0.18);
    flex: 0 0 auto;
}

.audience-node .audience-icon-wrap {
    width: auto;
    height: auto;
    border-radius: 0;
    color: #324255;
    background: transparent;
    box-shadow: none;
    font-size: 1.65rem;
}

.section-por-que {
    max-width: 1160px !important;
    padding: 4.5rem 1.5rem !important;
    background: transparent;
}

.diferenciadores-grid {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    gap: 0.9rem;
}

.diferenciador-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.15rem;
    border-radius: 8px;
    border: 1px solid var(--cb-line);
    background: rgba(255, 255, 255, 0.8);
}

.audience-simple-grid {
    max-width: 1180px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.audience-simple-grid .dif-connector {
    display: none;
}

.audience-simple-grid .diferenciador-item {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.35rem;
}

.audience-simple-grid .dif-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    color: #324255;
    background: transparent;
    box-shadow: none;
    font-size: 1.85rem;
}

.dif-connector {
    display: none;
}

.dif-text h3 {
    margin-bottom: 0.3rem;
    font-size: 1.08rem;
}

.dif-text p {
    font-size: 0.97rem;
}

.section-experiencial {
    max-width: none !important;
    padding: 0 !important;
    margin: 2rem 0 0;
    background: #fff;
}

.experiencial-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.experiencial-img {
    aspect-ratio: 16 / 10;
}

.experiencial-title {
    margin-bottom: 1.2rem;
    text-align: left;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.experiencial-title em {
    color: var(--cb-soft-blue);
    font-style: normal;
}

.experiencial-body {
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.85;
}

.section-cta-final {
    padding: 4.5rem 2rem !important;
    background:
        linear-gradient(135deg, rgba(7, 11, 18, 0.96), rgba(38, 63, 90, 0.94)),
        url("../images/cerebroaula.png") center / cover !important;
}

.cta-final-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.cta-final-title {
    margin-bottom: 1.1rem;
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.cta-final-body {
    max-width: 680px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
}

.cta-final-buttons {
    justify-content: center;
}

.cta-final-buttons .cta-button {
    background: #fff;
    color: var(--cb-navy);
    border-color: #fff;
}

.cta-final-buttons .cta-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ====== Contact ====== */
#contacto {
    margin-top: 2rem;
    padding-top: 2.25rem;
    padding-bottom: 2.75rem;
}

#contacto h2 {
    margin-bottom: 1.35rem;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #324255;
}

#contacto h3 {
    font-size: 1.08rem;
    margin-bottom: 0.35rem;
    color: #324255;
}

.section-kicker {
    color: #324255;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.contact-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0.9rem 0 1rem;
}

.contact-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #324255;
    border-radius: 8px;
    background: #324255;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(50, 66, 85, 0.28);
}

.contact-action i {
    font-size: 1rem;
}

#contacto .btn {
    background: #324255;
    border-color: #324255;
    box-shadow: 0 14px 30px rgba(50, 66, 85, 0.18);
}

#contacto .btn:hover {
    box-shadow: 0 18px 36px rgba(50, 66, 85, 0.24);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.15rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.contact-card {
    grid-column: span 12;
    position: relative;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
    min-height: 100%;
}

.contact-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 0.55rem;
    margin: 0.75rem 0 0.9rem;
}

.contact-list li {
    display: grid;
    grid-template-columns: 18px 78px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(16, 24, 40, 0.08);
    color: var(--tx-2);
    font-size: 0.9rem;
}

.contact-list i {
    color: #324255;
    text-align: center;
}

.contact-list span {
    color: var(--tx);
    font-weight: 800;
}

.contact-list a,
.contact-value {
    min-width: 0;
    color: var(--tx-2);
    font-weight: 700;
}

.mini-copy,
.form-note {
    color: var(--tx-2);
    font-size: 0.92rem;
}

.contact-list a,
.cronode-link {
    color: #324255;
    text-decoration: none;
}

.contact-list a:hover,
.cronode-link:hover {
    text-decoration: underline;
}

.contact-map {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6.6;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(16, 24, 40, 0.12);
    margin-top: 0.85rem;
    background: #fff;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.55rem;
}

.form-row label {
    color: var(--tx);
    font-size: 0.86rem;
    font-weight: 700;
}

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(16, 24, 40, 0.16);
    border-radius: 8px;
    background: #fff;
    color: var(--tx);
    padding: 0.62rem 0.72rem;
    font: inherit;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: #324255;
    box-shadow: 0 0 0 3px rgba(50, 66, 85, 0.16);
}

.error {
    min-height: 1.1em;
    color: #c0392b;
    font-size: 0.84rem;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ====== Footer ====== */
footer {
    margin-top: 2rem;
    background: #070b12;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 0.96rem;
}

.footer-section p,
.footer-section a {
    display: block;
    margin: 0.28rem 0;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #fff;
}

.footer-sub {
    font-size: 0.8rem !important;
}

.footer-bottom {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.85rem;
}

@media (min-width: 900px) {
    .contact-grid {
        align-items: stretch;
    }

    .contact-card:nth-child(1) {
        grid-column: span 5;
        padding-right: 1.15rem;
        border-right: 1px solid rgba(16, 24, 40, 0.1);
        display: flex;
        flex-direction: column;
    }

    .contact-card:nth-child(2) {
        grid-column: span 7;
        padding-left: 0.5rem;
        display: flex;
        flex-direction: column;
    }

    .contact-card:nth-child(2) form {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .contact-card:nth-child(2) .form-row:nth-of-type(3) {
        flex: 1;
        display: flex;
    }

    .contact-card:nth-child(2) textarea {
        min-height: 0;
        flex: 1;
    }

    .contact-map {
        flex: 1;
        min-height: 132px;
    }
}

@media (max-width: 899px) {
    .contact-card:nth-child(1) {
        order: 2;
    }

    .contact-card:nth-child(2) {
        order: 1;
    }
}

@media (max-width: 1100px) {
    .audience-nervous-system {
        column-gap: 1.5rem;
    }

    .audience-simple-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-nav {
        padding: 0 1rem;
    }

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

    .nav-panel {
        position: fixed;
        inset: 0;
        z-index: 1001;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1.05rem;
        padding: 4.15rem 1.5rem 1.25rem;
        background: #070b12;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: opacity 0.22s ease, transform 0.28s ease, visibility 0.28s ease;
        overflow: hidden;
    }

    .site-header.menu-open .nav-panel {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .mobile-menu-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
        padding: 0 0 0.8rem;
        border-bottom: 0;
        overflow: visible;
    }

    .mobile-menu-brand img {
        width: min(160px, 46vw);
        margin-top: 0;
        height: auto;
        object-fit: contain;
        transform: none;
    }

    .nav-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .nav-item--dropdown {
        min-width: 0;
    }

    .nav-links a {
        justify-content: flex-start;
        width: 100%;
        min-height: 48px;
        border-radius: 0;
        font-size: 1.04rem;
        background: transparent;
        border: 0;
        padding: 0 0 0.5rem;
        color: rgba(255, 255, 255, 0.86);
    }

    .nav-links a.active,
    .nav-links a:hover,
    .nav-links a:focus-visible {
        color: #fff;
        background: transparent;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a.active {
        text-decoration: underline;
        text-decoration-color: #A7C3DF;
        text-decoration-thickness: 3px;
        text-underline-offset: 8px;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        border-radius: 8px;
        font-size: 1.02rem;
        text-align: center;
        padding: 0 1rem;
        margin-top: 0.25rem;
    }

    .audience-nervous-system {
        margin-top: 2.25rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 1.75rem;
    }

    .nerve-visual {
        display: none;
    }

    .audience-node {
        position: relative;
        width: 100%;
        grid-row: auto;
        align-self: start;
        padding: 0 0 1.4rem;
        border-bottom: 1px solid rgba(50, 66, 85, 0.12);
    }

    .audience-node--docentes,
    .audience-node--instituciones,
    .audience-node--equipos,
    .audience-node--profesionales {
        grid-column: auto;
        grid-row: auto;
        padding-top: 0;
        padding-bottom: 1.4rem;
    }

    .audience-node::before,
    .audience-node::after {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 3.5rem 0 4.25rem;
    }

    .hero::before {
        background:
            linear-gradient(180deg, rgba(246, 249, 251, 0.98) 0%, rgba(246, 249, 251, 0.9) 100%),
            url("../images/neurona.png") center top / cover no-repeat;
    }

    .hero-inner,
    .two-col,
    .distribuidor-layout,
    .experiencial-inner {
        grid-template-columns: 1fr;
    }

    .section-que-es {
        height: auto;
        min-height: 0;
        padding: 4rem 0 !important;
    }

    .section-que-es .two-col {
        grid-template-columns: 1fr;
    }

    .section-que-es .section-title-left {
        width: auto;
        white-space: normal;
    }

    .section-que-es .section-body {
        font-size: 1.08rem;
        line-height: 1.75;
        text-align: center;
    }

    .section-que-es::before {
        background:
            linear-gradient(180deg, rgba(50, 66, 85, 0.92) 0%, rgba(50, 66, 85, 0.82) 100%),
            url("../images/neuroeducacion.png") center / cover no-repeat;
        opacity: 0.7;
    }

    .section-que-es .section-inner {
        padding: 0 1.5rem;
    }

    .hero-inner {
        min-height: auto;
        display: grid;
        gap: 2.5rem;
    }

    .hero-left {
        width: min(100%, 360px);
        margin: 0 auto;
        order: initial;
        justify-content: center;
    }

    .hero-right {
        width: 100%;
        order: initial;
        align-items: center;
        text-align: center;
    }

    .hero h1 {
        color: var(--cb-navy);
        text-shadow: none;
    }

    .hero h1 em {
        color: var(--cb-soft-blue);
    }

    .hero-lead {
        color: var(--tx-2);
        text-shadow: none;
    }

    .hero-tagline {
        color: var(--cb-blue);
        text-shadow: none;
    }

    .hero-tags,
    .cta-container {
        justify-content: center;
    }

    .hero-img-frame {
        justify-content: center;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 12vw, 4rem);
    }

    .section-title-left,
    .experiencial-title {
        text-align: center;
    }

    .section-body,
    .experiencial-body {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    section:not(.hero) {
        padding: 4rem 1rem;
    }

    .section-cta-final {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
        max-width: calc(100% - 2rem) !important;
        padding: 3rem 1.25rem !important;
    }

    .section-por-que {
        padding: 3rem 1rem !important;
    }

    .section-distribuidores {
        padding: 4rem 1rem !important;
    }

    .official-mark {
        min-height: auto;
        align-items: center;
        padding-left: 0;
        border-left: 0;
        text-align: center;
    }

    .experiencial-inner {
        padding: 4rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .logo-container img {
        height: 38px;
    }

    .hero-brand-img {
        max-width: 260px;
    }

    .audience-simple-grid {
        grid-template-columns: 1fr;
    }

    .audience-simple-grid .diferenciador-item {
        min-height: auto;
    }

    .audience-nervous-system {
        min-height: 0;
        margin-top: 2rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
        place-items: stretch;
        padding: 1.25rem;
    }

    .audience-node {
        width: 100%;
    }

    .audience-node {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 1rem 0 1.1rem;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        border-bottom: 1px solid rgba(50, 66, 85, 0.14);
    }

    .audience-node:last-child {
        border-bottom: 0;
    }

    h2 {
        margin-bottom: 2rem;
    }

    .cta-container,
    .cta-final-buttons,
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-actions {
        grid-template-columns: 1fr;
    }

    .cta-button,
    .btn {
        width: 100%;
    }
}
