/* ============================================================
   Congreso de Psicología · UCV
   Tokens + layout. Prefijo cp- para no chocar con Bootstrap/plataforma.
   ============================================================ */

/* Messina Sans como una sola familia con pesos reales (head.php solo declara Book/Regular/Semibold
   como familias separadas). Rutas absolutas al root del sitio: funcionan en local y en producción. */
@font-face { font-family: 'MessinaSans UI'; src: url('/_assets/fonts/MessinaSans-Regular.otf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'MessinaSans UI'; src: url('/_assets/fonts/MessinaSans-SemiBold.otf'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'MessinaSans UI'; src: url('/_assets/fonts/MessinaSans-Bold.otf'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'MessinaSans UI'; src: url('/_assets/fonts/MessinaSans-Black.ttf'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
    --cp-blue-950: #031a5e;
    --cp-blue-900: #04227f;
    --cp-blue-800: #052db0;
    --cp-blue-700: #0533c8;
    --cp-blue-600: #1650e0;
    --cp-blue-500: #2a6cf0;
    --cp-cyan: #4ed3ff;
    --cp-cyan-dark: #16b6f2;
    --cp-white: #ffffff;
    --cp-ink: #14224a;
    --cp-ink-soft: #4a5a83;
    --cp-paper: #f4f7fd;
    --cp-line: rgba(20, 34, 74, 0.10);

    --cp-font-head: 'MessinaSans UI', 'MessinaSans Semibold', 'Prelo Exbd', system-ui, sans-serif;
    --cp-font-body: 'MessinaSans Book', 'MessinaSans Regular', system-ui, sans-serif;

    --cp-radius: 20px;
    --cp-max: 1180px;
    --cp-gutter: 16px;
    --cp-nav-h: 84px;
}

/* Lenis (footer editorial) maneja el smooth scroll: nunca usar scroll-behavior: smooth aquí */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }

body.cp-body {
    margin: 0;
    font-family: var(--cp-font-body);
    color: var(--cp-ink);
    background: var(--cp-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.cp-body a { text-decoration: none; color: inherit; }
.cp-body ul, .cp-body ol { list-style: none; margin: 0; padding: 0; }
.cp-body h1, .cp-body h2, .cp-body h3 { margin: 0; font-family: var(--cp-font-head); font-weight: 600; }
.cp-body p { margin: 0; }

.cp-container {
    width: 100%;
    max-width: var(--cp-max);
    margin: 0 auto;
    padding-left: var(--cp-gutter);
    padding-right: var(--cp-gutter);
}
@media (min-width: 768px) { :root { --cp-gutter: 32px; } }

/* ── Botones ─────────────────────────────────────────────── */
.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-family: var(--cp-font-head);
    font-size: 15px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    white-space: nowrap;
}
.cp-btn--cyan {
    background: var(--cp-cyan);
    color: var(--cp-blue-700);
    box-shadow: 0 10px 30px rgba(78, 211, 255, 0.35);
}
.cp-btn--cyan:hover {
    background: #6fdcff;
    color: var(--cp-blue-800);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(78, 211, 255, 0.45);
}

/* ── Nav ─────────────────────────────────────────────────── */
.cp-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--cp-nav-h);
    transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease, height .35s ease;
}
.cp-nav.is-scrolled {
    height: 68px;
    background: rgba(4, 34, 127, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 40px rgba(3, 26, 94, 0.35);
}
.cp-nav__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cp-nav__logo img { display: block; height: 26px; width: auto; }
.cp-nav__links {
    display: none;
    gap: 40px;
    margin-left: auto;
}
.cp-nav__links a {
    color: var(--cp-white);
    font-family: var(--cp-font-head);
    font-size: 17px;
    position: relative;
    padding: 6px 0;
}
.cp-nav__links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--cp-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.cp-nav__links a:hover::after { transform: scaleX(1); }
.cp-nav__cta { padding: 11px 22px; font-size: 13px; }
@media (min-width: 900px) {
    .cp-nav__links { display: flex; }
    .cp-nav__logo img { height: 32px; }
    .cp-nav__cta { padding: 13px 26px; font-size: 14px; }
}

/* ── Hero ────────────────────────────────────────────────── */
.cp-hero {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--cp-white);
    background: var(--cp-blue-900);   /* mismo azul con el que arranca la sección siguiente */
    overflow: hidden;
    isolation: isolate;
}
.cp-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
/* Degradado radial en un pseudoelemento propio: se funde hacia el azul plano del hero en el
   último tercio (sin afectar al canvas del cerebro), así no hay corte con la sección siguiente */
.cp-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 50% 45%, #1f5ff0 0%, #0a3ad4 38%, #0631b8 62%, #04227f 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}
.cp-hero__glow {
    position: absolute;
    left: 50%; top: 50%;
    width: 78vmin; height: 78vmin;
    transform: translate(-50%, -52%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 190, 255, 0.55) 0%, rgba(70, 140, 255, 0.28) 32%, rgba(40, 100, 230, 0) 70%);
    filter: blur(18px);
    pointer-events: none;
}
.cp-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.cp-hero__canvas.is-ready { opacity: 1; }
.cp-hero__vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 34, 127, 0.45) 0%, rgba(4, 34, 127, 0) 28%, rgba(4, 34, 127, 0) 72%, rgba(4, 34, 127, 0.55) 100%);
    pointer-events: none;
}

.cp-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: calc(var(--cp-nav-h) + 40px);
    padding-bottom: 56px;
}
.cp-hero .cp-hero__title {
    font-size: clamp(28px, 4.3vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-shadow: 0 6px 40px rgba(3, 26, 94, 0.55);
    max-width: 30ch;
    margin: 0 auto;
}
.cp-hero__line {
    display: block;
    opacity: 0;
    transform: translateY(18px);
    animation: cp-rise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.cp-hero__line + .cp-hero__line { margin-top: clamp(14px, 2.4vw, 30px); animation-delay: .18s; }

.cp-hero .cp-hero__facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 52px;
    margin-top: clamp(36px, 6vw, 70px);
    opacity: 0;
    animation: cp-fade 1s ease .55s forwards;
}
.cp-hero__fact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.3;
    text-shadow: 0 4px 24px rgba(3, 26, 94, 0.6);
}
.cp-hero__fact-label { font-family: var(--cp-font-body); opacity: .92; }
.cp-hero__fact-value { font-family: var(--cp-font-head); }

.cp-hero__scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin-top: clamp(28px, 4vw, 48px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--cp-white);
    backdrop-filter: blur(6px);
    animation: cp-bob 2.4s ease-in-out infinite;
    transition: background .3s ease;
}
.cp-hero__scroll:hover { background: rgba(255, 255, 255, 0.26); }
.cp-hero__scroll svg { width: 22px; height: 22px; }

@keyframes cp-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes cp-fade { to { opacity: 1; } }
@keyframes cp-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}
/* ── Movimiento reducido ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .cp-hero__line, .cp-hero__facts { animation: none; opacity: 1; transform: none; }
    .cp-hero__scroll { animation: none; }
}

/* ── Móvil: datos apilados ────────────────────────────────── */
@media (max-width: 640px) {
    .cp-hero__content { padding-top: calc(var(--cp-nav-h) + 16px); padding-bottom: 40px; }
    .cp-hero .cp-hero__title { font-size: clamp(26px, 7vw, 32px); line-height: 1.2; }
    .cp-hero__line + .cp-hero__line { margin-top: 26px; }
    .cp-hero .cp-hero__facts { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px 26px; margin-top: 44px; }
    .cp-hero__fact { flex-direction: row; gap: 5px; font-size: 15px; }
    .cp-hero__fact-label { font-family: var(--cp-font-body); opacity: 1; }
    .cp-hero__fact-value { font-weight: 700; }
    .cp-hero__scroll { margin-top: 36px; }
}

/* ============================================================
   TOP NAV / HEADER (Estilo idéntico a somos.ucv.edu.pe)
   ============================================================ */
.cp-body #topNav {
    position: fixed;                 /* acompaña el scroll */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transform: none !important;
    background: transparent;
    transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
/* Al bajar: fondo azul translúcido para seguir legible sobre las secciones claras */
.cp-body #topNav.is-scrolled {
    background: rgba(4, 34, 127, .86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 40px rgba(3, 26, 94, .35);
}
.cp-body #topNav.is-scrolled .nav-container { padding: 12px 0; }
.cp-body #topNav.is-scrolled .nav-logo-link::after { font-size: 40px; }
.cp-body #topNav.is-scrolled .logo-ucv--desktop { width: 27px; height: 32px; }

.cp-body #topNav .nav-container {
    width: min(88vw, 1600px);
    max-width: none;
    padding: 24px 0 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding .35s ease;
}

.cp-body #topNav .nav-logo-link {
    display: flex;
    align-items: center;
    gap: 17px;
    text-decoration: none;
}

.cp-body #topNav .nav-logo-link::after {
    content: "UCV";
    color: #fff;
    font-family: "MessinaSans-Regular", "MessinaSans Regular", Arial, sans-serif;
    font-size: 51px;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 0.9;
}

.cp-body #topNav .logo-ucv--desktop {
    width: 33px;
    height: 40px;
    display: block !important;
}

.cp-body #topNav .logo-ucv--mobile {
    display: none !important;
}

.cp-body #topNav .nav-inline-links {
    display: flex;
    align-items: center;
    gap: 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cp-body #topNav .roll-link {
    height: 1.4em;
    color: #fff;
    font-family: "MessinaSans-Bold", "MessinaSans Semibold", Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.cp-body #topNav .roll-primary,
.cp-body #topNav .roll-secondary {
    color: #fff;
}

/* Botón píldora cian "INSCRÍBETE AHORA" idéntico al screenshot del usuario */
.cp-body #topNav .nav-inline-links li:last-child .roll-link {
    width: auto !important;
    min-width: 170px;
    height: 42px;
    padding: 0 24px;
    border-radius: 999px;
    display: block;
    text-align: center;
    line-height: 42px;
    background: #00d0ff;
    color: #04227f !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 18px rgba(0, 208, 255, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    overflow: hidden;
    position: relative;
}

.cp-body #topNav .nav-inline-links li:last-child .roll-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 208, 255, 0.55);
    background: #2ee2ff;
}

.cp-body #topNav .nav-inline-links li:last-child .roll-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.cp-body #topNav .nav-inline-links li:last-child .roll-primary,
.cp-body #topNav .nav-inline-links li:last-child .roll-secondary {
    display: block;
    line-height: 42px;
    text-align: center;
    color: #04227f !important;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .cp-body #topNav .nav-inline-links {
        gap: 20px;
    }
    .cp-body #topNav .roll-link {
        font-size: 15px;
    }
    .cp-body #topNav .nav-inline-links li:last-child .roll-link {
        height: 40px;
        padding: 0 18px;
        font-size: 13px;
    }
    .cp-body #topNav .nav-inline-links li:last-child .roll-primary,
    .cp-body #topNav .nav-inline-links li:last-child .roll-secondary {
        line-height: 40px;
    }
}

@media (max-width: 767px) {
    .cp-body #topNav .nav-container { width: calc(100% - 32px); padding-top: 18px; }
    .cp-body #topNav .nav-logo-link::after { font-size: 34px; }
    .cp-body #topNav .logo-ucv--desktop { width: 28px; height: 34px; }
    /* Solo el CTA, como enlace de texto subrayado (referencia: "MODALIDADES") */
    .cp-body #topNav .nav-inline-links li:not(:last-child) { display: none; }
    .cp-body #topNav .nav-inline-links li:last-child .roll-link {
        min-width: 0;
        height: 1.5em;                 /* una sola línea: oculta la copia del efecto roll */
        overflow: hidden;
        padding: 0;
        border-radius: 0;
        background: transparent;
        color: #fff !important;
        box-shadow: none;
        border-bottom: 2px solid #fff;
        font-size: 13px;
        letter-spacing: .06em;
        line-height: 1.5;
        transform: none !important;
    }
    .cp-body #topNav .nav-inline-links li:last-child .roll-link:hover { background: transparent; box-shadow: none; }
    .cp-body #topNav .nav-inline-links li:last-child .roll-primary,
    .cp-body #topNav .nav-inline-links li:last-child .roll-secondary { color: #fff !important; line-height: 1.5; }
    .cp-body #topNav.is-scrolled .nav-container { padding: 10px 0; }
}

/* ── Objetivo: texto + esfera de escudos ─────────────────── */
.cp-objetivo {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--cp-white);
    background: linear-gradient(180deg, var(--cp-blue-900) 0%, #052a9c 55%, #0533c8 100%);
    padding: clamp(56px, 8vw, 110px) 0;
}
.cp-objetivo__bokeh {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(180px 180px at 12% 80%, rgba(2, 191, 242, .22), transparent 70%),
        radial-gradient(120px 120px at 58% 18%, rgba(2, 191, 242, .18), transparent 70%),
        radial-gradient(90px 90px at 88% 88%, rgba(2, 191, 242, .16), transparent 70%),
        radial-gradient(60px 60px at 70% 60%, rgba(127, 227, 255, .18), transparent 70%);
    filter: blur(8px);
}
.cp-objetivo__grid { display: grid; gap: 40px; align-items: center; }
.cp-pill {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 999px;
    background: rgba(2, 191, 242, .22);
    border: 1px solid rgba(2, 191, 242, .55);
    box-shadow: 0 0 24px rgba(2, 191, 242, .35), inset 0 0 12px rgba(2, 191, 242, .25);
    font-family: var(--cp-font-head);
    font-weight: 700;
    font-size: 16px;
    color: var(--cp-white);
    margin-bottom: 22px;
}
.cp-objetivo__p {
    font-family: var(--cp-font-head);
    font-size: clamp(18px, 1.55vw, 24px);
    line-height: 1.5;
    max-width: 24em;
}
.cp-objetivo__visual {
    position: relative;
    aspect-ratio: 1 / 1;
    width: min(100%, 520px);
    margin: 0 auto;
}
.cp-objetivo__glow {
    position: absolute; inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 191, 242, .45) 0%, rgba(2, 191, 242, .18) 45%, rgba(2, 191, 242, 0) 72%);
    filter: blur(22px);
}
.cp-objetivo__canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 1s ease;
}
.cp-objetivo__canvas.is-ready { opacity: 1; }
@media (min-width: 900px) {
    .cp-objetivo__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
    .cp-objetivo__visual { margin: 0 0 0 auto; }
}

/* ── Organizado por + fecha + tarjetas ───────────────────── */
.cp-org {
    position: relative;
    color: var(--cp-white);
    background: linear-gradient(180deg, #0533c8 0%, #052a9c 45%, #04227f 100%);
    padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
    text-align: center;
}
.cp-org__head { margin-bottom: clamp(36px, 5vw, 64px); }
.cp-org__head .cp-pill { margin-bottom: 0; }

.cp-org__logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}
.cp-org__logo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cp-org__mark { height: 60px; display: flex; align-items: center; justify-content: center; }
.cp-org__mark img { max-height: 60px; width: auto; max-width: 220px; display: block; }
.cp-org__ucv { display: inline-flex; align-items: center; gap: 12px; }
.cp-org__ucv img { height: 44px; width: auto; }
.cp-org__ucv b { font-family: var(--cp-font-body); font-weight: 400; font-size: 50px; line-height: 1; letter-spacing: .02em; }
.cp-org__sub {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--cp-font-head); font-size: 15px;
}
.cp-org__flag { width: 17px; height: 11px; display: block; }

.cp-org .cp-org__date {
    display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.5vw, 34px);
    margin: clamp(48px, 7vw, 96px) auto clamp(40px, 6vw, 80px);
    font-family: var(--cp-font-head);
    font-weight: 700;
    font-size: clamp(30px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.cp-org__dot {
    flex: none;
    width: clamp(12px, 1.4vw, 20px); height: clamp(12px, 1.4vw, 20px);
    border-radius: 50%;
    background: var(--cp-cyan);
    box-shadow: 0 0 18px rgba(78, 211, 255, .8);
}

.cp-org__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 1040px;
    margin: 0 auto;
}
.cp-org__card {
    position: relative;
    min-height: 200px;
    padding: 34px 26px 30px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    /* Mismo vidrio que las tarjetas de Logros (campus/ate-pregrado) */
    border-radius: 48px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    box-shadow:
        inset 0px 39px 56px -36px rgba(255, 255, 255, 0.5),
        inset 0px 7px 11px -4px rgba(255, 255, 255, 1),
        inset 0px -82px 68px -64px rgba(14, 78, 114, 0.3),
        inset 0px 98px 100px -48px rgba(0, 161, 253, 0.3),
        inset 0px 4px 18px 0px rgba(8, 59, 88, 0.3),
        inset 0px 1px 40px 0px rgba(13, 137, 207, 0.2);
    transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .cp-org__card:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-8px);
    }
}
.cp-org__card h3 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; }
.cp-org__card p  { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; }
.cp-org__card p strong { font-family: var(--cp-font-body); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); }
.cp-org__card p small  { font-size: clamp(15px, 1.3vw, 18px); }

@media (min-width: 700px) {
    .cp-org__logos { grid-template-columns: repeat(4, 1fr); }
    .cp-org__cards { grid-template-columns: repeat(3, 1fr); }
}

/* ── Sedes: texto + carrusel de campus ───────────────────── */
:root {
    --cp-celeste: #01CFFF;
    --cp-card-w: clamp(190px, 19vw, 272px);   /* ancho de las tarjetas pequeñas */
    --cp-card-scale: 1.29;                    /* la activa crece hasta ~350px */
    --cp-card-gap: 22px;
}
.cp-btn--celeste {
    background: var(--cp-celeste);
    color: #052a9c;
    border-radius: 12px;
    text-transform: none;
    font-weight: 700;
    font-size: 18px;
    padding: 15px 26px;
    box-shadow: 0 10px 28px rgba(1, 207, 255, .35);
}
.cp-btn--celeste:hover { background: #2fd9ff; color: #04227f; transform: translateY(-2px); }

.cp-sedes {
    background: linear-gradient(180deg, #f6f8fc 0%, #eef2f9 100%);
    color: #0b2fb0;
    padding: clamp(48px, 6vw, 84px) 0;
    overflow: hidden;
}
.cp-sedes__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.cp-sedes .cp-sedes__title {
    font-size: clamp(28px, 2.8vw, 38px);
    line-height: 1.15;
    text-transform: uppercase;
    font-weight: 700;
    color: #0b2fb0;
    max-width: 14ch;
}
.cp-sedes .cp-sedes__p {
    margin: 22px 0 32px;
    font-family: var(--cp-font-head);
    font-weight: 500;
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.5;
    color: #0b2fb0;
    max-width: 22em;
}

/* Carrusel: todas las tarjetas comparten el ancho pequeño; la activa se escala desde su borde
   izquierdo y las siguientes se desplazan lo que crece, así el hueco entre ellas es constante */
.cp-sedes__carousel { position: relative; min-width: 0; }   /* min-width 0: que la fila de slides no ensanche la columna */
.cp-sedes__swiper {
    overflow: visible;
    padding: calc(var(--cp-card-w) * .2) 0;   /* sitio para que la activa crezca arriba y abajo */
    /* Recorta solo por la izquierda: oculta las tarjetas ya pasadas sin cortar la activa al crecer */
    clip-path: inset(-60% -100vw -60% 0);
}
.cp-campus {
    position: relative;
    width: var(--cp-card-w);
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: #dfe7f5;
    box-shadow: 0 18px 44px rgba(11, 47, 176, .18);
    transform-origin: left center;
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
    will-change: transform;
}
.cp-campus.swiper-slide-active { transform: scale(var(--cp-card-scale)); z-index: 2; }
.cp-campus.swiper-slide-active ~ .cp-campus { transform: translateX(calc(var(--cp-card-w) * (var(--cp-card-scale) - 1))); }
.cp-campus img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-campus::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(4, 34, 127, 0) 45%, rgba(4, 34, 127, .55) 78%, rgba(4, 34, 127, .85) 100%);
}
.cp-campus__info {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 0 22px 22px;
    color: var(--cp-white);
    z-index: 1;
}
.cp-campus .cp-campus__info h3 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; line-height: 1.1; }
.cp-campus .cp-campus__info p { margin-top: 5px; font-family: var(--cp-font-head); font-size: clamp(12px, 1vw, 14px); opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cp-sedes__nav { display: flex; gap: 12px; margin-top: 20px; position: relative; z-index: 5; }   /* por encima del .swiper (z-index 1), cuyo relleno cubre esta zona */
.cp-sedes__arrow {
    width: 38px; height: 38px;
    border: 0; border-radius: 50%;
    background: var(--cp-celeste);
    color: var(--cp-white);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(1, 207, 255, .4);
    transition: transform .25s ease, background .25s ease;
}
.cp-sedes__arrow:hover { transform: translateY(-2px); background: #2fd9ff; }
.cp-sedes__arrow svg { width: 20px; height: 20px; }

@media (min-width: 900px) {
    .cp-sedes__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr); gap: 48px; }
    /* El carrusel sale por el borde derecho de la pantalla */
    .cp-sedes__carousel { margin-right: calc(-1 * max(var(--cp-gutter), (100vw - var(--cp-max)) / 2 + var(--cp-gutter))); }
    /* Flechas bajo la segunda tarjeta, a la altura del borde inferior de la activa */
    .cp-sedes__nav {
        position: absolute;
        left: calc(var(--cp-card-w) * var(--cp-card-scale) + var(--cp-card-gap));
        bottom: calc(var(--cp-card-w) * .2 - 46px);
        margin: 0;
    }
}

/* ── Cuenta regresiva ────────────────────────────────────── */
.cp-count {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--cp-white);
    text-align: center;
    padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 104px);
    background:
        radial-gradient(70% 62% at 50% 46%, rgba(42, 108, 240, .55) 0%, rgba(42, 108, 240, 0) 70%),   /* se apaga antes del borde: sin corte con la sección siguiente */
        linear-gradient(180deg, #04227f 0%, #052a9c 50%, #04227f 100%);
}
.cp-count__net {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .9;
    /* La red se desvanece en los bordes superior e inferior */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.cp-count__title {
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.cp-count__timer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(10px, 2vw, 28px);
    margin-top: clamp(28px, 4vw, 56px);
}
.cp-count__unit { display: flex; flex-direction: column; align-items: center; min-width: 3.2ch; }
.cp-count__num {
    font-family: var(--cp-font-head);
    font-weight: 700;
    font-size: clamp(44px, 6.5vw, 84px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 6px 30px rgba(3, 26, 94, .5);
}
.cp-count__label { margin-top: 10px; font-size: clamp(15px, 1.4vw, 22px); }
.cp-count__sep {
    font-family: var(--cp-font-head);
    font-weight: 700;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    padding-top: clamp(4px, .6vw, 10px);
    color: rgba(255, 255, 255, .85);
}
.cp-count__actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px;
    margin-top: clamp(36px, 5vw, 64px);
}
/* Botón de vidrio */
.cp-btn--glass {
    text-transform: none;
    font-weight: 700;
    font-size: 17px;
    padding: 12px 26px;
    color: var(--cp-white);
    background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(3, 20, 80, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.cp-btn--glass:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .14));
    border-color: rgba(255, 255, 255, .6);
    transform: translateY(-2px);
}
@media (max-width: 480px) {
    .cp-count__label { font-size: 12px; }
}

/* ── Ejes temáticos ──────────────────────────────────────── */
.cp-ejes {
    color: var(--cp-white);
    background: linear-gradient(180deg, #04227f 0%, #052a9c 100%);
    padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
}
.cp-ejes__head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 60px); }
.cp-ejes .cp-ejes__title { font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.cp-ejes .cp-ejes__sub { margin-top: 12px; font-family: var(--cp-font-head); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.45; }

.cp-ejes__swiper { max-width: 1100px; margin: 0 auto; }
@media (min-width: 700px) {
    .cp-ejes__swiper { overflow: visible; }
    .cp-ejes__grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(18px, 2.2vw, 32px);
        transform: none !important;
    }
    .cp-ejes__page { display: contents; }
    .cp-ejes__dots { display: none; }
}
@media (max-width: 699px) {
    .cp-ejes__page { display: grid; gap: 16px; height: auto; }
    .cp-ejes__dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
    .cp-ejes__dots .swiper-pagination-bullet { width: 11px; height: 11px; background: rgba(255, 255, 255, .45); opacity: 1; margin: 0; }
    .cp-ejes__dots .swiper-pagination-bullet-active { background: #fff; }
    .cp-eje__text { padding-right: 42%; }
    .cp-eje__text h3 { font-size: 19px; }
    .cp-eje .cp-eje__text p { font-size: 12px; }
}
.cp-eje {
    position: relative;
    aspect-ratio: 591 / 303;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b3fc9 0%, #072d9a 55%, #052a8f 100%);
    box-shadow: 0 18px 50px rgba(3, 20, 80, .35);
    isolation: isolate;
    transition: transform .3s ease, box-shadow .3s ease;
}
.cp-eje:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(3, 20, 80, .45); }
.cp-eje__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: -1; }
.cp-eje__text {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(18px, 2.4vw, 32px) 45% clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 30px);
}
.cp-eje__text h3 {
    font-size: clamp(19px, 1.9vw, 27px);
    font-weight: 700;
    line-height: 1.12;
    text-shadow: 0 4px 18px rgba(3, 20, 80, .5);
}
.cp-eje__text h3 em { font-style: normal; color: var(--cp-celeste); }
.cp-eje .cp-eje__text p {
    margin-top: 10px;
    font-family: var(--cp-font-head);
    font-size: clamp(12px, 1.05vw, 15px);
    line-height: 1.35;
    max-width: 26em;
    text-shadow: 0 2px 12px rgba(3, 20, 80, .5);
}

/* ── Video: fondo 30% azul / 70% claro ───────────────────── */
.cp-video {
    /* El azul superior es el mismo con el que termina "Ejes temáticos": sin corte */
    background: linear-gradient(180deg, #052a9c 0%, #052a9c 30%, #f4f7fd 30%, #f4f7fd 100%);
    padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 7vw, 96px);
}
.cp-video__frame {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    background: #04227f;
    box-shadow: 0 30px 80px rgba(3, 20, 80, .35);
}
.cp-video__frame iframe,
.cp-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }

/* ── Inscripción: imagen + formulario CRM + ponencias ────── */
.cp-form {
    background: #f4f7fd;
    padding: clamp(24px, 3vw, 40px) 0 clamp(32px, 4vw, 56px);
}
.cp-form__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: stretch; }
.cp-card {
    background: var(--cp-white);
    border-radius: 22px;
    box-shadow: 0 16px 48px rgba(11, 47, 176, .08);
}
.cp-form__media {
    position: relative;
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 551 / 764;
    box-shadow: 0 16px 48px rgba(11, 47, 176, .12);
}
.cp-form__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-form__media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(4, 34, 127, 0) 55%, rgba(4, 34, 127, .75) 100%);
}
.cp-form__media figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 0 clamp(20px, 2.4vw, 32px) clamp(24px, 3vw, 40px);
    color: var(--cp-white);
    font-family: var(--cp-font-head);
    font-weight: 700;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.15;
    max-width: 18ch;
    z-index: 1;
}
.cp-form__col { display: flex; flex-direction: column; gap: 22px; min-height: 0; }
.cp-form__card {
    padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 44px) clamp(20px, 2.4vw, 32px);
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;                 /* si el formulario no cabe en la altura de la foto, scroll interno */
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 47, 176, .35) transparent;
}
.cp-form__card::-webkit-scrollbar { width: 6px; }
.cp-form__card::-webkit-scrollbar-thumb { background: rgba(11, 47, 176, .35); border-radius: 999px; }
.cp-form__ponencia { flex: 0 0 auto; }
.cp-form .cp-form__title {
    text-align: center;
    color: #0b2fb0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.3;
    margin: 0 auto 18px;
    max-width: 30ch;
}
.cp-form__ponencia { padding: clamp(22px, 2.6vw, 34px) clamp(20px, 3vw, 44px); text-align: center; }
.cp-form .cp-form__ponencia h3 { color: #0b2fb0; font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 1.6vw, 22px); margin-bottom: 18px; }
.cp-btn--block { display: flex; width: 100%; }
@media (min-width: 900px) {
    .cp-form__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 40px; }
}

/* ── Contacto ────────────────────────────────────────────── */
.cp-contacto {
    text-align: center;
    color: #0b2fb0;
    background: linear-gradient(180deg, #f4f7fd 0%, #dfe6fb 100%);
    padding: clamp(24px, 3vw, 40px) 0 clamp(104px, 11vw, 150px);   /* abajo compensa los 32px que Logros monta encima */
}
.cp-contacto .cp-contacto__title { font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.2; max-width: 22ch; margin: 0 auto; }
.cp-contacto .cp-contacto__text { margin-top: 22px; font-family: var(--cp-font-head); font-size: clamp(16px, 1.3vw, 19px); }
.cp-contacto .cp-contacto__mail {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--cp-font-head);
    font-weight: 700;
    font-size: clamp(19px, 1.9vw, 26px);
    color: #0b2fb0;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.cp-contacto .cp-contacto__mail:hover { color: var(--cp-blue-600); }
.cp-contacto .cp-contacto__note { margin-top: 18px; font-family: var(--cp-font-head); font-size: clamp(15px, 1.2vw, 18px); }

/* ── Formulario nativo de inscripción ────────────────────── */
.cp-frm { display: grid; gap: 14px; }
.cp-frm__row--2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .cp-frm__row--2 { grid-template-columns: 1fr 1fr; } }
.cp-frm__field { position: relative; display: block; }
.cp-frm__label {
    display: block;
    margin: 0 0 4px 10px;
    font-family: var(--cp-font-head);
    font-weight: 700;
    font-size: 12px;
    color: #0b2fb0;
}
.cp-frm__label b { color: var(--cp-celeste); font-weight: 700; }
.cp-frm__field input,
.cp-frm__field select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #cfd7ea;
    border-radius: 10px;
    background: var(--cp-white);
    color: var(--cp-ink);
    font-family: var(--cp-font-body);
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    appearance: none;
    -webkit-appearance: none;
}
.cp-frm__field input::placeholder { color: #8a93ab; }
.cp-frm__field select:invalid, .cp-frm__field select option[value=""] { color: #8a93ab; }
.cp-frm__field input:focus,
.cp-frm__field select:focus { border-color: var(--cp-celeste); box-shadow: 0 0 0 3px rgba(1, 207, 255, .2); }
.cp-frm__field--select::after {
    content: '';
    position: absolute; right: 16px; bottom: 18px;
    width: 8px; height: 8px;
    border-right: 1.8px solid #4a5a83; border-bottom: 1.8px solid #4a5a83;
    transform: rotate(45deg);
    pointer-events: none;
}
.cp-frm__field--select select { padding-right: 40px; }
.cp-frm__icon {
    position: absolute; bottom: 13px;
    width: 18px; height: 18px;
    color: #4a5a83;
    pointer-events: none;
}
.cp-frm__field--icon-right .cp-frm__icon { right: 14px; }
.cp-frm__field--icon-right input { padding-right: 42px; }
.cp-frm__field--icon-left .cp-frm__icon { left: 14px; }
.cp-frm__field--icon-left select { padding-left: 40px; }
.cp-frm__check {
    display: flex; align-items: center; gap: 10px;
    margin: 4px 0 2px;
    font-family: var(--cp-font-head);
    font-size: 15px;
    color: #0b2fb0;
    cursor: pointer;
}
.cp-frm__check input {
    width: 18px; height: 18px; margin: 0;
    accent-color: #0b2fb0;
    flex: none;
}
.cp-frm__check a { color: #0b2fb0; text-decoration: underline; text-underline-offset: 3px; }
.cp-frm .is-invalid input, .cp-frm .is-invalid select { border-color: #e30613; box-shadow: 0 0 0 3px rgba(227, 6, 19, .15); }
.cp-frm__check.is-invalid { color: #e30613; }
.cp-frm__msg { min-height: 0; font-family: var(--cp-font-head); font-size: 14px; text-align: center; }
.cp-frm__msg.is-error { color: #e30613; }
.cp-frm__msg.is-ok { color: #0a8f4a; }
.cp-frm .cp-btn--block { margin-top: 2px; font-size: 18px; padding: 15px 20px; }

/* La fila de Inscripción la mide la foto: la columna del formulario se posiciona en absoluto
   dentro de un envoltorio y, si no cabe, la tarjeta del formulario hace scroll interno */
.cp-form__colwrap { position: relative; min-height: 0; }
@media (min-width: 900px) {
    .cp-form__col { position: absolute; inset: 0; }
}

/* ── Responsive: Objetivo y Organizado por ───────────────── */
@media (max-width: 899px) {
    /* Objetivo: el globo pasa detrás del texto y asoma por el borde derecho */
    .cp-objetivo { padding: 56px 0 72px; }
    .cp-objetivo__grid { position: relative; grid-template-columns: minmax(0, 1fr); min-height: 380px; align-items: center; }
    .cp-objetivo__text { position: relative; z-index: 1; padding-right: 8%; }
    .cp-objetivo__visual {
        position: absolute;
        top: 50%;
        right: -38%;
        width: min(92vw, 420px);
        transform: translateY(-50%);
        margin: 0;
        opacity: .95;
        pointer-events: none;
        z-index: 0;
    }
    .cp-objetivo__p { font-size: 18px; max-width: none; }
    .cp-pill { font-size: 17px; padding: 9px 26px; }

    /* Organizado por: un logo por fila, grandes */
    .cp-org__logos { grid-template-columns: 1fr; gap: 44px; }
    .cp-org__logo { gap: 20px; }
    .cp-org__mark { height: 92px; }
    /* Altura fija: los PNG originales son pequeños (≈60px) y con max-height no crecerían */
    .cp-org__mark img { height: 84px; max-height: none; width: auto; max-width: min(320px, 84vw); object-fit: contain; }
    .cp-org__ucv { gap: 16px; }
    .cp-org__ucv img { height: 70px; }
    .cp-org__ucv b { font-size: 78px; }
    .cp-org__sub { font-size: 19px; gap: 12px; }
    .cp-org__flag { width: 24px; height: 16px; }

    /* Fecha en dos líneas con los puntos a los lados */
    .cp-org .cp-org__date { font-size: clamp(30px, 8.4vw, 40px); gap: 16px; padding: 0 4px; max-width: 420px; }
    .cp-org__dot { width: 22px; height: 22px; }
    .cp-org__cards { gap: 26px; }
    .cp-org__card { min-height: 190px; }
}

/* ── Responsive: Sedes y cuenta regresiva ─────────────────── */
@media (max-width: 899px) {
    .cp-sedes { padding: 48px 0 40px; }
    .cp-sedes__text { text-align: center; }
    .cp-sedes .cp-sedes__title { max-width: none; font-size: clamp(26px, 7.4vw, 34px); }
    .cp-sedes .cp-sedes__p { margin: 14px auto 22px; max-width: 26em; font-size: 16px; }
    .cp-btn--celeste { font-size: 16px; padding: 12px 22px; }
    .cp-sedes__grid { gap: 28px; }
    /* Tarjeta activa ≈ 72vw; la siguiente asoma por la derecha */
    .cp-sedes__carousel { --cp-card-w: 56vw; }
    .cp-sedes__nav { justify-content: center; margin-top: 26px; }   /* separación respecto a la tarjeta activa */
}
@media (max-width: 640px) {
    .cp-count { padding: 48px 0 56px; }
    .cp-count__title { font-size: 30px; }
    .cp-count__timer { gap: 8px; margin-top: 28px; }
    .cp-count__num { font-size: 42px; }
    .cp-count__label { margin-top: 6px; font-size: 13px; }
    .cp-count__sep { font-size: 34px; padding-top: 2px; }
    .cp-count__actions { gap: 12px; margin-top: 34px; }
    .cp-count__actions .cp-btn--glass { font-size: 14px; padding: 10px 18px; }
}

/* ── Responsive: Inscripción ─────────────────────────────── */
@media (max-width: 899px) {
    .cp-form__media { display: none; }          /* en móvil no se muestra la foto */
    .cp-form__grid { gap: 22px; }
    .cp-form__card { overflow: visible; }        /* sin scroll interno: el alto lo da el formulario */
    .cp-form .cp-form__title { font-size: 17px; }
}
@media (max-width: 559px) {
    .cp-frm__row--2 { grid-template-columns: 1fr 1fr; gap: 12px; }   /* pares de campos lado a lado */
    .cp-frm__label { font-size: 11px; margin-left: 8px; }
    .cp-frm__field input, .cp-frm__field select { font-size: 13px; padding: 0 12px; }
    .cp-frm__field--select select { padding-right: 34px; }
    .cp-frm__check { font-size: 14px; align-items: flex-start; }
    .cp-frm__check input { margin-top: 2px; }
}

/* Barra flotante de la plataforma (hamburguesa + CTA): no aplica aquí, el top menu ya es fijo */
.cp-body #sticky-nav-bar,
.cp-body #navbar-overlay,
.cp-body #navbar { display: none !important; }

/* ── Modal de ponencias ──────────────────────────────────── */
.cp-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cp-modal[hidden] { display: none; }
.cp-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 34, 127, .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.cp-modal__dialog {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--cp-white);
    border-radius: 22px;
    padding: clamp(28px, 3vw, 40px) clamp(20px, 3vw, 44px) clamp(24px, 2.4vw, 32px);
    box-shadow: 0 30px 80px rgba(3, 20, 80, .45);
    transform: translateY(18px) scale(.98);
    opacity: 0;
    transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
    scrollbar-width: thin;
}
.cp-modal.is-open .cp-modal__backdrop { opacity: 1; }
.cp-modal.is-open .cp-modal__dialog { transform: none; opacity: 1; }
.cp-modal__close {
    position: absolute; top: 14px; right: 14px;
    width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: #eef2fb; color: #0b2fb0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.cp-modal__close svg { width: 18px; height: 18px; }
.cp-modal__close:hover { background: #dfe7f8; }
.cp-modal .cp-modal__text { text-align: center; color: var(--cp-ink-soft); font-family: var(--cp-font-head); font-size: 15px; margin: -6px auto 18px; max-width: 40ch; }
body.cp-modal-open { overflow: hidden; }
.cp-frm__field textarea {
    width: 100%; min-height: 120px; padding: 12px 14px; resize: vertical;
    border: 1px solid #cfd7ea; border-radius: 10px; background: var(--cp-white);
    color: var(--cp-ink); font-family: var(--cp-font-body); font-size: 14px; outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.cp-frm__field textarea:focus { border-color: var(--cp-celeste); box-shadow: 0 0 0 3px rgba(1, 207, 255, .2); }
.cp-frm .is-invalid textarea { border-color: #e30613; box-shadow: 0 0 0 3px rgba(227, 6, 19, .15); }
.cp-frm__hint { display: block; margin: 5px 0 0 10px; font-size: 12px; color: var(--cp-ink-soft); }
.cp-modal .cp-form__title {
    text-align: center; color: #0b2fb0; font-weight: 700; text-transform: uppercase;
    font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; margin: 0 auto 10px; max-width: 30ch;
}

/* ── Página de gracias (hero) ────────────────────────────── */
.cp-hero--gracias .cp-hero__content { max-width: 820px; }
.cp-gracias__badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; margin-bottom: 26px;
    border-radius: 50%;
    background: rgba(1, 207, 255, .18);
    border: 2px solid var(--cp-celeste);
    color: var(--cp-white);
    box-shadow: 0 0 40px rgba(1, 207, 255, .55), inset 0 0 18px rgba(1, 207, 255, .35);
    animation: cp-rise .8s cubic-bezier(.2,.7,.2,1) both;
}
.cp-gracias__badge svg { width: 34px; height: 34px; }
.cp-hero--gracias .cp-hero__title { max-width: 22ch; font-size: clamp(30px, 4.6vw, 56px); }
.cp-hero .cp-gracias__text {
    margin: 26px auto 0;
    max-width: 44em;
    font-family: var(--cp-font-head);
    font-size: clamp(16px, 1.45vw, 21px);
    line-height: 1.55;
    text-shadow: 0 4px 24px rgba(3, 26, 94, .6);
    animation-delay: .25s;
}
.cp-hero .cp-gracias__id {
    margin: 18px auto 0;
    font-family: var(--cp-font-head);
    font-size: 15px;
    letter-spacing: .04em;
    opacity: .9;
    animation-delay: .35s;
}
.cp-gracias__id b { font-weight: 700; color: var(--cp-celeste); }
.cp-gracias__actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px;
    margin-top: clamp(30px, 4vw, 48px);
    opacity: 0;
    animation: cp-fade .9s ease .5s forwards;
}

/* Mensaje de error bajo cada campo */
.cp-frm__error { display: none; margin: 5px 0 0 10px; font-family: var(--cp-font-head); font-size: 12px; line-height: 1.3; color: #e30613; }
.cp-frm .is-invalid .cp-frm__error { display: block; }
.cp-frm__check.is-invalid .cp-frm__error { flex-basis: 100%; margin-left: 28px; }
.cp-frm__check { flex-wrap: wrap; }
