/* TuApoyoMor - estilos base */
        @font-face {
            font-family: "TuApoyo Sans";
            src: url("../../assets/fonts/montserrat-latin-variable.woff2") format("woff2");
            font-style: normal;
            font-weight: 400 800;
            font-display: swap;
        }

        @font-face {
            font-family: "TuApoyo Display";
            src: url("../../assets/fonts/barlow-condensed-latin-600.woff2") format("woff2");
            font-style: normal;
            font-weight: 600;
            font-display: swap;
        }

        @font-face {
            font-family: "TuApoyo Display";
            src: url("../../assets/fonts/barlow-condensed-latin-700.woff2") format("woff2");
            font-style: normal;
            font-weight: 700;
            font-display: swap;
        }

        @font-face {
            font-family: "TuApoyo Display";
            src: url("../../assets/fonts/barlow-condensed-latin-800.woff2") format("woff2");
            font-style: normal;
            font-weight: 800;
            font-display: swap;
        }

        :root {
            --font-body: "TuApoyo Sans", Montserrat, Arial, sans-serif;
            --font-display: "TuApoyo Display", "Arial Narrow", Arial, sans-serif;
            --official-silver: #86857E;
            --official-silver-dark: #62625E;
            --official-gold: #C2996D;
            --official-gold-dark: #85603B;
            --official-gold-light: #D8B98B;
            --official-olive: #6F7857;
            --official-wine: #832B56;
        }

        body,
        button,
        input,
        select,
        textarea {
            font-family: var(--font-body);
            letter-spacing: 0;
        }

        h1,
        h2,
        h3,
        h4,
        .brand-wordmark,
        .institutional-title {
            font-family: var(--font-display);
            letter-spacing: 0;
        }

        .institutional-page {
            font-family: var(--font-body);
        }

        .institutional-title {
            letter-spacing: 0;
            text-wrap: balance;
        }

        .institutional-kicker {
            color: var(--official-gold-dark);
        }

        .privacy-section-number {
            color: var(--official-gold-dark);
        }

        .brand-wordmark-accent {
            color: inherit;
        }

        .official-footer {
            border-top-color: var(--official-gold) !important;
        }

        .footer-institutional-heading {
            color: var(--official-gold-light);
            border-color: rgba(216, 185, 139, 0.35) !important;
        }

        .footer-institutional-meta {
            color: #B7B6AF;
        }

        .official-icon-frame {
            display: inline-grid !important;
            place-items: center;
            line-height: 0;
        }

        .official-icon-frame > svg {
            display: block;
            margin: 0;
        }

        .privacy-section {
            scroll-margin-top: 6.5rem;
        }

        .brand-logo {
            display: block;
            width: var(--brand-logo-size, 2.5rem) !important;
            height: var(--brand-logo-size, 2.5rem) !important;
            min-width: var(--brand-logo-size, 2.5rem) !important;
            max-width: var(--brand-logo-size, 2.5rem) !important;
            min-height: var(--brand-logo-size, 2.5rem) !important;
            max-height: var(--brand-logo-size, 2.5rem) !important;
            flex: 0 0 var(--brand-logo-size, 2.5rem);
            object-fit: contain;
        }

        .brand-logo-symbol {
            filter: drop-shadow(0 0.16rem 0.28rem rgba(15, 23, 42, 0.2));
        }

        .brand-logo-nav { --brand-logo-size: 2.5rem; }
        .brand-logo-admin { --brand-logo-size: 2.25rem; }
        .brand-logo-login { --brand-logo-size: 2.5rem; }
        .brand-logo-footer { --brand-logo-size: 2.125rem; }

        .brand-lockup {
            display: inline-flex;
            align-items: center;
            min-width: 0;
        }

        .nav-brand-lockup {
            gap: 0.5rem;
        }

        .nav-brand-wordmark {
            color: var(--official-gold-dark);
        }

        .footer-brand-lockup {
            gap: 0.75rem;
        }

        .footer-brand-wordmark {
            color: var(--official-gold-light);
        }

        .mission-icon-frame {
            background: #edf4ea;
            border: 1px solid #c7d9ba;
            color: #a8743f;
        }

        .mission-icon-symbol {
            color: inherit;
        }

        .hero-title-gold,
        .home-cta-title {
            color: #f2d28e;
        }

        .home-cta-title {
            color: #f6d77c;
            text-shadow: 0 0.2rem 1.1rem rgba(6, 30, 20, 0.42);
        }

        .privacy-consent-compact {
            border-top: 1px solid #dce5d6;
            color: #4b5563;
        }

        .privacy-consent-compact a {
            color: #1f7a4d;
        }

        .catalog-results {
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .catalog-results.is-loading {
            opacity: 0.58;
            transform: translateY(0.2rem);
            pointer-events: none;
        }

        .catalog-search-clear {
            position: absolute;
            top: 50%;
            right: 0.75rem;
            width: 2.75rem;
            height: 2.75rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #cfe2d6;
            border-radius: 0.8rem;
            background: #edf8f1;
            color: #14532d;
            transform: translateY(-50%);
            transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
        }

        .catalog-search-clear:hover,
        .catalog-search-clear:focus-visible {
            outline: none;
            border-color: #8fbea2;
            background: #dff3e7;
            transform: translateY(-50%) scale(1.04);
        }

        .catalog-search-clear[hidden] {
            display: none;
        }

        .choice-search-empty {
            margin: -0.25rem 1.5rem 1rem;
            color: #6b7280;
            font-size: 0.875rem;
            font-weight: 600;
        }

        @media (max-width: 640px) {
            .brand-logo-nav { --brand-logo-size: 2.25rem; }
            .brand-wordmark { font-size: 1.35rem; }
        }

/* Animaciones de Reveal */
        .reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
        .reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
        .reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
        .reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
        
        .is-revealed { opacity: 1 !important; transform: translate(0, 0) scale(1) !important; }

        @media (max-width: 1023px) {
            .reveal-left,
            .reveal-right {
                transform: translateY(32px);
            }
        }
        
        .hide-scrollbar::-webkit-scrollbar { display: none; }
        .hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

        .home-hero [data-hero-bg] {
            transition: opacity 0.45s ease, transform 0.9s ease;
            will-change: transform, opacity;
        }

        .home-hero-copy {
            transition: opacity 0.34s ease, transform 0.34s ease;
        }

        .home-hero.is-changing [data-hero-bg] {
            opacity: 0.38;
        }

        .home-hero.is-changing .home-hero-copy {
            opacity: 0.72;
            transform: translateY(0.5rem);
        }

        .home-hero.is-changing .home-hero-copy.is-revealed {
            transform: translateY(0.5rem) !important;
        }

        .home-hero-dot {
            width: 0.78rem;
            height: 0.78rem;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.38);
            background: rgba(255, 255, 255, 0.42);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
            transition: width 0.28s ease, background 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
        }

        .home-hero-dot:hover,
        .home-hero-dot:focus-visible {
            background: rgba(255, 255, 255, 0.86);
            transform: translateY(-1px);
            outline: none;
        }

        .home-hero-dot.is-active {
            width: 3.75rem;
            background: #ffffff;
            box-shadow: 0 0 24px rgba(255, 255, 255, 0.42), 0 10px 24px rgba(0, 0, 0, 0.18);
        }

        .home-carousel-shell {
            position: relative;
            isolation: isolate;
        }

        .home-carousel-shell::before,
        .home-carousel-shell::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 3.25rem;
            z-index: 2;
            width: clamp(2rem, 8vw, 6rem);
            pointer-events: none;
        }

        .home-carousel-shell::before {
            left: -0.25rem;
            background: linear-gradient(90deg, #0D2F24 0%, rgba(13, 47, 36, 0) 100%);
        }

        .home-carousel-shell::after {
            right: -0.25rem;
            background: linear-gradient(270deg, #0D2F24 0%, rgba(13, 47, 36, 0) 100%);
        }

        .home-programs-carousel {
            scroll-padding-inline: 1rem;
            scroll-behavior: auto;
            scroll-snap-type: none;
            overscroll-behavior-inline: contain;
            will-change: scroll-position;
        }

        .home-carousel-item {
            flex: 0 0 min(84vw, 20rem);
            display: flex;
            min-width: 0;
        }

        .home-carousel-item > * {
            width: 100%;
            min-width: 0;
        }

        .program-card-title,
        .program-card-description,
        .program-card-summary {
            min-width: 0;
            overflow-wrap: anywhere;
        }

        .home-carousel-status {
            position: relative;
            height: 0.35rem;
            max-width: 22rem;
            margin: 0 auto;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.16);
        }

        .home-carousel-status span {
            display: block;
            width: 18%;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #E8F5EE, #68B98A);
            box-shadow: 0 0 18px rgba(232, 245, 238, 0.42);
            transform: translateX(0);
            transition: transform 0.12s linear, width 0.2s ease;
        }

        .support-timeline {
            isolation: isolate;
        }

        .support-timeline-line {
            overflow: hidden;
            background: linear-gradient(180deg, rgba(31, 122, 77, 0.1), rgba(31, 122, 77, 0.82), rgba(104, 185, 138, 0.44), rgba(31, 122, 77, 0.08));
            box-shadow: 0 0 26px rgba(31, 122, 77, 0.18);
        }

        .support-timeline-line::after {
            content: "";
            position: absolute;
            inset: -35% 0;
            background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9), transparent);
            animation: timelineFlow 4.8s ease-in-out infinite;
        }

        .support-timeline-step {
            min-height: 9rem;
        }

        .support-timeline-node {
            isolation: isolate;
            animation: timelinePulse 2.8s ease-in-out infinite;
        }

        .support-timeline-node::after {
            content: "";
            position: absolute;
            inset: -0.65rem;
            z-index: -1;
            border: 2px solid rgba(31, 122, 77, 0.22);
            border-radius: 999px;
            animation: timelineRing 2.8s ease-in-out infinite;
        }

        .support-timeline-node-alt::after {
            border-color: rgba(20, 83, 45, 0.24);
        }

        .support-timeline-card {
            position: relative;
            overflow: hidden;
            transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
        }

        .support-timeline-card::before {
            content: "";
            position: absolute;
            inset: 0 0 auto;
            height: 0.28rem;
            background: linear-gradient(90deg, #1F7A4D, #68B98A);
            opacity: 0.9;
        }

        .support-timeline-card::after {
            content: "";
            position: absolute;
            top: -4.5rem;
            right: -4.5rem;
            width: 9rem;
            height: 9rem;
            border-radius: 999px;
            background: rgba(232, 245, 238, 0.76);
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .support-timeline-card:hover {
            box-shadow: 0 22px 48px rgba(15, 23, 42, 0.11);
        }

        .support-timeline-card:hover::after {
            transform: scale(1.08);
            opacity: 0.95;
        }

        .support-timeline-card > * {
            position: relative;
            z-index: 1;
        }

        .support-timeline-icon {
            width: 2.75rem;
            height: 2.75rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 1rem;
            background: #E8F5EE;
            color: #1F7A4D;
            margin-bottom: 1rem;
            box-shadow: inset 0 0 0 1px rgba(31, 122, 77, 0.08), 0 10px 24px rgba(31, 122, 77, 0.12);
        }

        @keyframes timelineFlow {
            0% { transform: translateY(-18%); opacity: 0; }
            30% { opacity: 0.9; }
            70% { opacity: 0.9; }
            100% { transform: translateY(18%); opacity: 0; }
        }

        @keyframes timelinePulse {
            0%, 100% { transform: translateX(-50%) scale(1); }
            50% { transform: translateX(-50%) scale(1.05); }
        }

        @keyframes timelineRing {
            0%, 100% { opacity: 0.25; transform: scale(0.88); }
            50% { opacity: 0.9; transform: scale(1.1); }
        }

        @media (min-width: 640px) {
            .home-carousel-item {
                flex-basis: min(44vw, 22.5rem);
            }
        }

        @media (min-width: 1024px) {
            .home-carousel-item {
                flex-basis: min(32vw, 25rem);
            }
        }

        @media (max-width: 640px) {
            .home-hero-dot.is-active {
                width: 2.8rem;
            }

            .home-programs-section .reveal-left,
            .home-programs-section .reveal-up {
                opacity: 1 !important;
                transform: none !important;
                transition: none !important;
            }

            .home-carousel-shell::before,
            .home-carousel-shell::after {
                display: none;
            }

            .home-programs-carousel {
                margin-inline: 0 !important;
                padding-inline: 0.25rem !important;
                scroll-padding-inline: 0.25rem;
                scroll-snap-type: x mandatory;
                gap: 0.75rem !important;
                will-change: auto;
            }

            .home-carousel-item {
                flex: 0 0 calc(100% - 0.5rem);
                width: calc(100% - 0.5rem);
                min-width: 0;
                max-width: calc(100% - 0.5rem);
                scroll-snap-align: center;
            }

            .home-carousel-item[data-carousel-clone] {
                display: none !important;
            }

            .program-card {
                border-radius: 1.5rem !important;
                transform: none !important;
            }

            .program-card-media {
                height: 12rem !important;
            }

            .program-card-body {
                padding: 1.25rem !important;
            }

            .program-card-title {
                min-height: 3.3rem;
                font-size: 1.35rem !important;
                margin-bottom: 0.75rem !important;
            }

            .program-card-description {
                margin-bottom: 1rem !important;
                font-size: 0.95rem !important;
            }

            .program-card-summary {
                padding: 1rem !important;
                margin-bottom: 1rem !important;
            }

            .home-carousel-status {
                max-width: min(15rem, 78vw);
            }

            .support-timeline-card {
                border-radius: 1.5rem !important;
                padding: 1.5rem !important;
            }

            .support-timeline-step {
                margin-bottom: 2.25rem !important;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .home-hero [data-hero-bg],
            .home-hero-copy,
            .home-hero-dot,
            .home-carousel-status span,
            .support-timeline-card,
            .support-timeline-card::after {
                transition: none !important;
            }

            .support-timeline-line::after,
            .support-timeline-node,
            .support-timeline-node::after,
            .animate-kenburns {
                animation: none !important;
            }
        }
        
        .glass-nav { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(31, 122, 77, 0.12); }
        .glass-card { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.5); }

        .login-modal-lock {
            overflow: hidden;
        }

        .login-modal {
            position: fixed;
            inset: 0;
            z-index: 90;
            display: grid;
            place-items: center;
            padding: 1rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.24s ease;
        }

        .login-modal.is-open {
            opacity: 1;
            pointer-events: auto;
        }

        .login-modal-backdrop {
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 22% 16%, rgba(33, 150, 243, 0.26), transparent 30rem),
                rgba(7, 26, 52, 0.58);
            backdrop-filter: blur(12px);
        }

        .login-modal-panel {
            position: relative;
            width: min(28.5rem, 100%);
            display: grid;
            gap: 1.25rem;
            padding: clamp(1.35rem, 4vw, 2rem);
            border: 1px solid rgba(255, 255, 255, 0.78);
            border-radius: 1.75rem;
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 30px 90px rgba(4, 18, 38, 0.32);
            transform: translateY(22px) scale(0.98);
            transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .login-modal.is-open .login-modal-panel {
            transform: translateY(0) scale(1);
        }

        .login-modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 2.6rem;
            height: 2.6rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #e2e8f0;
            border-radius: 0.9rem;
            background: #f8fafc;
            color: #334155;
            transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
        }

        .login-modal-close:hover {
            background: #eef6ff;
            color: #1F7A4D;
            transform: rotate(4deg);
        }

        .login-modal-mark {
            width: 4.2rem;
            height: 4.2rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 1.35rem;
            background: linear-gradient(135deg, #1F7A4D, #2F9E62);
            color: #ffffff;
            box-shadow: 0 16px 34px rgba(31, 122, 77, 0.28);
        }

        .login-modal-heading {
            padding-right: 2.75rem;
        }

        .login-modal-eyebrow {
            font-size: 0.76rem;
            font-weight: 900;
            letter-spacing: 0;
            text-transform: uppercase;
            color: #1F7A4D;
        }

        .login-modal-heading h2 {
            margin-top: 0.35rem;
            font-size: clamp(1.85rem, 5vw, 2.45rem);
            font-weight: 900;
            color: #0f172a;
            line-height: 1.05;
        }

        .login-modal-heading p {
            margin-top: 0.75rem;
            color: #64748b;
            line-height: 1.55;
        }

        .login-modal-form {
            display: grid;
            gap: 1.25rem;
        }

        .login-modal-error {
            display: none;
            border: 1px solid #fecaca;
            border-radius: 1rem;
            background: #fef2f2;
            color: #991b1b;
            padding: 0.85rem 1rem;
            font-size: 0.9rem;
            font-weight: 800;
        }

        .login-modal-error.is-visible {
            display: block;
            animation: modalErrorIn 0.22s ease both;
        }

        .login-modal-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding-top: 0.4rem;
        }

        .login-modal-register {
            color: #1F7A4D;
            font-weight: 900;
            transition: color 0.2s ease;
        }

        .login-modal-register:hover {
            color: #14532D;
        }

        .login-modal-submit {
            min-width: 8.7rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.55rem;
            border-radius: 999px;
            background: #1F7A4D;
            color: #ffffff;
            padding: 0.9rem 1.45rem;
            font-weight: 900;
            box-shadow: 0 12px 26px rgba(31, 122, 77, 0.28);
            transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
        }

        .login-modal-submit:hover {
            background: #14532D;
            transform: translateY(-1px);
            box-shadow: 0 16px 34px rgba(31, 122, 77, 0.34);
        }

        .login-modal-submit:disabled {
            cursor: progress;
            opacity: 0.82;
            transform: none;
        }

        .login-modal-submit.is-loading i {
            animation: loginArrowPulse 0.8s ease-in-out infinite;
        }

        .password-input-wrap {
            position: relative;
        }

        .password-input-wrap .password-toggle-input {
            padding-right: 3.6rem !important;
        }

        .password-visibility-toggle {
            position: absolute;
            top: 50%;
            right: 0.75rem;
            width: 2.55rem;
            height: 2.55rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.95rem;
            color: #64748b;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            transform: translateY(-50%);
            transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        }

        .password-visibility-toggle:hover,
        .password-visibility-toggle.is-visible {
            color: #1F7A4D;
            background: #eef6ff;
            box-shadow: 0 8px 18px rgba(31, 122, 77, 0.14);
        }

        .password-visibility-toggle.is-visible {
            transform: translateY(-50%) scale(1.06);
        }

        .password-match-feedback {
            transition: color 0.2s ease, transform 0.2s ease;
        }

        .password-match-feedback.is-valid {
            color: #2E7D32;
            transform: translateY(-1px);
        }

        .password-match-feedback.is-invalid {
            color: #B91C1C;
        }

        @keyframes modalErrorIn {
            from { opacity: 0; transform: translateY(-5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes loginArrowPulse {
            0%, 100% { transform: translateX(0); opacity: 0.75; }
            50% { transform: translateX(4px); opacity: 1; }
        }

        .form-side-panel {
            position: sticky;
            top: 4.5rem;
            height: calc(100vh - 4.5rem);
            min-height: 34rem;
        }

        .form-side-content {
            margin-top: clamp(4rem, 9vh, 7rem);
        }

        #view-form .support-flow-shell {
            min-height: calc(100vh - 4.5rem);
        }

        #view-form .form-side-panel {
            justify-content: center;
            padding-inline: clamp(3rem, 5vw, 5rem);
        }

        #view-form .form-side-content {
            width: min(100%, 40rem);
            margin-top: 0;
            transform: translateY(-1vh);
        }

        #view-form .form-side-content h2 {
            max-width: 12ch;
        }

        #view-form .form-side-content p {
            max-width: 35rem;
        }

        #view-form .form-main-panel {
            min-height: calc(100vh - 4.5rem);
            padding-block: clamp(2rem, 5vh, 4.5rem);
        }

        #view-form .form-card-frame {
            width: min(100%, 48.5rem);
            max-width: 48.5rem;
        }

        #view-form #form-header {
            max-width: 44rem;
            margin-inline: auto;
        }

        #view-form .support-form-card {
            padding: clamp(1.75rem, 3.1vw, 3.35rem);
            border-radius: clamp(1.75rem, 3vw, 2.5rem);
            box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
        }

        #view-form .support-form-grid {
            grid-template-columns: 1fr;
            align-items: stretch;
            row-gap: 1.65rem;
            column-gap: 1.85rem;
        }

        #view-form .support-field {
            min-width: 0;
            display: flex;
            flex-direction: column;
        }

        #view-form .support-field > label {
            min-height: 1.35rem;
        }

        #view-form .support-field .profile-choice-trigger {
            flex: 0 0 auto;
        }

        #view-form .support-field-audience p {
            max-width: 38rem;
        }

        @media (min-width: 768px) {
            #view-form .support-form-grid {
                grid-template-columns: repeat(12, minmax(0, 1fr));
            }

            #view-form .support-field-age { order: 1; }
            #view-form .support-field-gender { order: 2; }
            #view-form .support-field-municipality { order: 3; }
            #view-form .support-field-occupation { order: 4; }
            #view-form .support-field-education { order: 5; }
            #view-form .support-field-household { order: 6; }
            #view-form .support-field-audience { order: 7; }

            #view-form .support-field:not(.support-field-audience) > label {
                min-height: 2.75rem;
                display: flex;
                align-items: flex-end;
            }

            #view-form .support-field-age,
            #view-form .support-field-gender,
            #view-form .support-field-municipality,
            #view-form .support-field-occupation,
            #view-form .support-field-education,
            #view-form .support-field-household { grid-column: span 6 / span 6; }
            #view-form .support-field-audience { grid-column: span 12 / span 12; }

            #view-form .profile-choice-trigger,
            #view-form .profile-number-control {
                height: 7rem;
                min-height: 7rem;
            }
        }

        .support-form-actions {
            gap: 0.75rem;
        }

        .support-form-actions > button:not(.hidden) {
            min-width: 0;
        }

        @media (max-width: 420px) {
            #view-form .form-main-panel {
                padding-inline: 0.75rem !important;
            }

            #view-form .support-form-card {
                padding: 1.15rem;
                border-radius: 1.5rem;
            }

            #view-form #form-header {
                margin-bottom: 2rem;
            }

            #view-form #form-header h1 {
                font-size: 1.85rem;
                line-height: 1.12;
            }

            #view-form .prog-node {
                width: 2.5rem !important;
                height: 2.5rem !important;
                font-size: 0.875rem !important;
            }

            .support-form-actions {
                gap: 0.5rem;
                margin-top: 2rem !important;
                padding-top: 1.25rem !important;
            }

            .support-form-actions > button:not(.hidden) {
                flex: 1 1 0;
                width: auto;
                margin-left: 0 !important;
                padding: 0.85rem 0.65rem !important;
                justify-content: center;
                font-size: 0.9rem !important;
                white-space: nowrap;
            }

            .support-form-actions svg {
                width: 1rem;
                height: 1rem;
            }
        }
        
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }
        .animate-float { animation: float 6s ease-in-out infinite; }
        
        @keyframes kenburns {
            0% { transform: scale(1); }
            100% { transform: scale(1.1); }
        }
        .animate-kenburns { animation: kenburns 15s ease-out forwards; }
        
        /* Transiciones de vistas */
        .view-section { display: none; opacity: 0; transition: opacity 0.4s ease; }
        .view-section.active { display: block; opacity: 1; }

        /* Estilos form steps */
        .form-step { display: none; }
        .form-step.active { display: block; animation: slideInRight 0.5s forwards; }

        .prog-node-current {
            position: relative;
            animation: stepGlow 1.85s ease-in-out infinite;
        }

        .prog-node-current::after {
            content: "";
            position: absolute;
            inset: -0.55rem;
            border: 2px solid rgba(31, 122, 77, 0.24);
            border-radius: 999px;
            animation: stepRing 1.85s ease-in-out infinite;
        }

        @keyframes stepGlow {
            0%, 100% { box-shadow: 0 0 0 rgba(31, 122, 77, 0.0), 0 10px 22px rgba(31, 122, 77, 0.18); }
            50% { box-shadow: 0 0 24px rgba(31, 122, 77, 0.48), 0 14px 28px rgba(31, 122, 77, 0.22); }
        }

        @keyframes stepRing {
            0%, 100% { opacity: 0.25; transform: scale(0.92); }
            50% { opacity: 1; transform: scale(1.12); }
        }

        .profile-choice-trigger {
            width: 100%;
            min-height: 4.65rem;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            gap: 0.95rem;
            padding: 0.9rem 1rem;
            border: 1px solid #e5e7eb;
            border-radius: 1rem;
            background: #f9fafb;
            color: #1f2937;
            text-align: left;
            transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        }

        .profile-number-control {
            width: 100%;
            min-height: 4.65rem;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            align-items: center;
            gap: 0.95rem;
            padding: 0.9rem 1rem;
            border: 1px solid #e5e7eb;
            border-radius: 1rem;
            background: #f9fafb;
            color: #1f2937;
            transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
        }

        .profile-number-control:hover,
        .profile-number-control:focus-within {
            border-color: rgba(31, 122, 77, 0.4);
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.1);
        }

        .profile-number-body {
            min-width: 0;
            display: grid;
            gap: 0.18rem;
        }

        .profile-number-input {
            width: 100%;
            min-width: 0;
            padding: 0;
            border: 0;
            outline: 0;
            background: transparent;
            color: #172033;
            font-family: var(--font-display);
            font-size: 1.12rem;
            font-weight: 800;
            line-height: 1.25;
        }

        .profile-number-input::placeholder {
            color: #9ca3af;
            opacity: 1;
        }

        .profile-choice-trigger:hover {
            border-color: rgba(31, 122, 77, 0.35);
            background: #ffffff;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
            transform: translateY(-1px);
        }

        .profile-choice-trigger:focus-visible {
            outline: none;
            border-color: #1F7A4D;
            box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.14);
        }

        .profile-choice-trigger.is-filled {
            border-color: rgba(31, 122, 77, 0.45);
            background: #f2faf5;
        }

        .profile-choice-trigger-large {
            min-height: 5rem;
        }

        .choice-trigger-icon,
        .choice-option-icon {
            width: 2.65rem;
            height: 2.65rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            border-radius: 0.85rem;
            background: #E8F5EE;
            color: #1F7A4D;
        }

        .choice-trigger-text,
        .choice-option-body {
            min-width: 0;
            display: grid;
            gap: 0.18rem;
        }

        .choice-trigger-kicker,
        .choice-modal-eyebrow {
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0;
            text-transform: uppercase;
            color: #1F7A4D;
        }

        .choice-trigger-value,
        .choice-option-title {
            font-weight: 800;
            color: #172033;
            line-height: 1.25;
            overflow-wrap: anywhere;
        }

        .choice-modal-lock {
            overflow: hidden;
        }

        .choice-modal {
            position: fixed;
            inset: 0;
            z-index: 80;
            display: grid;
            place-items: center;
            padding: 1rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.24s ease;
        }

        .choice-modal.is-open {
            opacity: 1;
            pointer-events: auto;
        }

        .choice-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(8, 28, 56, 0.54);
            backdrop-filter: blur(10px);
        }

        .choice-modal-panel {
            position: relative;
            width: min(42rem, 100%);
            max-height: min(45rem, calc(100vh - 2rem));
            display: flex;
            flex-direction: column;
            gap: 1rem;
            padding: clamp(1rem, 3vw, 1.5rem);
            border: 1px solid rgba(255, 255, 255, 0.72);
            border-radius: 1.45rem;
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 28px 70px rgba(4, 18, 38, 0.28);
            transform: translateY(20px) scale(0.98);
            transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
            overflow: hidden;
        }

        .choice-modal-panel-wide {
            width: min(52rem, 100%);
        }

        .choice-modal.is-open .choice-modal-panel {
            transform: translateY(0) scale(1);
        }

        .choice-modal-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            padding-bottom: 0.85rem;
            border-bottom: 1px solid #eef2f7;
        }

        .choice-modal-header > div {
            min-width: 0;
        }

        .choice-modal-title {
            margin-top: 0.2rem;
            font-size: clamp(1.4rem, 4vw, 2rem);
            font-weight: 900;
            color: #0f172a;
            line-height: 1.08;
        }

        .choice-modal-copy,
        .choice-option-subtitle {
            color: #64748b;
            line-height: 1.5;
        }

        .choice-modal-copy {
            margin-top: 0.45rem;
            max-width: 38rem;
        }

        .choice-modal-close {
            width: 3rem;
            height: 3rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            border: 1px solid #b9d9c7;
            border-radius: 0.85rem;
            color: #14532d;
            background: #edf8f1;
            box-shadow: 0 8px 20px rgba(20, 83, 45, 0.12);
            transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        }

        .choice-modal-close:hover,
        .choice-modal-close:focus-visible {
            outline: none;
            border-color: #78ad8e;
            background: #dff3e7;
            box-shadow: 0 10px 24px rgba(20, 83, 45, 0.18);
            transform: rotate(4deg);
        }

        .choice-search-wrap {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            padding: 0.75rem 0.95rem;
            border: 1px solid #dbe5f0;
            border-radius: 1rem;
            background: #f8fbff;
            transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
        }

        .choice-search-wrap:focus-within {
            border-color: rgba(31, 122, 77, 0.55);
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.12);
        }

        .choice-search-input {
            width: 100%;
            border: 0;
            outline: 0;
            background: transparent;
            color: #172033;
            font-size: 1rem;
            font-weight: 700;
        }

        .choice-search-input::-webkit-search-cancel-button {
            display: none;
        }

        .choice-search-clear {
            width: 2.75rem;
            height: 2.75rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            border: 1px solid #cfe2d6;
            border-radius: 0.75rem;
            background: #edf8f1;
            color: #14532d;
            transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
        }

        .choice-search-clear:hover,
        .choice-search-clear:focus-visible {
            outline: none;
            border-color: #8fbea2;
            background: #dff3e7;
            transform: scale(1.04);
        }

        .choice-search-clear[hidden] {
            display: none;
        }

        .choice-search-status {
            min-height: 1.25rem;
            margin: -0.35rem 0.2rem 0;
            color: #64748b;
            font-size: 0.84rem;
            font-weight: 700;
            line-height: 1.35;
        }

        .choice-search-status.is-empty {
            color: #9f1239;
        }

        .choice-option-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            flex: 1 1 auto;
            min-height: 0;
            gap: 0.75rem;
            max-height: min(50vh, 28rem);
            overflow: auto;
            padding: 0.1rem 0.25rem 0.3rem 0.1rem;
            scrollbar-color: #94a3b8 #eef2f7;
            scrollbar-width: thin;
            overscroll-behavior: contain;
        }

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

        .choice-option-grid-compact {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            max-height: min(42vh, 22rem);
        }

        .choice-option-grid::-webkit-scrollbar {
            width: 10px;
        }

        .choice-option-grid::-webkit-scrollbar-track {
            background: #eef2f7;
            border-radius: 999px;
        }

        .choice-option-grid::-webkit-scrollbar-thumb {
            background: #94a3b8;
            border: 3px solid #eef2f7;
            border-radius: 999px;
        }

        .choice-option-card {
            min-height: 4.85rem;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            gap: 0.85rem;
            padding: 0.85rem;
            border: 1px solid #dfe7f1;
            border-radius: 1rem;
            background: #ffffff;
            text-align: left;
            transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
        }

        .choice-option-card.is-filtered-out {
            display: none;
        }

        .choice-option-card-tall {
            min-height: 6.15rem;
            align-items: flex-start;
        }

        .choice-option-card:hover,
        .choice-option-card:focus-visible {
            outline: none;
            border-color: rgba(31, 122, 77, 0.45);
            background: #f7fcf9;
            box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
            transform: translateY(-1px);
        }

        .choice-option-card.is-selected {
            border-color: #1F7A4D;
            background: #edf8f1;
            box-shadow: 0 12px 24px rgba(31, 122, 77, 0.14);
        }

        .choice-option-card.is-selected .choice-option-icon {
            background: #1F7A4D;
            color: #ffffff;
        }

        .choice-option-check {
            color: #1F7A4D;
            opacity: 0;
            transform: scale(0.8);
            transition: opacity 0.18s ease, transform 0.18s ease;
        }

        .choice-option-card.is-selected .choice-option-check {
            opacity: 1;
            transform: scale(1);
        }

        .password-feedback {
            transition: color 0.2s ease, transform 0.2s ease;
        }

        .password-feedback.is-valid {
            color: #2E7D32;
            transform: translateY(-1px);
        }

        .password-valid-input {
            border-color: #2E7D32 !important;
            background: #f5fff6 !important;
            box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.11);
        }

        @keyframes slideInRight {
            from { opacity: 0; transform: translateX(30px); }
            to { opacity: 1; transform: translateX(0); }
        }
        @keyframes spin { 100% { transform: rotate(360deg); } }
        .spin-slow { animation: spin 3s linear infinite; }

        /* Animaciones SVG Hover (Misión) */
        .group:hover .anim-lupa { transform: scale(1.15) rotate(-10deg); }
        
        .anim-pulse-line {
            stroke-dasharray: 40;
            stroke-dashoffset: 40;
            transition: stroke-dashoffset 0s 9999s; /* Efecto: Se mantiene dibujado al quitar el cursor */
        }
        .group:hover .anim-pulse-line {
            stroke-dashoffset: 0;
            transition: stroke-dashoffset 0.8s ease;
        }

        .anim-check {
            stroke-dasharray: 15;
            stroke-dashoffset: 15;
            transition: stroke-dashoffset 0s 9999s; /* Efecto: Se mantiene dibujado al quitar el cursor */
        }
        .group:hover .anim-check {
            stroke-dashoffset: 0;
            transition: stroke-dashoffset 0.5s ease;
        }

        /* Admin program builder */
        .program-builder {
            scroll-margin-top: 1rem;
        }

        .admin-form-section {
            animation: adminPanelIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
        }

        .admin-form-section:nth-of-type(2) { animation-delay: 0.04s; }
        .admin-form-section:nth-of-type(3) { animation-delay: 0.08s; }
        .admin-form-section:nth-of-type(4) { animation-delay: 0.12s; }
        .admin-form-section:nth-of-type(5) { animation-delay: 0.16s; }

        .admin-preview-panel {
            animation: adminPanelInRight 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
        }

        .program-duplicate-alert {
            display: flex;
            align-items: flex-start;
            gap: 0.9rem;
            padding: 1rem;
            border: 1px solid #fecaca;
            border-radius: 1rem;
            background: linear-gradient(135deg, #fff7f7, #fff);
            box-shadow: 0 14px 34px rgba(127, 29, 29, 0.08);
            animation: modalErrorIn 0.24s ease both;
        }

        .program-duplicate-alert-icon {
            width: 2.75rem;
            height: 2.75rem;
            flex: 0 0 2.75rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 1rem;
            background: #fef2f2;
            color: #dc2626;
        }

        .program-duplicate-alert-title {
            font-weight: 900;
            color: #7f1d1d;
        }

        .program-duplicate-alert-message {
            margin-top: 0.25rem;
            color: #b91c1c;
            font-size: 0.9rem;
            font-weight: 700;
            line-height: 1.45;
        }

        .program-duplicate-modal {
            position: fixed;
            inset: 0;
            z-index: 95;
            display: grid;
            place-items: center;
            padding: 1rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.24s ease;
        }

        .program-duplicate-modal.is-open {
            opacity: 1;
            pointer-events: auto;
        }

        .program-duplicate-backdrop {
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 24% 16%, rgba(33, 150, 243, 0.22), transparent 30rem),
                rgba(7, 26, 52, 0.62);
            backdrop-filter: blur(12px);
        }

        .program-duplicate-panel {
            position: relative;
            width: min(34rem, 100%);
            display: grid;
            gap: 1.1rem;
            padding: clamp(1.25rem, 4vw, 2rem);
            border: 1px solid rgba(255, 255, 255, 0.78);
            border-radius: 1.5rem;
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 30px 90px rgba(4, 18, 38, 0.34);
            transform: translateY(22px) scale(0.98);
            transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .program-duplicate-modal.is-open .program-duplicate-panel {
            transform: translateY(0) scale(1);
        }

        .program-duplicate-icon {
            width: 4rem;
            height: 4rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 1.25rem;
            background: linear-gradient(135deg, #1F7A4D, #2F9E62);
            color: #ffffff;
            box-shadow: 0 16px 34px rgba(31, 122, 77, 0.28);
        }

        .program-duplicate-eyebrow {
            font-size: 0.74rem;
            font-weight: 900;
            letter-spacing: 0;
            text-transform: uppercase;
            color: #1F7A4D;
        }

        .program-duplicate-title {
            margin-top: 0.3rem;
            font-size: clamp(1.65rem, 4vw, 2.2rem);
            font-weight: 900;
            color: #0f172a;
            line-height: 1.05;
        }

        .program-duplicate-copy {
            margin-top: 0.65rem;
            color: #64748b;
            line-height: 1.55;
        }

        .program-duplicate-card {
            border: 1px solid #dbeafe;
            border-radius: 1.15rem;
            background: #f8fbff;
            padding: 1rem;
        }

        .program-duplicate-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.75rem;
        }

        .program-duplicate-cancel,
        .program-duplicate-continue {
            min-height: 3rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            border-radius: 0.9rem;
            padding: 0.75rem 1rem;
            font-weight: 900;
            transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
        }

        .program-duplicate-cancel {
            border: 1px solid #cbd5e1;
            color: #334155;
            background: #ffffff;
        }

        .program-duplicate-cancel:hover {
            background: #f8fafc;
        }

        .program-duplicate-continue {
            color: #ffffff;
            background: #1F7A4D;
            box-shadow: 0 14px 28px rgba(31, 122, 77, 0.24);
        }

        .program-duplicate-continue:hover {
            background: #14532D;
            transform: translateY(-1px);
            box-shadow: 0 18px 34px rgba(31, 122, 77, 0.3);
        }

        .municipality-picker {
            overscroll-behavior: contain;
            scrollbar-color: #94a3b8 #eef2f7;
            scrollbar-width: thin;
        }

        .municipality-picker::-webkit-scrollbar {
            width: 10px;
        }

        .municipality-picker::-webkit-scrollbar-track {
            background: #eef2f7;
            border-radius: 999px;
        }

        .municipality-picker::-webkit-scrollbar-thumb {
            background: #94a3b8;
            border: 3px solid #eef2f7;
            border-radius: 999px;
        }

        .admin-program-actions {
            position: sticky;
            bottom: 0.75rem;
            z-index: 20;
            padding: 0.75rem;
            border: 1px solid rgba(226, 232, 240, 0.9);
            border-radius: 0.85rem;
            background: rgba(255, 255, 255, 0.94);
            box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
            backdrop-filter: blur(12px);
        }

        @keyframes adminPanelIn {
            from { opacity: 0; transform: translateY(18px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes adminPanelInRight {
            from { opacity: 0; transform: translateY(22px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (min-width: 768px) {
            .admin-program-actions {
                position: static;
                padding: 0;
                border: 0;
                border-radius: 0;
                background: transparent;
                box-shadow: none;
                backdrop-filter: none;
            }
        }

        @media (max-width: 640px) {
            .login-modal {
                align-items: end;
                padding: 0.75rem;
            }

            .login-modal-panel {
                width: 100%;
                border-radius: 1.35rem;
            }

            .login-modal-heading {
                padding-right: 2.4rem;
            }

            .login-modal-actions {
                align-items: stretch;
                flex-direction: column;
            }

            .login-modal-submit {
                width: 100%;
            }

            .choice-modal {
                align-items: end;
                padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
            }

            .choice-modal-panel {
                width: 100%;
                max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
                border-radius: 1.25rem;
                padding: 1rem;
            }

            .choice-modal-header {
                gap: 0.75rem;
            }

            .choice-modal-title {
                font-size: 1.45rem;
            }

            .choice-modal-copy {
                font-size: 0.95rem;
            }

            .choice-modal-close {
                width: 3.15rem;
                height: 3.15rem;
                border-width: 2px;
            }

            .choice-search-wrap {
                gap: 0.6rem;
                padding: 0.65rem 0.7rem;
            }

            .choice-search-clear {
                width: 2.75rem;
                height: 2.75rem;
            }

            .choice-option-grid,
            .choice-option-grid-audience,
            .choice-option-grid-compact {
                grid-template-columns: 1fr;
                max-height: min(58vh, 28rem);
            }

            #view-form .profile-choice-trigger,
            #view-form .profile-number-control {
                height: 6.5rem;
                min-height: 6.5rem;
                gap: 0.65rem;
                padding: 0.8rem;
            }

            #view-form .profile-choice-trigger {
                grid-template-columns: 2.4rem minmax(0, 1fr) 1.1rem;
            }

            #view-form .profile-number-control {
                grid-template-columns: 2.4rem minmax(0, 1fr);
            }

            #view-form .choice-trigger-icon {
                width: 2.4rem;
                height: 2.4rem;
            }

            #view-form .choice-trigger-kicker {
                font-size: 0.65rem;
            }

            #view-form .choice-trigger-value,
            #view-form .profile-number-input {
                font-size: 0.95rem;
            }

            .program-builder input,
            .program-builder select,
            .program-builder textarea {
                font-size: 16px;
            }

            .program-builder .requirement-row {
                align-items: stretch;
            }

            .program-duplicate-modal {
                align-items: end;
                padding: 0.75rem;
            }

            .program-duplicate-panel {
                width: 100%;
                max-height: calc(100vh - 1.5rem);
                overflow-y: auto;
                border-radius: 1.25rem;
            }

            .program-duplicate-actions {
                flex-direction: column-reverse;
            }

            .program-duplicate-cancel,
            .program-duplicate-continue {
                width: 100%;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .prog-node-current,
            .prog-node-current::after,
            .admin-form-section,
            .admin-preview-panel {
                animation: none;
            }

            .choice-modal,
            .choice-modal-panel,
            .choice-option-card,
            .profile-choice-trigger,
            .login-modal,
            .login-modal-panel,
            .program-duplicate-modal,
            .program-duplicate-panel,
            .password-visibility-toggle {
                transition: none;
            }
        }
