:root {
    --navy-950: #05152f;
    --navy-900: #071c42;
    --navy-800: #0a2a5e;
    --blue-600: #087dca;
    --blue-500: #1599e6;
    --blue-100: #dff3ff;
    --green-500: #6bc51d;
    --yellow-400: #ffbd18;
    --ink: #101b2d;
    --slate: #5c6878;
    --line: #dce3ea;
    --paper: #f6f8fa;
    --white: #ffffff;
    --shadow-sm: 0 12px 35px rgba(7, 28, 66, 0.08);
    --shadow-lg: 0 32px 80px rgba(2, 17, 42, 0.22);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --font-sans: "Manrope", sans-serif;
    --font-serif: "Source Serif 4", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.dialog-open { overflow: hidden; }

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

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

button, input, textarea { font: inherit; }

button { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
    outline: 3px solid var(--yellow-400);
    outline-offset: 3px;
}

.hidden { display: none !important; }

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 16px;
    color: var(--white);
    background: var(--navy-900);
    border-radius: 8px;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.section-shell,
.header-inner,
.hero-content {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.section { padding: 112px 0; }

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 50;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-header.scrolled {
    position: fixed;
    color: var(--navy-900);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(7, 28, 66, 0.08);
    box-shadow: 0 8px 30px rgba(7, 28, 66, 0.08);
    backdrop-filter: blur(18px);
    animation: headerDrop 250ms ease both;
}

@keyframes headerDrop {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 260px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--navy-900);
    background: var(--yellow-400);
    border-radius: 13px 13px 13px 4px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.04em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand-mark.inverse {
    color: var(--navy-900);
    background: var(--white);
}

.brand-mark.brand-logo {
    width: 52px;
    height: 58px;
    overflow: visible;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.brand-mark.brand-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(3, 16, 39, 0.18));
}

.site-header:not(.scrolled) .brand-mark.brand-logo img {
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.3));
}

.brand-copy { display: grid; line-height: 1.15; }

.brand-copy strong {
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.brand-copy small {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.07em;
    opacity: 0.68;
    text-transform: uppercase;
}

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

.public-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.012em;
    white-space: nowrap;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
    transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.site-header.scrolled .public-nav a { color: var(--navy-900); text-shadow: none; }

.public-nav a:not(.nav-cta):hover,
.public-nav a:not(.nav-cta):focus-visible { color: var(--yellow-400); transform: translateY(-1px); }

.public-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 3px;
    background: var(--yellow-400);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.public-nav a:hover::after { transform: scaleX(1); }

.nav-cta {
    padding: 12px 17px;
    color: var(--navy-900) !important;
    background: var(--yellow-400);
    border-radius: 9px;
    text-shadow: none !important;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 189, 24, 0.25); }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
    position: relative;
    width: 100%;
    height: min(33.333vw, 724px);
    min-height: 0;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: var(--navy-950);
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url("assets/hero-institucional.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 14, 35, 0.24) 0%, transparent 22%, transparent 78%, rgba(2, 14, 35, 0.22) 100%);
}

.hero-content {
    display: none;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 23px;
    color: var(--blue-600);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 34px;
    height: 2px;
    background: currentColor;
}

.eyebrow.light { color: var(--yellow-400); }

.hero-mobile-title {
    max-width: 810px;
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(54px, 6.6vw, 88px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.hero-lead {
    max-width: 650px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 36px;
}

.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
    color: var(--navy-950);
    background: var(--yellow-400);
    box-shadow: 0 13px 28px rgba(255, 189, 24, 0.18);
}

.button-primary:hover { background: #ffc938; box-shadow: 0 15px 32px rgba(255, 189, 24, 0.3); }

.button-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.38);
}

.button-ghost:hover { background: rgba(255, 255, 255, 0.14); }

.hero-principles {
    display: flex;
    gap: 28px;
    margin-top: 60px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-principles span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-principles span::before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--green-500);
    border-radius: 50%;
}

.scroll-cue {
    position: absolute;
    right: max(24px, calc((100% - 1180px) / 2));
    bottom: 38px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scroll-cue i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    font-style: normal;
}

.manifesto {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 7% 20%, rgba(21, 153, 230, 0.08), transparent 28%),
        radial-gradient(circle at 92% 80%, rgba(107, 197, 29, 0.07), transparent 25%),
        var(--white);
}

.manifesto::after {
    content: "";
    position: absolute;
    right: -110px;
    top: 48px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(8, 125, 202, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 46px rgba(8, 125, 202, 0.03), 0 0 0 92px rgba(8, 125, 202, 0.02);
    pointer-events: none;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    align-items: end;
    gap: 100px;
}

.manifesto h2,
.guidance h2,
.activities h2 {
    margin: 0;
    color: var(--navy-900);
    font-family: var(--font-serif);
    font-size: clamp(40px, 5vw, 62px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.manifesto-copy p {
    margin: 0 0 27px;
    color: var(--slate);
    font-size: 16px;
    line-height: 1.85;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 5px;
    color: var(--blue-600);
    background: none;
    border: 0;
    border-bottom: 1px solid currentColor;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.text-link span { transition: transform 180ms ease; }
.text-link:hover span { transform: translateX(3px); }

.value-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 78px;
}

.value-card {
    --card-accent: var(--blue-500);
    position: relative;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(7, 28, 66, 0.09);
    border-radius: 26px;
    box-shadow: 0 16px 45px rgba(7, 28, 66, 0.07);
    backdrop-filter: blur(12px);
    transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms ease, border-color 350ms ease;
}

.value-card::before {
    content: "";
    position: absolute;
    right: -65px;
    top: -65px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, color-mix(in srgb, var(--card-accent) 24%, transparent), transparent 68%);
    transition: transform 500ms ease;
}

.value-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
    transform: scaleX(0.25);
    opacity: 0;
    transition: transform 350ms ease, opacity 350ms ease;
}

.value-card:hover {
    z-index: 2;
    transform: translateY(-12px);
    border-color: color-mix(in srgb, var(--card-accent) 40%, transparent);
    box-shadow: 0 28px 70px rgba(7, 28, 66, 0.16);
}

.value-card:hover::before { transform: scale(1.25); }
.value-card:hover::after { transform: scaleX(1); opacity: 1; }

.value-connect {
    --card-accent: var(--yellow-400);
    color: var(--white);
    background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(7, 28, 66, 0.2);
}

.value-transform { --card-accent: var(--green-500); }

.value-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.value-number {
    color: var(--card-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.value-icon {
    position: relative;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: var(--card-accent);
    background: color-mix(in srgb, var(--card-accent) 12%, white);
    border: 1px solid color-mix(in srgb, var(--card-accent) 24%, transparent);
    border-radius: 20px;
    font-size: 23px;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--card-accent) 18%, transparent);
    animation: valueIconFloat 4.2s ease-in-out infinite;
}

.value-connect .value-icon { background: rgba(255, 189, 24, 0.12); }

.value-icon::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid color-mix(in srgb, var(--card-accent) 25%, transparent);
    border-radius: 25px;
    opacity: 0;
    animation: valueIconPulse 3s ease-out infinite;
}

@keyframes valueIconFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes valueIconPulse {
    0% { opacity: 0; transform: scale(0.9); }
    35% { opacity: 0.7; }
    100% { opacity: 0; transform: scale(1.16); }
}

.value-copy { position: relative; z-index: 1; margin-top: auto; }

.value-card h3 {
    margin: 45px 0 12px;
    font-family: var(--font-serif);
    font-size: 34px;
    line-height: 1;
}

.value-card p { margin: 0; color: var(--slate); font-size: 14px; }
.value-connect p { color: rgba(255, 255, 255, 0.67); }

.value-arrow {
    position: absolute;
    right: 25px;
    bottom: 24px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--card-accent);
    border: 1px solid color-mix(in srgb, var(--card-accent) 30%, transparent);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: opacity 250ms ease, transform 250ms ease;
}

.value-card:hover .value-arrow { opacity: 1; transform: none; }

.ideas {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--navy-950);
}

.ideas::before {
    content: "100";
    position: absolute;
    top: -110px;
    left: -42px;
    color: rgba(255, 255, 255, 0.025);
    font-size: 500px;
    font-weight: 800;
    letter-spacing: -0.12em;
    line-height: 1;
}

.ideas-glow {
    position: absolute;
    right: -260px;
    bottom: -260px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(21, 153, 230, 0.18), transparent 67%);
}

.ideas-layout {
    position: relative;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 90px;
    align-items: start;
}

.ideas-story { position: sticky; top: 118px; }

.ideas h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(50px, 6vw, 76px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.95;
}

.ideas h2 strong {
    display: block;
    color: var(--yellow-400);
    font-family: var(--font-sans);
    font-size: 1.07em;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.ideas-tagline {
    margin: 25px 0 19px;
    color: var(--blue-500);
    font-size: 18px;
    font-weight: 800;
}

.ideas-story > p:not(.eyebrow):not(.ideas-tagline) {
    color: rgba(255, 255, 255, 0.67);
    font-size: 15px;
    line-height: 1.8;
}

.ideas-steps { margin-top: 37px; }

.ideas-steps > div {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 15px;
    padding: 17px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ideas-steps > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

.ideas-steps span {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    color: var(--navy-950);
    background: var(--yellow-400);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.ideas-steps p { display: grid; margin: 0; }
.ideas-steps strong { font-size: 13px; }
.ideas-steps small { margin-top: 2px; color: rgba(255, 255, 255, 0.5); font-size: 11px; }

.campaign-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 33px;
    padding: 5px;
    background: linear-gradient(135deg, rgba(255, 189, 24, 0.9), rgba(21, 153, 230, 0.85), rgba(107, 197, 29, 0.8));
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
    transition: transform 450ms cubic-bezier(.2,.8,.2,1), box-shadow 450ms ease;
}

.campaign-image:hover { transform: translateY(-7px) rotate(-0.6deg); box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36); }

.idea-form-card {
    padding: 49px;
    color: var(--ink);
    background: var(--white);
    border-radius: 2px 28px 2px 2px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.28);
}

.form-kicker,
.modal-kicker {
    color: var(--blue-600);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.form-heading h3 {
    margin: 5px 0 0;
    color: var(--navy-900);
    font-family: var(--font-serif);
    font-size: 42px;
    line-height: 1.05;
}

.form-heading p { margin: 9px 0 30px; color: var(--slate); font-size: 12px; }

.field-row {
    display: grid;
    grid-template-columns: 0.55fr 1.45fr;
    gap: 18px;
}

.contact-section { margin: 1px 0 2px; }

.contact-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 11px;
}

.contact-heading span { color: var(--navy-900); font-size: 12px; font-weight: 800; }
.contact-heading small { color: #7b8898; font-size: 10px; text-align: right; }

.field-row.contact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-row.contact-row .field { margin-bottom: 9px; }

.contact-input { position: relative; }
.contact-input i {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

.field .contact-input input { padding-left: 44px; }
.whatsapp-input i { color: #0c995d; }
.email-input i { color: var(--blue-600); }

.field { margin-bottom: 21px; }

.field label,
.label-row label {
    display: block;
    margin-bottom: 7px;
    color: #344154;
    font-size: 12px;
    font-weight: 800;
}

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

.label-row span { color: #8793a2; font-size: 10px; }

.field input,
.field textarea {
    width: 100%;
    padding: 14px 15px;
    color: var(--ink);
    background: #fbfcfd;
    border: 1px solid #cfd8e2;
    border-radius: 8px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field textarea { min-height: 205px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #9ba6b3; }

.field input:focus,
.field textarea:focus {
    background: var(--white);
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(21, 153, 230, 0.12);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #c83636; }

.field-hint { display: block; margin-top: 6px; color: #8793a2; font-size: 10px; }
.field-error { display: block; min-height: 15px; margin-top: 4px; color: #b72d2d; font-size: 10px; }

.consent {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--slate);
    font-size: 10px;
    line-height: 1.55;
    cursor: pointer;
}

.consent input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--blue-600); }

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-message {
    min-height: 22px;
    margin: 14px 0 7px;
    font-size: 12px;
    font-weight: 700;
}

.form-message.error { color: #b72d2d; }
.form-message.success { color: #187845; }

.button-submit {
    width: 100%;
    justify-content: space-between;
    margin-top: 3px;
    padding-inline: 21px;
    color: var(--white);
    background: var(--blue-600);
}

.button-submit:hover { background: #076cae; box-shadow: 0 12px 25px rgba(8, 125, 202, 0.22); }
.button-submit:disabled { opacity: 0.65; cursor: wait; transform: none; }

.button-submit i { font-style: normal; font-size: 18px; }

.privacy-note { margin: 12px 0 0; color: #8d98a5; font-size: 9px; text-align: center; }

.guidance {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f7f9fb 0%, #eef5fa 55%, #f7f9fb 100%);
}

.guidance::before {
    content: "";
    position: absolute;
    left: -180px;
    bottom: -240px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(21, 153, 230, 0.1), transparent 68%);
    pointer-events: none;
}

.guidance-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 90px;
    align-items: center;
}

.guidance-copy > p:not(.eyebrow) {
    max-width: 510px;
    margin: 25px 0 30px;
    color: var(--slate);
}

.button-dark { color: var(--white); background: var(--navy-900); }
.button-dark:hover { background: var(--navy-800); box-shadow: 0 14px 30px rgba(7, 28, 66, 0.18); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.service-card {
    position: relative;
    min-height: 215px;
    display: grid;
    align-content: start;
    padding: 28px;
    overflow: hidden;
    text-align: left;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(7, 28, 66, 0.09);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(7, 28, 66, 0.05);
    cursor: pointer;
    transition: background 300ms ease, color 300ms ease, transform 300ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms ease;
}

.service-card::after {
    content: "↗";
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--blue-600);
    font-size: 16px;
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: opacity 250ms ease, transform 250ms ease;
}

.service-card:hover {
    z-index: 2;
    color: var(--white);
    background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
    box-shadow: 0 24px 55px rgba(7, 28, 66, 0.2);
    transform: translateY(-8px) scale(1.015);
}

.service-card:hover::after { color: var(--yellow-400); opacity: 1; transform: none; }

.service-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 36px;
    color: var(--blue-600);
    background: var(--blue-100);
    border-radius: 13px;
    font-size: 17px;
    font-weight: 800;
    transition: transform 300ms ease, background 300ms ease, color 300ms ease;
}

.service-card:hover .service-icon { color: var(--navy-900); background: var(--yellow-400); transform: rotate(-7deg) scale(1.1); }
.service-card strong { font-family: var(--font-serif); font-size: 24px; }
.service-card small { margin-top: 5px; color: var(--slate); font-size: 11px; line-height: 1.55; }
.service-card:hover small { color: rgba(255, 255, 255, 0.62); }

.activities {
    background:
        linear-gradient(180deg, var(--white), #f9fbfd 70%, var(--white));
}

.section-heading-row {
    display: grid;
    grid-template-columns: 1fr 0.55fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 55px;
}

.section-heading-row > p { margin: 0; color: var(--slate); font-size: 14px; }

.news-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 26px;
}

.news-card {
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(7, 28, 66, 0.09);
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(7, 28, 66, 0.06);
    transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms ease;
}

.news-card:hover { transform: translateY(-10px); box-shadow: 0 28px 65px rgba(7, 28, 66, 0.14); }

.news-image {
    position: relative;
    width: 100%;
    height: 260px;
    display: block;
    padding: 0;
    overflow: hidden;
    background: #dce3ea;
    border: 0;
    cursor: pointer;
}

.news-card.large .news-image { height: 320px; }

.news-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 21, 47, 0.45), transparent 48%);
}

.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.news-card:hover .news-image img { transform: scale(1.035); }

.news-image span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 1;
    padding: 6px 9px;
    color: var(--navy-950);
    background: var(--yellow-400);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-body { padding: 27px; }

.news-body time,
.news-modal-shell time {
    color: var(--blue-600);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-body h3 {
    margin: 8px 0 9px;
    color: var(--navy-900);
    font-family: var(--font-serif);
    font-size: 27px;
    line-height: 1.05;
}

.news-body p { min-height: 68px; margin: 0 0 22px; color: var(--slate); font-size: 12px; }

.closing-cta {
    position: relative;
    overflow: hidden;
    padding: 95px 0;
    color: var(--white);
    background: var(--navy-900);
}

.closing-cta::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -110px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.02);
}

.closing-inner { position: relative; text-align: center; }
.closing-inner > p { margin: 0 0 10px; color: var(--yellow-400); font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }

.closing-inner h2 {
    max-width: 850px;
    margin: 0 auto 34px;
    font-family: var(--font-serif);
    font-size: clamp(44px, 5.5vw, 68px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
}

.closing-inner > div { display: flex; justify-content: center; gap: 12px; }
.button-outline-light { color: var(--white); background: transparent; border-color: rgba(255, 255, 255, 0.35); }
.button-outline-light:hover { background: rgba(255, 255, 255, 0.08); }

.site-footer { color: rgba(255, 255, 255, 0.65); background: var(--navy-950); }

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 90px;
    padding-top: 65px;
    padding-bottom: 55px;
}

.footer-brand { display: flex; align-items: flex-start; gap: 15px; }
.footer-brand strong { display: block; color: var(--white); font-size: 14px; }
.footer-brand p { margin: 5px 0 0; font-size: 11px; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-links > div { display: grid; align-content: start; gap: 8px; }
.footer-links strong { margin-bottom: 8px; color: var(--white); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links a,
.footer-links button { width: fit-content; padding: 0; color: rgba(255, 255, 255, 0.58); background: none; border: 0; font-size: 11px; text-align: left; cursor: pointer; }
.footer-links a:hover,
.footer-links button:hover { color: var(--yellow-400); }

.footer-socials { display: block !important; }

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.footer-links .social-link {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    font-size: 18px;
    transition: transform 250ms ease, color 250ms ease, background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.footer-links .social-link:hover { color: var(--white); transform: translateY(-5px) rotate(-3deg); }
.footer-links .social-link.facebook:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 12px 28px rgba(24, 119, 242, 0.3); }
.footer-links .social-link.instagram:hover { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); border-color: #d62976; box-shadow: 0 12px 28px rgba(214, 41, 118, 0.3); }
.footer-links .social-link.whatsapp:hover { background: #25d366; border-color: #25d366; box-shadow: 0 12px 28px rgba(37, 211, 102, 0.3); }

.footer-bottom {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p { margin: 0; font-size: 9px; }

.internal-access {
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.4);
    background: none;
    border: 0;
    border-bottom: 1px solid transparent;
    font-size: 9px;
    cursor: pointer;
}

.internal-access:hover { color: rgba(255, 255, 255, 0.75); border-color: currentColor; }

.chat-launcher {
    position: fixed;
    right: 24px;
    /* Deja libre el acceso interno situado al final del pie de página. */
    bottom: 96px;
    z-index: 80;
    min-width: 292px;
    display: grid;
    grid-template-columns: 48px 1fr 40px;
    align-items: center;
    gap: 13px;
    padding: 10px 11px 10px 10px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy-800), var(--navy-950) 72%);
    border: 1px solid rgba(21, 153, 230, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 55px rgba(5, 21, 47, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    text-align: left;
    cursor: pointer;
    opacity: 1;
    transform: none;
    animation: chatLauncherIn 550ms cubic-bezier(.2,.8,.2,1) both;
    transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms ease, opacity 350ms ease;
}

.chat-launcher::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -65px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(21, 153, 230, 0.3), transparent 68%);
    pointer-events: none;
}

.chat-launcher.ready { opacity: 1; transform: none; }
.chat-launcher:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 28px 70px rgba(5, 21, 47, 0.44), 0 0 28px rgba(21, 153, 230, 0.13); }
.chat-launcher.panel-open { opacity: 0; pointer-events: none; transform: translateY(10px); }

@keyframes chatLauncherIn {
    from { opacity: 0; transform: translateY(22px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

.assistant-orb {
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--navy-950);
    background: linear-gradient(145deg, #ffd75e, var(--yellow-400));
    border-radius: 16px 16px 16px 6px;
    font-size: 18px;
    box-shadow: 0 10px 28px rgba(255, 189, 24, 0.25);
}

.assistant-orb::before,
.assistant-orb::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(255, 189, 24, 0.42);
    border-radius: 19px 19px 19px 8px;
    animation: assistantPulse 2.8s ease-out infinite;
}

.assistant-orb::after { animation-delay: 1.4s; }

.assistant-orb b {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    background: var(--green-500);
    border: 3px solid var(--navy-950);
    border-radius: 50%;
}

@keyframes assistantPulse {
    from { opacity: 0.8; transform: scale(0.92); }
    to { opacity: 0; transform: scale(1.28); }
}

.chat-label { display: grid; line-height: 1.3; }
.chat-label strong { font-size: 12px; letter-spacing: -0.01em; }
.chat-label small { margin-top: 2px; color: rgba(255, 255, 255, 0.56); font-size: 9px; }
.chat-symbol { width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy-900); background: var(--yellow-400); border-radius: 13px; font-size: 13px; transition: transform 250ms ease; }
.chat-launcher:hover .chat-symbol { transform: rotate(8deg) scale(1.08); }

/* Acceso simple al asistente: círculo celeste, diálogo blanco y estado en línea. */
.chat-launcher.simple-launcher {
    min-width: 0;
    width: 68px;
    height: 68px;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
}

.chat-launcher.simple-launcher::before { display: none; }

.simple-assistant-icon {
    position: relative;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: #5aa8dc;
    border: 7px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 14px 36px rgba(50, 132, 188, 0.28), 0 0 0 8px rgba(90, 168, 220, 0.08);
    font-size: 21px;
    transition: transform 250ms ease, background 250ms ease, box-shadow 250ms ease;
}

.simple-assistant-icon b {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 14px;
    height: 14px;
    background: #17d66b;
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(23, 214, 107, 0.4);
}

.chat-launcher.simple-launcher:hover { transform: translateY(-5px) scale(1.04); box-shadow: none; }
.chat-launcher.simple-launcher:hover .simple-assistant-icon { background: #438fc4; box-shadow: 0 18px 42px rgba(50, 132, 188, 0.36), 0 0 0 10px rgba(90, 168, 220, 0.1); }
.chat-launcher.simple-launcher.panel-open { opacity: 0; pointer-events: none; transform: translateY(10px) scale(0.94); }

.chat-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    width: min(390px, calc(100vw - 32px));
    height: auto;
    max-height: min(660px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(7, 28, 66, 0.1);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 180ms ease, transform 180ms ease;
}

.chat-panel.open { opacity: 1; pointer-events: auto; transform: none; }
.chat-panel.module-open { width: min(520px, calc(100vw - 24px)); height: min(820px, calc(100vh - 24px)); max-height: none; right: 12px; bottom: 12px; }
.chat-menu-view { min-height: 0; display: flex; flex: 1; flex-direction: column; }

.chat-header {
    min-height: 76px;
    display: grid;
    grid-template-columns: 42px 1fr 36px;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    color: var(--white);
    background: var(--navy-900);
}

.assistant-avatar { width: 42px; height: 42px; display: grid; place-items: center; color: var(--navy-900); background: var(--yellow-400); border-radius: 14px 14px 14px 5px; font-size: 13px; font-weight: 800; }
.chat-header > div:nth-child(2) { display: grid; line-height: 1.25; }
.chat-header strong { font-size: 12px; }
.chat-header span { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: rgba(255, 255, 255, 0.58); font-size: 9px; }
.chat-header span i { width: 6px; height: 6px; background: var(--green-500); border-radius: 50%; }
.chat-header button { width: 36px; height: 36px; color: rgba(255, 255, 255, 0.7); background: transparent; border: 0; border-radius: 9px; font-size: 25px; cursor: pointer; }

.chat-messages { flex: 0 1 auto; min-height: 0; max-height: 250px; overflow-y: auto; padding: 20px 17px 8px; background: #f7f9fb; }
.chat-message { max-width: 87%; margin-bottom: 13px; padding: 11px 13px; border-radius: 5px 14px 14px 14px; font-size: 11px; line-height: 1.6; }
.chat-message.bot { color: #293649; background: var(--white); border: 1px solid var(--line); }
.chat-message.bot:first-child { background: #f1fbf6; border-color: #cbe9db; border-left: 4px solid var(--green-500); }
.chat-message.user { margin-left: auto; color: var(--white); background: var(--blue-600); border-radius: 14px 5px 14px 14px; }
.chat-message a { color: var(--blue-600); font-weight: 800; text-decoration: underline; }

.chat-actions { display: grid; grid-template-columns: 1fr; gap: 8px; max-height: 310px; overflow-y: auto; padding: 6px 17px 15px; background: #f7f9fb; }
.chat-actions:empty { display: none; }
.chat-actions button { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; color: var(--navy-900); background: var(--white); border: 1px solid #d9e4ee; border-radius: 11px; box-shadow: 0 5px 14px rgba(7, 28, 66, 0.045); font-size: 10px; font-weight: 800; text-align: left; cursor: pointer; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.chat-actions button::after { content: "→"; flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; color: var(--blue-600); background: var(--blue-100); border-radius: 8px; font-size: 13px; transition: color 160ms ease, background 160ms ease, transform 160ms ease; }
.chat-actions button:hover { color: var(--white); background: var(--navy-900); border-color: var(--navy-900); box-shadow: 0 8px 20px rgba(7, 28, 66, 0.16); transform: translateX(3px); }
.chat-actions button:hover::after { color: var(--navy-900); background: var(--yellow-400); transform: translateX(2px); }
.chat-actions button:last-child { border-color: #bfe4d3; background: #f1fbf6; }
.chat-actions button:last-child::after { color: #08774d; background: #d9f3e7; }
.chat-actions button:last-child:hover { color: var(--white); background: #08774d; border-color: #08774d; }

.chat-input { display: grid; grid-template-columns: 1fr 40px; gap: 8px; padding: 12px 14px 8px; border-top: 1px solid var(--line); }
.chat-input input { min-width: 0; padding: 10px 12px; background: #f7f9fb; border: 1px solid var(--line); border-radius: 9px; outline: 0; font-size: 11px; }
.chat-input input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(21, 153, 230, 0.1); }
.chat-input button { color: var(--white); background: var(--blue-600); border: 0; border-radius: 9px; font-weight: 800; cursor: pointer; }
.chat-disclaimer { margin: 0; padding: 0 14px 10px; color: #9aa5b1; font-size: 8px; text-align: center; }
.chat-module { min-height: 0; display: flex; flex: 1; flex-direction: column; background: #f7f9fb; }
.chat-module-toolbar { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; background: #eef4f8; border-bottom: 1px solid var(--line); }
.chat-module-toolbar button { padding: 7px 10px; color: var(--blue-600); background: var(--white); border: 1px solid #d5e3ed; border-radius: 8px; font-size: 9px; font-weight: 800; cursor: pointer; }
.chat-module-toolbar strong { overflow: hidden; color: var(--navy-900); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.chat-module iframe { width: 100%; min-height: 0; flex: 1; background: #f7f9fb; border: 0; }

@media (max-width: 560px) {
    .chat-panel.module-open { width: 100%; height: 100%; right: 0; bottom: 0; border: 0; border-radius: 0; }
}

/* Vista amplia para probar el mismo asistente sin modificar la burbuja pública. */
body.assistant-test-page { min-height:100vh;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 12% 5%,rgba(21,153,230,.16),transparent 34rem),#eef4f8; }
body.assistant-test-page > header,
body.assistant-test-page > main,
body.assistant-test-page > footer,
body.assistant-test-page > .chat-launcher,
body.assistant-test-page > dialog { display:none!important; }
body.assistant-test-page .chat-panel { position:relative;right:auto;bottom:auto;width:min(960px,calc(100vw - 36px));height:auto;max-height:calc(100vh - 36px);margin:18px auto;border-radius:22px;opacity:1;pointer-events:auto;transform:none; }
body.assistant-test-page .chat-panel.module-open { height:min(900px,calc(100vh - 36px));max-height:none; }
body.assistant-test-page .chat-header { min-height:88px;padding:16px 24px; }
body.assistant-test-page .chat-header > button { display:none; }
body.assistant-test-page .assistant-avatar { width:48px;height:48px; }
body.assistant-test-page .chat-header strong { font-size:15px; }
body.assistant-test-page .chat-header span { font-size:10px; }
body.assistant-test-page .chat-messages { max-height:210px;padding:28px 32px 12px; }
body.assistant-test-page .chat-message { max-width:690px;padding:17px 19px;font-size:14px; }
body.assistant-test-page .chat-actions { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:10px 32px 24px; }
body.assistant-test-page .chat-actions button { min-height:58px;padding:14px 17px;font-size:13px; }
body.assistant-test-page .chat-input { grid-template-columns:1fr 54px;padding:17px 32px 10px; }
body.assistant-test-page .chat-input input { min-height:50px;font-size:13px; }
body.assistant-test-page .chat-disclaimer { padding-bottom:17px;font-size:9px; }
body.assistant-test-page .chat-module-toolbar { min-height:52px;padding-inline:18px; }
body.assistant-test-page .chat-module-toolbar button,
body.assistant-test-page .chat-module-toolbar strong { font-size:11px; }

@media (max-width:700px) {
    body.assistant-test-page .chat-panel,
    body.assistant-test-page .chat-panel.module-open { width:100%;height:100vh;margin:0;border:0;border-radius:0; }
    body.assistant-test-page .chat-actions { grid-template-columns:1fr;padding-inline:16px; }
    body.assistant-test-page .chat-messages,
    body.assistant-test-page .chat-input { padding-inline:16px; }
}

.modal {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 24px;
    overflow-y: auto;
    background: transparent;
    border: 0;
}

.modal::backdrop { background: rgba(2, 13, 32, 0.76); backdrop-filter: blur(7px); }
.modal[open] { display: grid; place-items: center; animation: dialogIn 180ms ease both; }

@keyframes dialogIn { from { opacity: 0; } to { opacity: 1; } }

.modal-shell {
    position: relative;
    width: min(760px, 100%);
    padding: 46px;
    background: var(--white);
    border-radius: 3px 26px 3px 3px;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #7b8795;
    background: #f3f6f8;
    border: 0;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.modal-shell h2 {
    margin: 6px 0 8px;
    color: var(--navy-900);
    font-family: var(--font-serif);
    font-size: 42px;
    letter-spacing: -0.03em;
    line-height: 1;
}

.modal-lead { margin: 0 0 30px; color: var(--slate); font-size: 13px; }

.internal-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.internal-card {
    min-height: 155px;
    display: grid;
    align-content: start;
    padding: 22px;
    color: var(--ink);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 11px;
    text-align: left;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.internal-card:hover { color: var(--white); background: var(--navy-900); transform: translateY(-3px); }
.internal-card span { color: var(--blue-600); font-size: 9px; font-weight: 800; }
.internal-card:hover span { color: var(--yellow-400); }
.internal-card strong { margin-top: 23px; font-family: var(--font-serif); font-size: 19px; }
.internal-card small { margin-top: 4px; color: var(--slate); font-size: 9px; }
.internal-card:hover small { color: rgba(255, 255, 255, 0.6); }
.button-secondary { width: fit-content; min-height: 42px; margin-top: 8px; color: var(--navy-900); background: #eef2f6; }

.auth-modal-shell { width: min(540px, 100%); }
.activation-shell { width: min(720px, 100%); }
.auth-modal-shell form { margin-top: 28px; }
.auth-modal-shell .field-row { grid-template-columns: repeat(2, 1fr); }

.success-shell { width: min(460px, 100%); text-align: center; }
.success-icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 20px; color: #187845; background: #dff6e9; border-radius: 50%; font-size: 26px; font-weight: 800; }
.success-shell p { margin: 12px 0 24px; color: var(--slate); font-size: 13px; }

.news-modal-shell { width: min(720px, 100%); padding: 0 0 45px; overflow: hidden; }
.news-modal-shell .modal-close { color: var(--white); background: rgba(5, 21, 47, 0.72); }
.news-modal-shell img { width: 100%; height: 330px; object-fit: cover; }
.news-modal-shell time { display: block; margin: 30px 40px 0; }
.news-modal-shell h2 { margin: 8px 40px 16px; }
.news-modal-shell p { margin: 0 40px; color: var(--slate); font-size: 14px; line-height: 1.8; }

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(34px) scale(0.985);
    transition:
        opacity 700ms ease var(--reveal-delay, 0ms),
        transform 700ms cubic-bezier(.2,.75,.25,1) var(--reveal-delay, 0ms);
}

.reveal-on-scroll.in-view { opacity: 1; transform: none; }

.value-card.reveal-on-scroll:nth-child(2),
.service-card.reveal-on-scroll:nth-child(2),
.news-card.reveal-on-scroll:nth-child(2) { --reveal-delay: 100ms; }

.value-card.reveal-on-scroll:nth-child(3),
.service-card.reveal-on-scroll:nth-child(3),
.news-card.reveal-on-scroll:nth-child(3) { --reveal-delay: 200ms; }

.service-card.reveal-on-scroll:nth-child(4) { --reveal-delay: 300ms; }

@media (max-width: 1050px) {
    .public-nav { gap: 18px; }
    .public-nav a { font-size: 12px; }
    .manifesto-grid,
    .ideas-layout,
    .guidance-layout { gap: 55px; }
    .news-grid { grid-template-columns: 1.15fr 1fr; }
    .news-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
    .news-card:last-child .news-image { height: 100%; min-height: 280px; }
}

@media (max-width: 860px) {
    .section { padding: 85px 0; }
    .section-shell,
    .header-inner,
    .hero-content { width: min(100% - 34px, 720px); }

    .site-header,
    .site-header.scrolled { position: fixed; color: var(--navy-900); background: rgba(255, 255, 255, 0.96); border-color: rgba(7, 28, 66, 0.08); }
    .header-inner { min-height: 72px; }
    .menu-toggle { display: block; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .public-nav {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        display: grid;
        gap: 0;
        padding: 16px 17px 22px;
        color: var(--navy-900);
        background: var(--white);
        border-top: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(7, 28, 66, 0.13);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .public-nav.open { opacity: 1; pointer-events: auto; transform: none; }
    .public-nav a { padding: 12px 4px; color: var(--navy-900); font-size: 14px; text-shadow: none; }
    .public-nav .nav-cta { margin-top: 8px; padding: 13px 16px; text-align: center; }

    .hero { min-height: 730px; }
    .hero-media { background-image: url("assets/hero-institucional-mobile.webp"); background-position: center; background-size: cover; }
    .hero-overlay { background: linear-gradient(90deg, rgba(5, 21, 47, 0.97) 0%, rgba(5, 21, 47, 0.9) 52%, rgba(5, 21, 47, 0.32) 100%); }
    .hero-content { position: relative; z-index: 2; display: block; padding-top: 76px; }
    .hero-mobile-title { max-width: 600px; font-size: clamp(50px, 10vw, 70px); }
    .hero-lead { font-size: 16px; }
    .scroll-cue { display: none; }

    .manifesto-grid,
    .ideas-layout,
    .guidance-layout,
    .section-heading-row,
    .footer-main { grid-template-columns: 1fr; gap: 36px; }

    .manifesto-copy { max-width: 600px; }
    .value-grid { grid-template-columns: 1fr; gap: 16px; }
    .value-card { min-height: 265px; }
    .value-card h3 { margin-top: 34px; }

    .ideas-story { position: static; }
    .campaign-image { max-width: 460px; }
    .idea-form-card { padding: 38px; }
    .guidance-copy { max-width: 600px; }
    .footer-main { gap: 45px; }
}

@media (max-width: 620px) {
    .section { padding: 68px 0; }
    .brand { min-width: 0; }
    .brand-mark { width: 40px; height: 40px; }
    .brand-mark.brand-logo { width: 43px; height: 48px; }
    .brand-copy strong { font-size: 11px; }
    .brand-copy small { font-size: 8px; }

    .hero { min-height: 710px; align-items: center; }
    .hero-media { background-position: center; }
    .hero-content { padding-top: 72px; }
    .hero-mobile-title { font-size: 47px; }
    .hero-actions { display: grid; }
    .button { width: 100%; }

    .manifesto h2,
    .guidance h2,
    .activities h2 { font-size: 42px; }

    .ideas::before { font-size: 300px; }
    .ideas h2 { font-size: 51px; }
    .idea-form-card { padding: 29px 20px; border-radius: 2px 20px 2px 2px; }
    .form-heading h3 { font-size: 36px; }
    .field-row,
    .auth-modal-shell .field-row { grid-template-columns: 1fr; gap: 0; }
    .field-row.contact-row { grid-template-columns: 1fr; gap: 0; }
    .contact-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .contact-heading small { text-align: left; }

    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 180px; }
    .service-icon { margin-bottom: 24px; }

    .section-heading-row { margin-bottom: 36px; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card:last-child { grid-column: auto; display: block; }
    .news-card .news-image,
    .news-card.large .news-image,
    .news-card:last-child .news-image { height: 245px; min-height: 0; }

    .closing-inner > div { display: grid; gap: 10px; }
    .footer-links { grid-template-columns: 1fr 1fr; gap: 34px; }
    .footer-bottom { align-items: flex-start; gap: 20px; padding: 22px 0; }

    .chat-launcher { right: 16px; bottom: 84px; min-width: 0; width: 60px; height: 60px; display: grid; grid-template-columns: 1fr; place-items: center; padding: 6px; border-radius: 19px; }
    .chat-launcher .chat-label,
    .chat-launcher .chat-symbol { display: none; }
    .assistant-orb { width: 48px; height: 48px; }
    .simple-assistant-icon { width: 60px; height: 60px; border-width: 6px; }
    .chat-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: auto; max-height: calc(100vh - 16px); }

    .modal { padding: 12px; }
    .modal-shell { padding: 39px 22px 28px; border-radius: 2px 20px 2px 2px; }
    .modal-shell h2 { font-size: 36px; }
    .internal-actions { grid-template-columns: 1fr; }
    .internal-card { min-height: 130px; }
    .news-modal-shell { padding: 0 0 32px; }
    .news-modal-shell img { height: 250px; }
    .news-modal-shell time { margin: 25px 22px 0; }
    .news-modal-shell h2 { margin: 7px 22px 13px; }
    .news-modal-shell p { margin: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .reveal-on-scroll { opacity: 1; transform: none; }
}
