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

:root {
    --color-primario: #0d3c61;
    --color-secundario: #1486cc;
    --color-acento: #1abc9c;
    --color-claro: #eef4fa;
    --color-fondo: #fdfdfd;
    --color-texto: #333333;
    --color-texto-suave: #6b6b6b;
    --color-topbar: #072339;
    --blanco: #ffffff;
    --radio: 8px;
    --sombra: 0 18px 44px rgba(13, 60, 97, 0.13);
    --sombra-fuerte: 0 26px 70px rgba(7, 35, 57, 0.22);
    --ancho-maximo: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.topbar {
    background: var(--color-topbar);
    color: var(--blanco);
    font-size: 0.84rem;
}

.topbar-container {
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    padding: 0.38rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.topbar-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    opacity: 0.92;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-acento);
    box-shadow: 0 0 0 5px rgba(26, 188, 156, 0.15);
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(13, 60, 97, 0.12);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    padding: 0.8rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-primario);
    text-decoration: none;
    min-width: 0;
}

.brand img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--blanco);
    box-shadow: 0 8px 22px rgba(13, 60, 97, 0.16);
}

.brand strong {
    display: block;
    max-width: 420px;
    font-size: clamp(0.98rem, 1.7vw, 1.25rem);
    line-height: 1.15;
}

.brand small {
    display: block;
    color: var(--color-secundario);
    font-weight: 800;
    margin-top: 0.15rem;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.nav {
    position: relative;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(13, 60, 97, 0.16);
    border-radius: var(--radio);
    background: var(--blanco);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--color-primario);
    transition: 0.28s ease;
}

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

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

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

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: var(--color-primario);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blanco);
    background: var(--color-secundario);
    transform: translateY(-2px);
}

.hero-eventos {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(26, 188, 156, 0.16), transparent 30%),
        radial-gradient(circle at 84% 16%, rgba(20, 134, 204, 0.18), transparent 34%),
        linear-gradient(180deg, #f8fbfd 0%, var(--color-claro) 100%);
}

.hero-eventos::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -74px;
    height: 150px;
    opacity: 0.34;
    background:
        radial-gradient(70px 42px at 70px 42px, transparent 62%, rgba(20, 134, 204, 0.11) 64% 70%, transparent 72%);
    background-size: 140px 90px;
    animation: waveMove 18s linear infinite;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5.2rem) 1.4rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.4rem);
}

.hero-copy {
    max-width: 660px;
}

.eyebrow,
.section-heading p {
    color: var(--color-secundario);
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.hero-copy h1 {
    color: var(--color-primario);
    font-size: clamp(2.15rem, 4.8vw, 4.25rem);
    line-height: 1.03;
    text-wrap: balance;
}

.hero-copy p:not(.eyebrow) {
    max-width: 590px;
    margin-top: 1.15rem;
    color: var(--color-texto-suave);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.78rem 1.35rem;
    border-radius: 999px;
    border: 2px solid transparent;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.88rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: var(--blanco);
    background: linear-gradient(135deg, var(--color-secundario), var(--color-primario));
    box-shadow: 0 14px 28px rgba(20, 134, 204, 0.22);
}

.btn-light {
    color: var(--color-primario);
    background: var(--blanco);
    border-color: rgba(20, 134, 204, 0.32);
}

.hero-photo {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--sombra-fuerte);
    min-height: 430px;
    background: #0b273b;
}

.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(7, 35, 57, 0.86));
}

.hero-photo img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.photo-note {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 2;
    color: var(--blanco);
}

.photo-note strong {
    display: block;
    font-size: 1.45rem;
}

.photo-note span {
    display: block;
    max-width: 420px;
    opacity: 0.92;
}

.evento-destacado,
.agenda,
.cta-eventos {
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
}

.evento-destacado {
    padding-top: clamp(3.2rem, 7vw, 5rem);
}

.evento-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
    gap: clamp(1.6rem, 4vw, 3.2rem);
    align-items: center;
}

.evento-media {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--sombra-fuerte);
}

.evento-media img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.evento-info {
    background: var(--blanco);
    border: 1px solid rgba(13, 60, 97, 0.09);
    border-radius: var(--radio);
    padding: clamp(1.35rem, 3vw, 2rem);
    box-shadow: 0 14px 34px rgba(13, 60, 97, 0.08);
}

.evento-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: var(--color-texto-suave);
    font-size: 0.86rem;
    margin-bottom: 0.85rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    color: #0f7c5c;
    background: #e6f7f2;
    border: 1px solid #b7e8d7;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.evento-info h2,
.section-heading h2,
.cta-eventos h2 {
    color: var(--color-primario);
    line-height: 1.12;
    text-wrap: balance;
}

.evento-info h2 {
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    margin-bottom: 0.8rem;
}

.evento-info p,
.evento-puntos span,
.agenda-card p,
.cta-eventos p {
    color: var(--color-texto-suave);
}

.evento-puntos {
    margin-top: 1.1rem;
    display: grid;
    gap: 0.75rem;
}

.evento-puntos div {
    padding: 0.9rem;
    border-left: 3px solid var(--color-acento);
    border-radius: var(--radio);
    background: var(--color-claro);
}

.evento-puntos strong {
    display: block;
    color: var(--color-primario);
    margin-bottom: 0.15rem;
}

blockquote {
    margin-top: 1.2rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radio);
    color: var(--color-primario);
    background: linear-gradient(135deg, rgba(20, 134, 204, 0.08), rgba(26, 188, 156, 0.1));
    font-weight: 700;
}

.agenda {
    padding-top: clamp(3.2rem, 7vw, 5rem);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.section-heading h2,
.cta-eventos h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.agenda-card {
    min-height: 230px;
    padding: 1.35rem;
    background: var(--blanco);
    border: 1px solid rgba(13, 60, 97, 0.09);
    border-radius: var(--radio);
    box-shadow: 0 14px 34px rgba(13, 60, 97, 0.08);
    transition: transform 0.38s ease, box-shadow 0.38s ease, border-color 0.38s ease;
}

.agenda-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 52px rgba(13, 60, 97, 0.14);
    border-color: rgba(20, 134, 204, 0.22);
}

.agenda-icon {
    width: 42px;
    height: 42px;
    display: inline-block;
    border-radius: var(--radio);
    background: rgba(20, 134, 204, 0.1);
    position: relative;
    margin-bottom: 0.95rem;
}

.agenda-icon::before,
.agenda-icon::after {
    content: "";
    position: absolute;
    background: var(--color-secundario);
}

.reunion::before {
    width: 24px;
    height: 18px;
    left: 9px;
    top: 12px;
    border-radius: 4px;
}

.reunion::after {
    width: 18px;
    height: 3px;
    left: 12px;
    top: 18px;
    background: var(--blanco);
    box-shadow: 0 6px 0 var(--blanco);
}

.capacitacion::before {
    width: 22px;
    height: 5px;
    left: 10px;
    top: 19px;
    border-radius: 999px;
    transform: rotate(-35deg);
}

.capacitacion::after {
    width: 10px;
    height: 10px;
    left: 22px;
    top: 11px;
    border-radius: 50%;
    background: transparent;
    border: 4px solid var(--color-secundario);
}

.comunidad::before {
    width: 11px;
    height: 11px;
    left: 15px;
    top: 9px;
    border-radius: 50%;
    box-shadow: -11px 10px 0 -1px var(--color-secundario), 11px 10px 0 -1px var(--color-secundario);
}

.comunidad::after {
    width: 30px;
    height: 10px;
    left: 6px;
    bottom: 8px;
    border-radius: 999px 999px 3px 3px;
}

.agenda-card h3 {
    color: var(--color-primario);
    font-size: 1.16rem;
    margin-bottom: 0.45rem;
}

.cta-eventos {
    margin-top: clamp(3.2rem, 7vw, 5rem);
    margin-bottom: clamp(3.2rem, 7vw, 5rem);
    padding-top: clamp(1.7rem, 4vw, 2.5rem);
    padding-bottom: clamp(1.7rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border: 1px solid rgba(13, 60, 97, 0.09);
    border-radius: var(--radio);
    background:
        radial-gradient(circle at 14% 20%, rgba(26, 188, 156, 0.14), transparent 34%),
        linear-gradient(135deg, var(--blanco), var(--color-claro));
    box-shadow: var(--sombra);
}

.cta-eventos p:not(.eyebrow) {
    max-width: 680px;
    margin-top: 0.7rem;
}

footer {
    background: var(--color-primario);
    color: var(--blanco);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.footer-content {
    max-width: var(--ancho-maximo);
    margin: 0 auto;
}

.footer-titulo {
    font-weight: 700;
    margin-bottom: 0.55rem;
}

footer .social-icons {
    margin: 0.45rem 0 0.9rem;
}

footer .social-icons a {
    width: 42px;
    height: 42px;
    margin: 0 0.25rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.28s ease, background 0.28s ease;
}

footer .social-icons a:hover {
    transform: translateY(-3px) scale(1.04);
    background: rgba(255, 255, 255, 0.18);
}

footer .icon {
    width: 28px;
    height: 28px;
}

footer .credit {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    font-style: italic;
}

footer .credit a img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: 0.4rem;
    display: inline-block;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(8px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.delay-one {
    transition-delay: 0.12s;
}

.delay-two {
    transition-delay: 0.22s;
}

@keyframes waveMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(140px);
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (max-width: 1020px) {
    .nav-toggle {
        display: block;
    }

    .nav-list {
        position: absolute;
        top: calc(100% + 0.7rem);
        right: 0;
        width: min(280px, calc(100vw - 2rem));
        display: grid;
        gap: 0.35rem;
        padding: 0.7rem;
        background: var(--blanco);
        border: 1px solid rgba(13, 60, 97, 0.12);
        border-radius: 14px;
        box-shadow: var(--sombra);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: 0.28s ease;
    }

    .nav-list.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        display: flex;
    }

    .hero-inner,
    .evento-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 760px;
        text-align: center;
        margin: 0 auto;
    }

    .hero-copy p:not(.eyebrow) {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-photo {
        order: -1;
        max-width: 680px;
        width: 100%;
        margin: 0 auto;
    }

    .evento-media {
        max-width: 720px;
        width: 100%;
        margin: 0 auto;
    }

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

    .cta-eventos {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .topbar-container {
        justify-content: center;
        text-align: center;
    }

    .header-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem;
    }

    .brand {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }

    .brand img {
        width: 58px;
        height: 58px;
    }

    .nav {
        display: flex;
        justify-content: center;
    }

    .nav-toggle {
        display: none;
    }

    .nav-list {
        position: static;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        padding: 0;
        border: 0;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        background: transparent;
    }

    .nav-link {
        min-height: 34px;
        padding: 0.38rem 0.58rem;
        font-size: 0.76rem;
    }

    .hero-inner {
        padding: 2.2rem 1rem 3.1rem;
    }

    .agenda-grid {
        grid-template-columns: 1fr;
    }

    .hero-photo,
    .hero-photo img,
    .evento-media img {
        min-height: 0;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-copy h1 {
        font-size: 2rem;
    }

    .hero-copy p:not(.eyebrow) {
        font-size: 0.98rem;
    }

    .hero-photo,
    .hero-photo img,
    .evento-media img {
        height: 235px;
    }

    .photo-note strong {
        font-size: 1.15rem;
    }

    .btn {
        width: 100%;
    }
}