    :root {
        --primary: #2d9987;
        /* verde */
        --secondary: #0f2276;
        /* azul */
        --accent: #eab308;
        /* amarillo */
        --bg: #f6f7fb;
        --text: #0f172a;
        --muted: #475569;
        --white: #fff;
        --shadow: 0 10px 24px rgba(2, 6, 23, .08), 0 2px 8px rgba(2, 6, 23, .06);
        --radius: 16px;
        --radius-sm: 12px;
        --radius-lg: 28px;
    }

    * {
        box-sizing: border-box
    }

    html,
    body {
        margin: 0;
        padding: 0;
        color: var(--text);
        font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
        background: var(--bg)
    }

    a {
        color: inherit;
        text-decoration: none
    }

    img {
        max-width: 100%;
        display: block
    }

    .container {
        width: min(1200px, 92%);
        margin-inline: auto
    }

    .btn {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        padding: .85rem 1.1rem;
        border-radius: 999px;
        font-weight: 600;
        border: 1px solid transparent;
        cursor: pointer;
        transition: .2s ease;
        background: var(--primary);
        color: var(--white);
        box-shadow: var(--shadow)
    }

    .btn:hover {
        transform: translateY(-1px);
        opacity: .95
    }

    .btn.outline {
        background: transparent;
        color: var(--primary);
        border-color: color-mix(in oklab, var(--primary), #000 8%)
    }

    .chip {
        display: inline-block;
        background: color-mix(in oklab, var(--secondary), #fff 85%);
        color: var(--secondary);
        padding: .35rem .7rem;
        border: 0;
        border-radius: 999px;
        cursor: pointer;
        font-family: inherit;
        font-size: .8rem;
        font-weight: 600
    }

    /* Topbar */
    .topbar {
        background: var(--primary);
        color: #e2e8f0;
        font-size: .9rem
    }

    .topbar .wrap {
        display: flex;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
        padding: .5rem 0
    }

    .topbar .left,
    .topbar .right {
        display: flex;
        gap: 1rem;
        align-items: center;
        flex-wrap: wrap
    }

    .topbar .icon {
        opacity: .85
    }

    /* Header/Nav */
    header {
        background: var(--white);
        position: sticky;
        top: 0;
        z-index: 50;
        box-shadow: 0 1px 0 rgba(2, 6, 23, .06)
    }

    .nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .9rem 0
    }

    .brand {
        display: flex;
        align-items: center;
        gap: .75rem
    }

    .newsletter-input {
        width: 100%;
        padding: .7rem .9rem;
        border-radius: 12px;
        border: 1px solid #334155;
        background: #0f172a;
        color: #e2e8f0;
        margin-bottom: .6rem;
    }

    .brand h1 {
        font-size: 1.1rem;
        line-height: 1.1rem;
        margin: 0
    }

    .brand small {
        display: block;
        color: var(--muted);
        font-weight: 600;
        letter-spacing: .02em
    }

    .nav-links {
        display: flex;
        gap: .5rem;
        align-items: center
    }

    .nav-links a {
        padding: .6rem .8rem;
        border-radius: 10px;
        font-weight: 600;
        color: #0b1220
    }

    .nav-links a:hover {
        background: #eef2ff
    }

    .search {
        display: flex;
        align-items: center;
        gap: .5rem;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        padding: .45rem .8rem
    }

    .search input {
        border: none;
        background: transparent;
        outline: none;
        min-width: 180px
    }

    .hamburger {
        display: none;
        border: 0;
        background: #f1f5f9;
        border-radius: 12px;
        padding: .5rem
    }

    @media (max-width: 980px) {

        .nav-links,
        .search {
            display: none
        }

        .hamburger {
            display: inline-flex
        }

        .mobile {
            display: block
        }
    }

    /* Mobile drawer */
    .mobile {
        display: none;
        background: var(--white);
        border-top: 1px solid #e2e8f0
    }

    .mobile a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eef2f7;
        font-weight: 600
    }

    .mobile .search {
        margin: 1rem
    }

    /* Hero */
    .hero {
        position: relative;
        isolation: isolate
    }

    .hero .media {
        position: relative;
        height: 58vh;
        min-height: 420px;
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow)
    }

    .hero .media::after {
        content: 40px;
        ;
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(9, 12, 28, .15), rgba(9, 12, 28, .65) 70%)
    }

    .hero img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

    .hero .overlay {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: end start;
        padding: 2.2rem;
        color: #fff
    }

    .hero h2 {
        font-size: clamp(1.6rem, 4.2vw, 3rem);
        margin: 0 0 .4rem
    }

    .hero p {
        max-width: 800px;
        font-size: 1.05rem;
        opacity: .95
    }

    .hero .cta {
        display: flex;
        gap: .6rem;
        flex-wrap: wrap;
        margin-top: 1rem
    }

    /* Highlights */
    .highlights {
        margin-top: -48px;
        position: relative;
        z-index: 10
    }

    .kpis {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem
    }

    .kpi {
        background: var(--white);
        border-radius: var(--radius);
        padding: 1rem 1.1rem;
        box-shadow: var(--shadow);
        display: flex;
        gap: .9rem;
        align-items: center
    }

    .kpi b {
        font-size: 1.45rem
    }

    .kpi span {
        color: var(--muted);
        font-weight: 600
    }

    @media (max-width:900px) {
        .kpis {
            grid-template-columns: repeat(2, 1fr)
        }
    }

    @media (max-width:560px) {
        .kpis {
            grid-template-columns: 1fr
        }
    }

    /* Sections */
    section {
        padding: 2.5rem 0
    }

    .section-head {
        display: flex;
        align-items: end;
        justify-content: space-between;
        margin-bottom: 1.2rem;
        gap: 1rem
    }

    .section-head h3 {
        margin: 0;
        font-size: clamp(1.2rem, 2.5vw, 1.6rem)
    }

    .grid {
        display: grid;
        gap: 1rem
    }

    .grid.cards {
        grid-template-columns: repeat(3, 1fr)
    }

    .card {
        background: var(--white);
        border: 1px solid #eef2f7;
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: var(--shadow)
    }

    .card .media {
        aspect-ratio: 16/9;
        overflow: hidden
    }

    .card .media img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

    .card .body {
        padding: 1rem
    }

    .card .body h4 {
        margin: .2rem 0 .6rem;
        font-size: 1.05rem
    }

    .meta {
        display: flex;
        gap: .6rem;
        align-items: center;
        color: var(--muted);
        font-size: .9rem
    }

    .tags {
        display: flex;
        gap: .4rem;
        flex-wrap: wrap;
        margin-top: .6rem
    }

    .tag {
        background: #eef2ff;
        color: #3446a4;
        border: 1px solid #dbe3ff;
        padding: .25rem .55rem;
        border-radius: 999px;
        font-size: .78rem;
        font-weight: 700
    }

    @media (max-width:980px) {
        .grid.cards {
            grid-template-columns: repeat(2, 1fr)
        }
    }

    @media (max-width:640px) {
        .grid.cards {
            grid-template-columns: 1fr
        }
    }

    /* Event list */
    .events {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 1rem
    }

    .timeline {
        background: var(--white);
        border-radius: var(--radius);
        padding: 1rem;
        box-shadow: var(--shadow)
    }

    .item {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: .9rem;
        padding: 1rem 0;
        border-bottom: 1px dashed #e5e7eb
    }

    .item:last-child {
        border-bottom: 0
    }

    .date {
        display: grid;
        place-items: center;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: .6rem .8rem;
        font-weight: 800;
        min-width: 74px
    }

    .aside {
        background: var(--white);
        border-radius: var(--radius);
        padding: 1rem;
        box-shadow: var(--shadow)
    }

    @media (max-width:980px) {
        .events {
            grid-template-columns: 1fr
        }
    }

    /* CTA */
    .cta-banner {
        background: linear-gradient(135deg, color-mix(in oklab, var(--primary), #000 8%), color-mix(in oklab, var(--secondary), #000 6%));
        border-radius: var(--radius-lg);
        color: #fff;
        overflow: hidden;
        position: relative
    }

    .cta-banner .wrap {
        display: grid;
        grid-template-columns: 1.6fr 1fr;
        gap: 1.2rem;
        align-items: center;
        padding: 2rem
    }

    .cta-banner .illus {
        aspect-ratio: 4/3;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: var(--shadow)
    }

    @media (max-width:900px) {
        .cta-banner .wrap {
            grid-template-columns: 1fr
        }
    }

    /* Footer */
    footer {
        margin-top: 2.8rem;
        background: #0b1220;
        color: #cbd5e1
    }

    .foot {
        padding: 2rem 0;
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 1rem
    }

    .foot h5 {
        margin: .2rem 0 .8rem;
        color: #e2e8f0
    }

    .foot a {
        display: block;
        color: #cbd5e1;
        padding: .25rem 0
    }

    .foot a:hover {
        color: #fff
    }

    .copyright {
        border-top: 1px solid rgba(255, 255, 255, .08);
        padding: 1rem 0;
        font-size: .9rem;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap
    }

    /* Sugerencias opcionales dentro de la conversación */
    .chat-suggestions {
        margin: .25rem 0 .5rem;
        font-size: .78rem;
        color: #64748b;
    }

    .chat-suggestions summary {
        width: fit-content;
        padding: .35rem .2rem;
        cursor: pointer;
    }

    .chat-suggestions summary:hover {
        color: #334155;
    }

    .chat-suggestions summary:focus-visible,
    .qa-btn:focus-visible {
        outline: 2px solid var(--secondary);
        outline-offset: 2px;
    }

    .quick-actions {
        display: flex;
        gap: .35rem;
        flex-wrap: wrap;
        margin-top: .25rem;
    }

    .qa-btn {
        background: transparent;
        border: 1px solid #e2e8f0;
        border-radius: .5rem;
        padding: .35rem .55rem;
        max-width: 100%;
        text-align: left;
        overflow-wrap: anywhere;
        color: #475569;
        font: inherit;
        cursor: pointer;
        font-weight: 400;
    }

    .qa-btn:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }

    /* Botón flotante */
    .chat-float {
        position: fixed;
        bottom: 28px;
        right: 28px;
        display: grid;
        place-items: center;
        isolation: isolate;
        background:
            radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .9) 0 8%, transparent 24%),
            linear-gradient(145deg, color-mix(in oklab, var(--primary), #fff 12%), color-mix(in oklab, var(--secondary), var(--primary) 50%));
        color: #fff;
        border: 2px solid rgba(255, 255, 255, .88);
        border-radius: 100%;
        width: 86px;
        height: 86px;
        object-fit: contain;
        font-size: 1.6rem;
        box-shadow:
            0 18px 34px rgba(15, 34, 118, .18),
            0 8px 18px rgba(45, 153, 135, .22),
            inset 0 -10px 20px rgba(15, 34, 118, .16);
        cursor: pointer;
        transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
        z-index: 1000;
        animation: chat-hello 5.5s ease-in-out 1s infinite;
    }

    .chat-float::before {
        content: "";
        position: absolute;
        inset: -7px;
        border-radius: inherit;
        background: linear-gradient(145deg, rgba(45, 153, 135, .26), rgba(234, 179, 8, .18));
        opacity: .7;
        z-index: -1;
        transition: opacity .2s ease, transform .2s ease;
    }

    .chat-float::after {
        content: "";
        position: absolute;
        right: 12px;
        bottom: 12px;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: #22c55e;
        border: 2px solid #fff;
        box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
    }

    .chat-float img {
        position: absolute;
        right: 1px;
        bottom: 3px;
        width: 74px;
        height: 104px;
        max-width: none;
        filter: drop-shadow(0 10px 12px rgba(2, 6, 23, .18));
        transform-origin: 55% 88%;
        animation: colli-wave 5.5s ease-in-out 1s infinite;
        pointer-events: none;
    }

    .chat-greeting {
        position: absolute;
        right: 62px;
        bottom: 68px;
        padding: .34rem .62rem;
        border-radius: 999px;
        color: var(--secondary);
        font-size: .76rem;
        font-weight: 800;
        line-height: 1;
        background: rgba(255, 255, 255, .96);
        border: 1px solid rgba(15, 34, 118, .08);
        box-shadow: 0 10px 22px rgba(2, 6, 23, .14);
        opacity: 0;
        transform: translateY(6px) scale(.92);
        animation: chat-greeting-pop 5.5s ease-in-out 1s infinite;
        pointer-events: none;
    }

    .chat-float:hover {
        filter: saturate(1.06);
        transform: translateY(-4px) scale(1.03);
        box-shadow:
            0 22px 42px rgba(15, 34, 118, .22),
            0 10px 22px rgba(45, 153, 135, .26),
            inset 0 -10px 20px rgba(15, 34, 118, .16);
        animation-play-state: paused;
    }

    .chat-float:hover::before {
        opacity: 1;
        transform: scale(1.04);
    }

    .chat-float:focus-visible {
        outline: 3px solid color-mix(in oklab, var(--accent), #fff 18%);
        outline-offset: 5px;
    }

    .chat-float:hover img,
    .chat-float:hover .chat-greeting {
        animation-play-state: paused;
    }

    @keyframes chat-hello {
        0%, 72%, 100% { transform: translateY(0); }
        8% { transform: translateY(-4px); }
        15% { transform: translateY(0); }
    }

    @keyframes colli-wave {
        0%, 72%, 100% { transform: rotate(0deg); }
        8% { transform: rotate(-8deg); }
        14% { transform: rotate(7deg); }
        20% { transform: rotate(-5deg); }
        26% { transform: rotate(3deg); }
        32% { transform: rotate(0deg); }
    }

    @keyframes chat-greeting-pop {
        0%, 45%, 100% {
            opacity: 0;
            transform: translateY(6px) scale(.92);
        }

        8%, 30% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .chat-float,
        .chat-float img,
        .chat-greeting {
            animation: none;
        }

        .chat-greeting {
            opacity: 1;
            transform: none;
        }
    }

    @media (max-width: 560px) {
        .chat-float {
            right: 18px;
            bottom: 18px;
            width: 74px;
            height: 74px;
        }

        .chat-float::before {
            inset: -5px;
        }

        .chat-float::after {
            right: 9px;
            bottom: 9px;
            width: 11px;
            height: 11px;
        }

        .chat-float img {
            right: -1px;
            bottom: 2px;
            width: 64px;
            height: 92px;
        }

        .chat-greeting {
            right: 52px;
            bottom: 58px;
            font-size: .7rem;
        }
    }

    /* Ventana de chat */
    .chat-box {
        position: fixed;
        bottom: 150px;
        right: 24px;
        width: 320px;
        background: var(--white);
        box-shadow: var(--shadow);
        border-radius: var(--radius);
        overflow: hidden;
        display: none;
        flex-direction: column;
        z-index: 1001;
    }

    .chat-header {
        background: var(--primary);
        color: #fff;
        padding: .8rem 1rem;
        font-weight: 600;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .chat-body {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: .5rem;
        max-height: 420px;
        overflow-y: auto;
    }

    .chat-body.chat-active {
        height: 420px;
        overflow: hidden;
    }

    .chat-body label {
        font-weight: 600;
        font-size: .9rem;
    }

    .chat-body input {
        padding: .6rem .8rem;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        width: 100%;
    }

    .close-btn {
        background: transparent;
        color: #fff;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
    }

    /* Conversación simulada */
    .chat-messages {
        display: flex;
        flex-direction: column;
        gap: .6rem;
    }

    .chat-body.chat-active .chat-messages {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding-right: .15rem;
    }

    .message {
        padding: .6rem .8rem;
        border-radius: 12px;
        max-width: 85%;
        word-wrap: break-word;
        font-size: .92rem;
    }

    .bot {
        background: #f1f5f9;
        align-self: flex-start;
    }

    .user {
        background: var(--primary);
        color: #fff;
        align-self: flex-end;
    }

    .chat-input {
        flex: 0 0 auto;
        display: flex;
        gap: .5rem;
        margin-top: .5rem;
        padding: .75rem 0 0;
        background: var(--white);
        border-top: 1px solid rgba(203, 213, 225, .85);
    }

    .chat-input input {
        flex: 1;
        padding: .6rem .8rem;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
    }

    .chat-input button {
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: .6rem .9rem;
        cursor: pointer;
    }

    .privacy-check {
        display: flex !important;
        gap: .5rem;
        align-items: flex-start;
        margin-top: .75rem;
        color: #475569;
        font-size: .75rem !important;
        font-weight: 500 !important;
        line-height: 1.4;
    }

    .privacy-check input {
        width: auto;
        margin-top: .15rem;
    }

    .privacy-check a,
    .chat-sources a {
        color: var(--secondary);
        text-decoration: underline;
    }

    .chat-answer-link {
        display: inline-block;
        color: #ffffff;
        background: #155e75;
        border-radius: .4rem;
        padding: .4rem .65rem;
        margin: .25rem 0;
        text-decoration: underline;
        overflow-wrap: anywhere;
    }

    .chat-answer-link:hover,
    .chat-answer-link:focus-visible {
        background: #164e63;
        outline: 2px solid currentColor;
        outline-offset: 2px;
    }

    .chat-sources {
        display: grid;
        gap: .35rem;
        font-size: .82rem;
    }

    .feedback-actions {
        display: flex;
        gap: .4rem;
        align-items: center;
        color: #64748b;
        font-size: .76rem;
    }

    .feedback-actions button {
        padding: .25rem .55rem;
        border: 1px solid #cbd5e1;
        border-radius: 999px;
        color: var(--secondary);
        cursor: pointer;
        background: #fff;
    }

    .feedback-thanks {
        color: var(--primary);
        font-weight: 600;
    }
