@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650;9..144,750&family=Public+Sans:wght@400;500;600;700;800&display=swap");

:root {
    --ink: #102133;
    --ink-soft: #33465c;
    --muted: #66758a;
    --line: #d9e0e7;
    --paper: #f7f3eb;
    --paper-strong: #fffaf2;
    --white: #ffffff;
    --navy: #062b49;
    --blue: #0f5f91;
    --sky: #d8edf7;
    --gold: #c99a42;
    --green: #486b5a;
    --red: #b7443e;
    --shadow: 0 26px 70px rgba(16, 33, 51, 0.14);
    --radius: 8px;
    --display: "Fraunces", Georgia, serif;
    --body: "Public Sans", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.54) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.54) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.34;
}

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

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

p {
    margin: 0;
    color: var(--ink-soft);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--ink);
    line-height: 1.08;
}

h1,
h2 {
    font-family: var(--display);
    font-weight: 650;
}

h1 {
    font-size: 5.8rem;
    letter-spacing: 0;
}

h2 { font-size: 4rem; }

h3 {
    font-size: 1.7rem;
    font-weight: 800;
}

h4 {
    font-size: 1rem;
    font-weight: 800;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--navy);
}

.skip-link:focus { top: 16px; }

.topline {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
}

.topline .container {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topline a { color: var(--white); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 243, 235, 0.9);
    border-bottom: 1px solid rgba(16, 33, 51, 0.12);
    backdrop-filter: blur(18px);
}

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

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

.brand-logo {
    width: 160px;
    height: 82px;
    object-fit: contain;
    object-position: left center;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.main-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
    color: var(--navy);
    background: rgba(15, 95, 145, 0.09);
    outline: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    font-size: 1.4rem;
}

.button,
.button-secondary,
.button-quiet {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
    background: var(--gold);
    color: #1d1609;
    box-shadow: 0 14px 34px rgba(201, 154, 66, 0.28);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: var(--white);
}

.button-quiet {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--navy);
}

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

.hero {
    position: relative;
    min-height: clamp(640px, 78svh, 790px);
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--navy);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 43, 73, 0.94) 0%, rgba(6, 43, 73, 0.77) 38%, rgba(6, 43, 73, 0.18) 74%),
        linear-gradient(0deg, rgba(6, 43, 73, 0.78), transparent 48%),
        url("imagen_hero_cua.png") center / cover;
}

.hero .container {
    position: relative;
    z-index: 1;
    padding: 62px 0 42px;
}

.hero-kicker,
.eyebrow {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    width: max-content;
    max-width: min(100%, 1120px);
    margin-top: 18px;
    color: var(--white);
    font-size: clamp(3.85rem, 4.45vw, 4.9rem);
    white-space: nowrap;
}

.hero-title-flow {
    animation: title-flow-in 820ms cubic-bezier(0.2, 0.78, 0.18, 1) 140ms both;
    transform-origin: left center;
    will-change: clip-path, opacity, transform, filter;
}

@keyframes title-flow-in {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        filter: blur(4px);
        transform: translateY(12px);
    }

    58% {
        opacity: 1;
        filter: blur(1px);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        filter: blur(0);
        transform: translateY(0);
    }
}

.hero-lead {
    max-width: 720px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.28rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: min(760px, 100%);
    margin-top: 38px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: rgba(255, 255, 255, 0.13);
}

.metric {
    padding: 18px;
    background: rgba(6, 43, 73, 0.4);
}

.metric strong {
    display: block;
    color: var(--white);
    font-size: 1.02rem;
}

.metric span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
}

.section { padding: clamp(64px, 9vw, 118px) 0; }
.hero + .section { padding-top: 52px; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.65fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 40px;
}

.section-head p { font-size: 1.08rem; }

.section-navy h2,
.section-navy h3,
.section-navy .section-head p,
.section-navy p { color: var(--white); }

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.55fr);
    gap: 54px;
    align-items: start;
}

.prose {
    display: grid;
    gap: 20px;
}

.prose p { font-size: 1.06rem; }

.statement {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.statement h3 { margin-bottom: 14px; }

.bridge-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 46px;
    border: 1px solid rgba(16, 33, 51, 0.12);
}

.bridge-item {
    min-height: 150px;
    padding: 24px;
    background: var(--white);
    border-right: 1px solid rgba(16, 33, 51, 0.12);
}

.bridge-item:last-child { border-right: 0; }

.bridge-item span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-weight: 800;
}

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

.card {
    position: relative;
    min-height: 240px;
    padding: 26px;
    background: var(--white);
    border: 1px solid rgba(16, 33, 51, 0.13);
    border-radius: var(--radius);
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--blue), var(--gold), var(--green));
}

.card h3,
.card h4 { margin-bottom: 14px; }
.card p { font-size: 0.98rem; }

.card-link {
    display: inline-flex;
    margin-top: 22px;
    color: var(--blue);
    font-weight: 800;
}

.leader-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.leader-grid-single {
    grid-template-columns: minmax(280px, 560px);
}

.leader-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
}

.leader-avatar {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--gold);
    color: #1d1609;
    font-weight: 900;
}

.leader-photo {
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--gold);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.leader-card strong {
    display: block;
    color: var(--white);
    font-size: 1.1rem;
}

.leader-card span { color: rgba(255, 255, 255, 0.68); }

.partner-marquee {
    position: relative;
    display: flex;
    gap: 16px;
    width: 100%;
    overflow: hidden;
    padding: 18px 0;
    background: linear-gradient(90deg, var(--paper), var(--white), var(--paper));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.partner-marquee::before,
.partner-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: min(12vw, 150px);
    pointer-events: none;
}

.partner-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--white), rgba(255, 255, 255, 0));
}

.partner-marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--white), rgba(255, 255, 255, 0));
}

.partner-track {
    display: flex;
    flex: 0 0 auto;
    gap: 16px;
    min-width: max-content;
    animation: partner-scroll 58s linear infinite;
}

.partner-marquee:hover .partner-track {
    animation-play-state: paused;
}

.partner-logo {
    width: 210px;
    height: 108px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 18px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(16, 33, 51, 0.07);
}

.partner-logo img {
    max-width: 100%;
    max-height: 66px;
    object-fit: contain;
    opacity: 0.95;
}

.partner-logo:hover img {
    opacity: 1;
}

@keyframes partner-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 16px)); }
}

.member-panel,
.contact-panel,
.newsletter-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.55fr);
    gap: 32px;
    padding: clamp(28px, 5vw, 54px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.steps {
    display: grid;
    gap: 14px;
    counter-reset: steps;
}

.step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
}

.step::before {
    counter-increment: steps;
    content: counter(steps);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-weight: 800;
}

.contact-list {
    display: grid;
    gap: 18px;
}

.contact-list a {
    color: var(--blue);
    font-weight: 800;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 7px;
}

.field label {
    font-size: 0.88rem;
    font-weight: 800;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    color: var(--ink);
    font: inherit;
    padding: 13px 14px;
}

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

.field input:focus,
.field textarea:focus {
    outline: 3px solid rgba(201, 154, 66, 0.25);
    border-color: var(--gold);
}

.page-hero {
    padding: clamp(70px, 10vw, 126px) 0 54px;
    background:
        linear-gradient(120deg, rgba(6, 43, 73, 0.98), rgba(15, 95, 145, 0.82)),
        radial-gradient(circle at 88% 20%, rgba(201, 154, 66, 0.4), transparent 28%);
}

.page-hero h1,
.page-hero p { color: var(--white); }
.page-hero h1 { max-width: 900px; }

.page-hero p {
    max-width: 720px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.18rem;
}

.market-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.42fr);
    gap: 34px;
    align-items: start;
}

.fact-box {
    padding: 26px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
}

.fact-box h3,
.fact-box p { color: var(--white); }

.fact-list,
.plain-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.fact-list li,
.plain-list li {
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.plain-list li {
    border-bottom-color: var(--line);
    color: var(--ink-soft);
}

.gallery-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.visual-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.visual-thumb {
    min-height: 210px;
    background:
        linear-gradient(135deg, rgba(6, 43, 73, 0.88), rgba(15, 95, 145, 0.62)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 18px);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--display);
    font-size: 3.2rem;
}

.visual-card-body { padding: 22px; }

.tag {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 95, 145, 0.1);
    color: var(--blue);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer {
    padding: 54px 0 28px;
    background: #071d31;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(180px, 0.42fr));
    gap: 34px;
}

.site-footer p,
.site-footer a { color: rgba(255, 255, 255, 0.72); }

.site-footer h4 {
    margin-bottom: 14px;
    color: var(--white);
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.developer-credit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.62);
}

.developer-credit span {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.developer-credit img {
    width: 92px;
    height: 30px;
    object-fit: contain;
    opacity: 0.82;
    transition: opacity 180ms ease, transform 180ms ease;
}

.developer-credit:hover img {
    opacity: 1;
    transform: translateY(-1px);
}

@media (max-width: 980px) {
    h1 { font-size: 4.5rem; }
    h2 { font-size: 3.1rem; }
    h3 { font-size: 1.45rem; }

    .hero h1 {
        width: auto;
        font-size: clamp(3.15rem, 7vw, 4.25rem);
        white-space: normal;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 14px 20px 20px;
        background: rgba(247, 243, 235, 0.98);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 34px rgba(16, 33, 51, 0.12);
    }

    .main-nav.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .main-nav a {
        justify-content: center;
        background: var(--white);
        border: 1px solid var(--line);
    }

    .topline .container {
        justify-content: center;
        text-align: center;
    }

    .topline span:last-child { display: none; }

    .section-head,
    .intro-grid,
    .member-panel,
    .contact-panel,
    .newsletter-panel,
    .market-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .bridge-strip,
    .cards-grid,
    .gallery-grid,
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.28rem; }

    .container { width: min(100% - 28px, 1180px); }
    .header-inner { min-height: 72px; }
    .brand { min-width: auto; }
    .brand-logo {
        width: 150px;
        height: 76px;
    }
    .hero { min-height: auto; }

    .hero::before {
        background:
            linear-gradient(90deg, rgba(6, 43, 73, 0.96), rgba(6, 43, 73, 0.76)),
            url("imagen_hero_cua.png") 68% center / cover;
    }

    .hero .container { padding: 72px 0 38px; }
    .hero h1 {
        width: auto;
        font-size: 2.75rem;
        white-space: normal;
    }
    .hero-lead { font-size: 1.06rem; }

    .hero-actions,
    .newsletter-panel form { display: grid; }

    .hero-metrics,
    .bridge-strip,
    .cards-grid,
    .leader-grid,
    .gallery-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero-metrics { display: none; }

    .main-nav.is-open { grid-template-columns: 1fr; }

    .member-panel,
    .contact-panel,
    .newsletter-panel { padding: 22px; }

    .partner-logo {
        width: 172px;
        height: 96px;
        padding: 16px 18px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

    .partner-track {
        animation: none;
    }

    .hero-title-flow {
        clip-path: none;
        filter: none;
        opacity: 1;
        transform: none;
    }
}
