/* =====================================================================
   CONGRESOS PARAGUAY — Sistema visual v3 "Institucional"
   Lenguaje: institucional moderno (referencia: Google y sus productos)
   · Blanco dominante, espacio generoso, jerarquía tipográfica clara
   · Color con disciplina: azul = acción, rojo = acento, navy = texto
   · Tipografías: Lexend (display) + Source Sans 3 (texto)  [par "Corporate Trust"]
   · Identidad: logo oficial (C roja/azul con nodos conectados)
   ===================================================================== */

:root {
    /* Marca (del logo oficial) */
    --brand:        #0152A3;
    --brand-hover:  #01417F;
    --brand-dark:   #01295D;
    --brand-light:  #E8F1FB;
    --accent:       #ED3237;
    --accent-dark:  #C30A1C;
    --accent-light: #FDEBEC;
    --accent-soft:  #FF8A8D;
    --gold:         #F0C419;

    /* Neutros institucionales */
    --ink:          #0E1B2C;
    --ink-soft:     #445468;
    --muted:        #6E7D91;
    --line:         #DDE4ED;
    --hairline:     #E9EEF5;
    --bg:           #FFFFFF;
    --bg-alt:       #F5F7FA;
    --white:        #FFFFFF;
    --danger:       #D64545;
    --success:      #1E8E5A;

    /* Elevación (sombras suaves tipo Material) */
    --radius:       24px;
    --radius-sm:    14px;
    --elev-1:       0 1px 2px rgba(1, 27, 58, .06), 0 1px 3px rgba(1, 27, 58, .05);
    --elev-2:       0 2px 6px rgba(1, 27, 58, .07), 0 10px 24px -8px rgba(1, 27, 58, .12);
    --elev-3:       0 4px 10px rgba(1, 27, 58, .08), 0 24px 48px -16px rgba(1, 27, 58, .18);
    --shadow:       var(--elev-2);
    --shadow-lg:    var(--elev-3);
    --container:    1180px;

    /* Color del congreso activo (se personaliza por evento) */
    --congreso:     var(--brand);

    --ff-display:   'Lexend', system-ui, sans-serif;
    --ff-body:      'Source Sans 3', system-ui, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--ff-body);
    font-size: 1.02rem;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .18s; }
a:hover { color: var(--brand-hover); }
::selection { background: var(--brand); color: #fff; }

h1, h2, h3, h4 { font-family: var(--ff-display); color: var(--brand-dark); line-height: 1.14; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); letter-spacing: -.025em; font-weight: 650; }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); letter-spacing: -.018em; }
h3 { font-size: 1.22rem; letter-spacing: -.008em; }
p { color: var(--ink-soft); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted) !important; }

/* Eyebrow: etiqueta institucional con punto de marca */
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--ff-display); font-weight: 600;
    font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand); margin-bottom: .8rem;
}
.eyebrow::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}

/* ---------- Botones (píldora, sobrios) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--ff-display); font-weight: 500; font-size: .95rem;
    padding: .74rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, box-shadow .25s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; }
.btn-sm { padding: .5rem 1.1rem; font-size: .86rem; }
.btn-lg { padding: .92rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--congreso); color: #fff; box-shadow: var(--elev-1); }
.btn-primary:hover { background: color-mix(in srgb, var(--congreso) 82%, #000); color: #fff; box-shadow: var(--elev-2); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--brand-dark); }
.btn-outline:hover { border-color: var(--congreso); color: var(--congreso); background: var(--brand-light); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--brand-dark); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-white { background: #fff; color: var(--congreso); box-shadow: var(--elev-1); }
.btn-white:hover { color: var(--brand-dark); box-shadow: var(--elev-2); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.site-header--solid { background: #fff; }
.site-header.is-scrolled { border-bottom-color: var(--hairline); box-shadow: 0 1px 2px rgba(1, 27, 58, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; }
.brand--congreso { align-items: center; }
.logo-congreso { display: block; height: 44px; width: auto; max-width: 220px; object-fit: contain; }

.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo-mark { width: 52px; height: auto; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-texto { height: 38px; width: auto; }

/* Navegación con "state layer" (hover con fondo, estilo Google) */
.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav a:not(.btn) {
    font-family: var(--ff-display); font-weight: 500; color: var(--ink-soft); font-size: .94rem;
    padding: .5rem 1rem; border-radius: 999px;
    transition: background .18s, color .18s;
}
.site-nav a:not(.btn):hover { background: var(--bg-alt); color: var(--brand-dark); }
.site-nav a.btn { margin-left: .8rem; color: #fff; }
.site-nav a.btn:hover { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--brand-dark); border-radius: 2px; transition: .25s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) — claro, institucional, con la C de la marca ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem); background: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* Tinte suave superior */
.hero-bg { background: radial-gradient(900px 420px at 85% -20%, var(--brand-light) 0%, transparent 65%); }
/* La C del logo como pieza gráfica */
.hero-bg::after {
    content: ''; position: absolute; right: -140px; top: 50%; transform: translateY(-50%);
    width: 560px; height: 590px;
    background: url('../img/logo-icono.png') no-repeat center / contain;
    opacity: .07;
}
/* Órbita de nodos conectados (motivo del logo) */
.hero-orbita {
    position: absolute; right: -60px; top: 50%; margin-top: -330px;
    width: 660px; height: 660px; border-radius: 50%;
    border: 1.5px dashed #C9DCF0;
    animation: orbita 60s linear infinite;
}
@keyframes orbita { to { transform: rotate(360deg); } }
/* Nodos sobre el anillo: el wrapper .orbita-nodo posiciona (rotate() = ángulo,
   translate(330px) = apoyado sobre el borde) y la esfera interior .orbita-dot
   es la que anima el JS (flote en y) sin pisar el transform de posicionamiento. */
.orbita-nodo { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }
.orbita-nodo--azul { transform: rotate(-90deg) translate(330px); }
.orbita-nodo--rojo { transform: rotate(20deg) translate(330px); }
.orbita-nodo--navy { transform: rotate(150deg) translate(330px); }
.orbita-dot {
    display: block; border-radius: 50%;
    border: 3px solid #fff; box-shadow: var(--elev-1); box-sizing: content-box;
}
.orbita-nodo--azul .orbita-dot { width: 16px; height: 16px; margin: -11px; background: var(--brand); }
.orbita-nodo--rojo .orbita-dot { width: 13px; height: 13px; margin: -9.5px; background: var(--accent); }
.orbita-nodo--navy .orbita-dot { width: 11px; height: 11px; margin: -8.5px; background: var(--brand-dark); }

.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: var(--brand-dark); }
.hero h1 em, .hero h1 strong {
    font-style: normal; font-weight: inherit; color: var(--brand);
    position: relative; white-space: nowrap;
}
.hero h1 em::after, .hero h1 strong::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: .04em; height: .14em;
    background: var(--accent); border-radius: 99px; opacity: .85; z-index: -1;
    transform: skewY(-.6deg);
}
.hero-sub { color: var(--ink-soft); font-size: 1.16rem; margin-top: 1.3rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* Stats: cifras institucionales con barra de color */
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 3.2rem; border-top: 0; padding-top: 0; }
.hero-stats div {
    display: flex; flex-direction: column; gap: .15rem;
    padding: .3rem 1.1rem .3rem .8rem; border-left: 1px solid var(--hairline);
    position: relative;
}
.hero-stats div::before { content: ''; position: absolute; left: -1px; top: .3rem; height: 1.6rem; width: 3px; border-radius: 3px; }
.hero-stats div:nth-child(3n+1)::before { background: var(--brand); }
.hero-stats div:nth-child(3n+2)::before { background: var(--accent); }
.hero-stats div:nth-child(3n+3)::before { background: var(--brand-dark); }
.hero-stats strong { font-family: var(--ff-display); font-weight: 650; font-size: 1.45rem; color: var(--brand-dark); letter-spacing: -.02em; }
.hero-stats span { color: var(--muted); font-size: .85rem; }
@media (min-width: 1101px) { .hero-stats { flex-wrap: nowrap; width: max-content; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.8rem, 7vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 3.2rem; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head .eyebrow { justify-content: center; }
.section-head--left .eyebrow { justify-content: flex-start; }
.section-head p { margin-top: .8rem; font-size: 1.08rem; }

/* ---------- Cards / grids ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
    background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
    box-shadow: var(--elev-1);
    transition: box-shadow .3s, transform .25s cubic-bezier(.2, .7, .3, 1), border-color .25s;
}
.card:hover { box-shadow: var(--elev-2); }
.service-card { padding: 2.1rem 1.9rem; }
.service-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--elev-3); }
.service-icon {
    width: 58px; height: 58px; display: grid; place-items: center;
    border-radius: 50%; margin-bottom: 1.2rem; font-size: 1.5rem;
    background: var(--brand-light); color: var(--brand);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.service-icon svg { width: 26px; height: 26px; }
/* Rotación de color institucional (azul / rojo / navy) */
.cards-grid > :nth-child(3n+2) .service-icon { background: var(--accent-light); color: var(--accent-dark); }
.cards-grid > :nth-child(3n+3) .service-icon { background: #E9EDF6; color: var(--brand-dark); }
.service-card:hover .service-icon { transform: scale(1.1); }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { font-size: .97rem; }

/* ---------- Congreso card ---------- */
.congreso-card { overflow: hidden; display: flex; flex-direction: column; }
.congreso-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--elev-3); }
.congreso-card-media {
    height: 150px; position: relative; padding: 1.15rem; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    background: var(--c, var(--brand));
    color: #fff;
}
/* Arco de la C como motivo decorativo */
.congreso-card-media::before {
    content: ''; position: absolute; right: -46px; top: -46px;
    width: 150px; height: 150px; border-radius: 50%;
    border: 14px solid rgba(255, 255, 255, .16);
    transition: transform .45s cubic-bezier(.2, .7, .3, 1);
}
.congreso-card:hover .congreso-card-media::before { transform: scale(1.18) rotate(-14deg); }
.congreso-card-badge { position: relative; align-self: flex-start; background: rgba(255,255,255,.22); padding: .22rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 600; font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .07em; }
.congreso-card-badges { position: relative; display: flex; flex-wrap: wrap; gap: .4rem; }
.congreso-card-badge--mod { background: transparent; border: 1px solid rgba(255,255,255,.5); }
.congreso-card-date { position: relative; font-family: var(--ff-display); font-weight: 600; font-size: .95rem; }
.congreso-card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.congreso-card-body h3 { font-size: 1.16rem; color: var(--ink); }
.congreso-card-body p { font-size: .95rem; color: var(--ink-soft); flex: 1; }
.congreso-card-loc { font-size: .87rem; color: var(--muted); display: inline-flex; align-items: center; gap: .38rem; }

/* Íconos SVG en línea (institucionales, sin emoji) */
.icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -.13em; }

.chip { display: inline-block; align-self: flex-start; background: var(--brand-light); color: var(--brand-dark); font-size: .74rem; font-weight: 600; padding: .24rem .75rem; border-radius: 999px; font-family: var(--ff-display); }
.chip--light { background: rgba(255,255,255,.2); color: #fff; }
.chip--star { background: #FCF3D3; color: #8A6D00; display: inline-flex; align-items: center; gap: .3rem; }

/* ---------- Pasos (con conector) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; position: relative; }
.step {
    position: relative; padding: 1.8rem 1.6rem; background: #fff;
    border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--elev-1);
    transition: box-shadow .3s, transform .25s;
}
.step:hover { box-shadow: var(--elev-2); transform: translateY(-3px); }
.step-num {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand); color: #fff;
    font-family: var(--ff-display); font-weight: 600; margin-bottom: 1.1rem;
}
.steps > :nth-child(2) .step-num { background: var(--accent); }
.steps > :nth-child(3) .step-num { background: var(--brand-dark); }
.steps > :nth-child(4) .step-num { background: var(--success); }
.step h4 { margin-bottom: .4rem; }
.step p { font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; color: #fff;
    background: var(--congreso);
    padding: clamp(2.8rem, 5vw, 4.2rem) 0;
}
.cta-band::before {
    content: ''; position: absolute; left: -70px; bottom: -140px;
    width: 320px; height: 320px; border-radius: 50%;
    border: 30px solid rgba(255, 255, 255, .09);
}
.cta-band::after {
    content: ''; position: absolute; right: 8%; top: -120px;
    width: 240px; height: 240px; border-radius: 50%;
    border: 22px solid rgba(255, 255, 255, .07);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: .4rem; font-size: 1.05rem; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--bg-alt); padding: clamp(3.2rem, 6vw, 4.8rem) 0 2.7rem; border-bottom: 1px solid var(--hairline); }
.page-hero p { margin-top: .6rem; font-size: 1.08rem; max-width: 640px; }

/* ---------- Congreso hero (color plano del evento) ---------- */
.congreso-hero {
    position: relative; color: #fff; overflow: hidden;
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(2.8rem, 5vw, 4rem);
    background: linear-gradient(165deg, var(--congreso) 0%, color-mix(in srgb, var(--congreso) 72%, #001226) 100%);
}
.congreso-hero::before {
    content: ''; position: absolute; right: -120px; top: -120px;
    width: 420px; height: 420px; border-radius: 50%;
    border: 38px solid rgba(255, 255, 255, .08);
}
.congreso-hero::after {
    content: ''; position: absolute; left: 4%; bottom: -180px;
    width: 300px; height: 300px; border-radius: 50%;
    border: 26px solid rgba(255, 255, 255, .06);
}
.congreso-hero-overlay { display: none; }
.congreso-hero--img { background-size: cover; background-position: center; }
.congreso-hero--img::before, .congreso-hero--img::after { display: none; }
.congreso-hero--img .congreso-hero-overlay {
    display: block; position: absolute; inset: 0;
    background: linear-gradient(165deg, color-mix(in srgb, var(--congreso) 82%, transparent) 0%, color-mix(in srgb, var(--congreso) 45%, rgba(0, 18, 38, .92)) 100%);
}
.congreso-hero-inner { position: relative; max-width: 840px; z-index: 1; }
.congreso-hero-edicion { font-family: var(--ff-display); font-weight: 500; color: var(--gold); margin: .8rem 0 .3rem; letter-spacing: .05em; }
.congreso-hero h1 { color: #fff; }
.congreso-hero-sub { color: rgba(255,255,255,.88); font-size: 1.15rem; margin-top: 1rem; }
.congreso-hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.5rem; font-family: var(--ff-display); font-weight: 400; color: rgba(255,255,255,.92); }
.congreso-hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.congreso-hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }

/* ---------- Congreso subnav ---------- */
.congreso-subnav {
    position: sticky; top: 76px; z-index: 90;
    background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline); box-shadow: 0 1px 2px rgba(1, 27, 58, .04);
}
.congreso-subnav-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 1rem; overflow-x: auto; }
.congreso-subnav-title { font-family: var(--ff-display); font-weight: 600; color: var(--congreso); white-space: nowrap; }
.congreso-subnav-links { display: flex; align-items: center; gap: .3rem; }
.congreso-subnav-links a:not(.btn) {
    font-family: var(--ff-display); font-weight: 500; color: var(--ink-soft); font-size: .92rem; white-space: nowrap;
    padding: .45rem .9rem; border-radius: 999px; transition: background .18s, color .18s;
}
.congreso-subnav-links a:not(.btn):hover { background: var(--bg-alt); color: var(--congreso); }
.congreso-subnav-links a.btn { color: #fff; margin-left: .5rem; }

/* ---------- Info layout ---------- */
.info-layout { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.prose { color: var(--ink-soft); font-size: 1.04rem; }
.prose p { margin-bottom: 1rem; }
.prose strong { color: var(--ink); }
.info-box, .resumen-box, .ayuda-box, .info-aside .info-box { position: sticky; top: 154px; }
.info-box { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--elev-2); }
.info-box h4 { margin-bottom: 1rem; }
.datos { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.3rem; }
.datos li { display: flex; flex-direction: column; padding-bottom: .7rem; border-bottom: 1px solid var(--hairline); }
.datos li:last-child { border-bottom: 0; padding-bottom: 0; }
.datos span { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-family: var(--ff-display); font-weight: 500; }
.datos strong { color: var(--ink); font-weight: 600; }

/* ---------- Presidente ---------- */
.presidente-card {
    display: grid; grid-template-columns: 180px 1fr; gap: 2.5rem; align-items: center;
    background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
    padding: 2.6rem; box-shadow: var(--elev-2);
}
.presidente-foto { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; background: var(--brand-light); display: grid; place-items: center; border: 4px solid #fff; box-shadow: var(--elev-2); }
.presidente-foto img { width: 100%; height: 100%; object-fit: cover; }
.presidente-firma { margin-top: 1.2rem; }
.avatar-initials { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--ff-display); font-weight: 600; font-size: 2.4rem; color: var(--brand); background: var(--brand-light); }
.avatar-sm { width: 52px; height: 52px; border-radius: 50%; font-size: 1.25rem; flex-shrink: 0; }

/* ---------- Programa ---------- */
.programa-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; justify-content: center; }
.programa-tab {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: .7rem 1.4rem; border: 1px solid var(--line); background: #fff;
    border-radius: 999px; cursor: pointer; font-family: var(--ff-body);
    transition: border-color .2s, background .2s, box-shadow .25s;
}
.programa-tab:hover { border-color: var(--brand); box-shadow: var(--elev-1); }
.programa-tab strong { font-family: var(--ff-display); font-weight: 600; color: var(--ink); }
.programa-tab span { font-size: .78rem; color: var(--muted); }
.programa-tab.is-active { border-color: var(--congreso); background: var(--congreso); }
.programa-tab.is-active strong, .programa-tab.is-active span { color: #fff; }
.programa-panel { display: none; }
.programa-panel.is-active { display: block; animation: fade .35s; }
.programa-dia-titulo { margin-bottom: 1.5rem; font-size: 1.3rem; }
.programa-dia-full { margin-bottom: 3rem; }

.timeline { position: relative; padding-left: 1.1rem; }
.timeline::before {
    content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px;
    background: var(--hairline); border-radius: 2px;
}
.timeline-item { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 1.2rem; padding: 1.15rem 0 1.15rem .7rem; border-bottom: 1px solid var(--hairline); }
.timeline-item::before {
    content: ''; position: absolute; left: -1.35rem; top: 1.7rem;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--congreso); border: 2px solid #fff;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--congreso) 30%, transparent);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-hora { font-family: var(--ff-display); font-weight: 600; color: var(--congreso); display: flex; flex-direction: column; font-size: .95rem; }
.timeline-hora span { color: var(--muted); font-weight: 400; font-size: .8rem; }
.timeline-tipo { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: var(--ff-display); }
.timeline-body h4 { margin: .2rem 0 .4rem; font-size: 1.06rem; color: var(--ink); }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .9rem; color: var(--ink-soft); }
.timeline-meta span { display: inline-flex; align-items: center; gap: .38rem; }
.timeline-meta .icon { color: var(--muted); }
.timeline-desc { font-size: .92rem; margin-top: .5rem; }
.timeline-item--pausa .timeline-body h4 { color: var(--muted); font-weight: 500; }
.timeline-item--pausa { opacity: .8; }
.timeline-item--pausa::before { background: var(--muted); box-shadow: none; }
.timeline-item--ceremonia .timeline-tipo { color: #8A6D00; }
.timeline-item--ceremonia::before { background: var(--gold); box-shadow: 0 0 0 2px rgba(240, 196, 25, .35); }

/* ---------- Disertantes ---------- */
.disertantes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.disertante-card {
    background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--elev-1);
    transition: box-shadow .3s, transform .25s cubic-bezier(.2, .7, .3, 1);
}
.disertante-card:hover { transform: translateY(-4px); box-shadow: var(--elev-3); }
.disertante-card.is-destacado { border-color: var(--gold); }
.disertante-foto { position: relative; aspect-ratio: 1; background: var(--brand-light); overflow: hidden; }
.disertante-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.disertante-card:hover .disertante-foto img { transform: scale(1.04); }
.disertante-star { position: absolute; bottom: .6rem; left: .6rem; background: var(--gold); color: #5A4600; font-size: .72rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; font-family: var(--ff-display); display: inline-flex; align-items: center; gap: .3rem; }
.disertante-body { padding: 1.25rem; }
.disertante-body h3 { font-size: 1.05rem; color: var(--ink); }
.disertante-titulo { color: var(--brand); font-weight: 600; font-size: .89rem; margin-top: .2rem; }
.disertante-inst { color: var(--muted); font-size: .86rem; margin-top: .2rem; }
.disertante-cv { font-size: .88rem; margin-top: .6rem; color: var(--ink-soft); }
.disertantes-list { display: flex; flex-direction: column; gap: 1.5rem; }
.disertante-row { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 1.6rem; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); align-items: start; box-shadow: var(--elev-1); transition: box-shadow .3s; }
.disertante-row:hover { box-shadow: var(--elev-2); }
.disertante-foto--lg { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; }
.disertante-row h3 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; color: var(--ink); }

/* ---------- Comité ---------- */
.grupo-titulo { font-size: 1.1rem; margin: 1.8rem 0 1rem; color: var(--brand-dark); }
.comite-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.comite-card { display: flex; gap: 1rem; align-items: center; padding: 1.05rem 1.25rem; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-sm); box-shadow: var(--elev-1); transition: box-shadow .25s; }
.comite-card:hover { box-shadow: var(--elev-2); }
.comite-card strong { display: block; color: var(--ink); }
.comite-cargo { display: block; color: var(--brand); font-size: .86rem; font-weight: 600; }
.comite-card .muted { font-size: .82rem; }

/* ---------- Aranceles ---------- */
.aranceles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.arancel-card {
    background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
    padding: 1.9rem 1.5rem; text-align: center; display: flex; flex-direction: column;
    box-shadow: var(--elev-1);
    transition: box-shadow .3s, transform .25s, border-color .25s;
}
.arancel-card:hover { border-color: var(--congreso); transform: translateY(-4px); box-shadow: var(--elev-3); }
.arancel-card h3 { font-size: 1.1rem; color: var(--ink); }
.arancel-desc { font-size: .87rem; color: var(--muted); margin: .5rem 0; min-height: 2.4em; }
.arancel-precio { font-family: var(--ff-display); font-weight: 650; font-size: 1.7rem; color: var(--brand-dark); margin: .6rem 0 .2rem; letter-spacing: -.02em; }
.arancel-nota { font-size: .78rem; color: var(--muted); display: block; margin-bottom: 1rem; }
.arancel-card .btn { margin-top: auto; }

/* ---------- Patrocinadores ---------- */
.patrocinadores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.2rem; }
.patro-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 1.6rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; box-shadow: var(--elev-1); transition: box-shadow .25s; }
.patro-card:hover { box-shadow: var(--elev-2); }
.patro-nombre { font-family: var(--ff-display); font-weight: 600; color: var(--ink); }
.patro-nivel { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; font-family: var(--ff-display); }
.patro--platino { border-color: #C4CEDA; box-shadow: var(--elev-2); }
.patro--oro .patro-nivel { color: #8A6D00; }

/* ---------- Inscripción ---------- */
.inscripcion-layout { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.volver { display: inline-block; font-family: var(--ff-display); font-weight: 500; font-size: .9rem; margin-bottom: 1rem; color: var(--ink-soft); }
.volver:hover { color: var(--congreso); }
.form-section-title { font-size: 1.05rem; margin: 2rem 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--brand-light); color: var(--brand-dark); }
.arancel-radios { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.arancel-radio { cursor: pointer; }
.arancel-radio input { position: absolute; opacity: 0; }
.arancel-radio-box { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .18s, background .2s, box-shadow .22s; }
.arancel-radio:hover .arancel-radio-box { border-color: var(--brand); }
.arancel-radio input:focus-visible + .arancel-radio-box { outline: 3px solid color-mix(in srgb, var(--congreso) 35%, transparent); outline-offset: 2px; }
.arancel-radio input:checked + .arancel-radio-box { border-color: var(--congreso); background: var(--brand-light); box-shadow: inset 0 0 0 1px var(--congreso); }
.arancel-radio-nombre { font-family: var(--ff-display); font-weight: 600; color: var(--ink); }
.arancel-radio-desc { font-size: .84rem; color: var(--muted); }
.arancel-radio-precio { font-family: var(--ff-display); font-weight: 600; color: var(--congreso); margin-top: .3rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--ff-display); font-weight: 500; font-size: .9rem; color: var(--ink); }
.field input, .field textarea, .field select {
    font-family: var(--ff-body); font-size: 1rem; padding: .74rem 1rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
    transition: border-color .18s, box-shadow .22s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--congreso, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--congreso, var(--brand)) 16%, transparent); }
.field small { color: var(--muted); font-size: .8rem; }
.form-actions { margin-top: 1.8rem; }
.form-nota { margin-top: .8rem; font-size: .87rem; }

.resumen-box { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--elev-2); margin-bottom: 1.2rem; }
.resumen-congreso { font-family: var(--ff-display); font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.resumen-total { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 2px solid var(--brand-light); }
.resumen-total strong { font-family: var(--ff-display); font-size: 1.4rem; color: var(--congreso); }
.resumen-help { font-size: .8rem; margin-top: .5rem; }
.ayuda-box { background: var(--brand-light); border-radius: var(--radius); padding: 1.4rem; }
.ayuda-box strong { font-family: var(--ff-display); color: var(--brand-dark); }
.ayuda-box p { font-size: .9rem; margin-top: .4rem; }

/* ---------- Confirmación ---------- */
.confirmacion-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.confirmacion-check {
    width: 78px; height: 78px; margin: 0 auto 1.4rem; display: grid; place-items: center;
    border-radius: 50%; background: var(--success); color: #fff;
    box-shadow: 0 12px 28px -10px rgba(30, 142, 90, .45);
    animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirmacion-check svg { width: 36px; height: 36px; }
.confirmacion-sub { font-size: 1.05rem; margin-top: .6rem; }
.codigo-box { background: var(--brand-dark); color: #fff; border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; position: relative; overflow: hidden; }
.codigo-box::before {
    content: ''; position: absolute; right: -60px; top: -60px;
    width: 180px; height: 180px; border-radius: 50%;
    border: 18px solid rgba(255, 255, 255, .07);
}
.codigo-box span { position: relative; font-size: .78rem; color: #9FB4CE; text-transform: uppercase; letter-spacing: .12em; font-family: var(--ff-display); }
.codigo-box strong { position: relative; display: block; font-family: var(--ff-display); font-weight: 650; font-size: 2rem; letter-spacing: .1em; margin-top: .4rem; }
.confirmacion-datos { text-align: left; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--elev-1); }
.confirmacion-datos .datos li { flex-direction: row; justify-content: space-between; align-items: center; }
.confirmacion-datos .datos span { text-transform: none; letter-spacing: 0; font-size: .92rem; font-family: var(--ff-body); }
.estado { padding: .2rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 600; font-family: var(--ff-display); }
.estado--pend { background: #FCF3D3; color: #8A6D00; }
.estado--ok { background: #DBF3E7; color: #14764C; }
.confirmacion-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.contacto-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.contacto-info { background: var(--bg-alt); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.9rem; }
.contacto-datos { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0 1.5rem; }
.contacto-datos li { display: flex; align-items: center; gap: .8rem; }
.contacto-datos li > span {
    display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 10px; background: var(--brand-light); color: var(--brand);
}
.contacto-datos li > span svg { width: 18px; height: 18px; }
.contacto-nota { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.contacto-nota strong { font-family: var(--ff-display); }

/* ---------- Servicios (lista) ---------- */
.servicio-block { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding: 2.3rem 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.servicio-block:last-child { border-bottom: 0; }
.servicio-num {
    display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
    background: var(--brand-light); color: var(--brand);
    font-family: var(--ff-display); font-weight: 650; font-size: 1.4rem;
}
.servicio-block:nth-child(3n+2) .servicio-num { background: var(--accent-light); color: var(--accent-dark); }
.servicio-block:nth-child(3n+3) .servicio-num { background: #E9EDF6; color: var(--brand-dark); }
.servicio-block h2 { font-size: 1.5rem; margin-bottom: .5rem; }

/* ---------- Alerts ---------- */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-size: .95rem; }
.alert ul { margin: .3rem 0 0 1.1rem; }
.alert-error { background: #FCEBEA; color: #A02A2A; border: 1px solid #F3C9C6; }
.alert-success { background: #DBF3E7; color: #14764C; border: 1px solid #B5E3CD; }
.alert-info { background: var(--brand-light); color: var(--brand-dark); border: 1px solid #C7DEF3; }

/* ---------- Empty ---------- */
.empty-state { text-align: center; max-width: 480px; margin: 2rem auto; padding: 3rem 1rem; }
.empty-icon {
    width: 84px; height: 84px; margin: 0 auto 1.2rem; display: grid; place-items: center;
    border-radius: 50%; background: var(--brand-light); color: var(--brand);
}
.empty-icon svg { width: 38px; height: 38px; }
.empty-state h1, .empty-state h2 { margin-bottom: .6rem; }
.empty-state p { margin-bottom: 1.5rem; }

/* ---------- Footer (claro, institucional) ---------- */
.site-footer { background: var(--bg-alt); color: var(--ink-soft); padding: 3.8rem 0 1.6rem; border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-top: 1rem; max-width: 320px; }
.site-footer h4 { color: var(--brand-dark); font-size: .95rem; margin-bottom: 1rem; }
.site-footer a { display: block; color: var(--ink-soft); font-size: .92rem; margin-bottom: .55rem; }
.site-footer a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: .86rem; color: var(--muted); flex-wrap: wrap; gap: .5rem; }
.footer-bottom--simple { border-top: 1px solid var(--line); }
.footer-bottom a.footer-brand-cp { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink-soft); font-size: .9rem; }
.footer-brand-cp-icono { height: 26px; width: auto; }
.footer-brand-cp-texto { height: 15px; width: auto; }
.footer-brand-cp:hover { color: var(--brand); }
.footer-bottom a { color: var(--ink-soft); display: inline; }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- Animaciones base ---------- */
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Los estados de aparición los maneja app.js (Motion).
   Sin JS, todo el contenido queda visible. */

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .cards-grid, .disertantes-grid, .aranceles-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .comite-grid { grid-template-columns: repeat(2, 1fr); }
    .info-layout, .inscripcion-layout, .contacto-layout { grid-template-columns: 1fr; }
    .info-box, .resumen-box { position: static; }
    .presidente-card { grid-template-columns: 1fr; text-align: center; }
    .presidente-foto { margin: 0 auto; }
    .hero-orbita, .hero-bg::after { opacity: .5; }
}
@media (max-width: 680px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; padding: 1rem 24px 1.5rem;
        border-bottom: 1px solid var(--line); box-shadow: var(--elev-3);
        transform: translateY(-130%); transition: transform .3s cubic-bezier(.2, .7, .3, 1);
    }
    body.nav-open .site-nav { transform: translateY(0); }
    .site-nav a:not(.btn) { padding: .85rem .4rem; border-radius: 12px; border-bottom: 1px solid var(--hairline); }
    .site-nav a.btn { margin: .8rem 0 0; }
    .cards-grid, .disertantes-grid, .aranceles-grid, .steps, .comite-grid, .form-grid, .arancel-radios { grid-template-columns: 1fr; }
    .timeline-item { grid-template-columns: 70px 1fr; gap: .8rem; }
    .servicio-block { grid-template-columns: 1fr; gap: .8rem; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .hero-stats div { padding-right: 1.2rem; }
    .hero-orbita, .hero-bg::after { display: none; }
    .disertante-row { grid-template-columns: 1fr; }
}

/* ==================================================================
   Panel de control (admin + organizadores)
   ================================================================== */
.body-panel { background: var(--bg-alt); }
.panel { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

/* --- Sidebar --- */
.panel-sidebar {
    background: var(--brand-dark); color: #fff;
    display: flex; flex-direction: column;
    padding: 1.4rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.panel-brand {
    display: block; padding: 0 .2rem 1.2rem; text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 1rem;
}
.panel-brand-logo {
    display: block; width: 100%; height: auto;
    background: #fff; border-radius: 14px; padding: .7rem .9rem; box-sizing: border-box;
}
.panel-nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.panel-nav a {
    display: flex; align-items: center; gap: .7rem; padding: .68rem .8rem;
    color: rgba(255,255,255,.82); text-decoration: none; border-radius: 12px;
    font-family: var(--ff-display); font-weight: 400; font-size: .94rem;
    transition: background .18s, color .18s;
}
.panel-nav a svg { width: 19px; height: 19px; flex-shrink: 0; }
.panel-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.panel-nav a.is-active { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.panel-badge {
    margin-left: auto; background: var(--accent); color: #fff;
    font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px;
}
.panel-sidebar-foot { border-top: 1px solid rgba(255,255,255,.12); padding-top: .8rem; }
.panel-sidebar-foot a {
    display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem;
    color: rgba(255,255,255,.65); text-decoration: none; border-radius: 12px; font-size: .9rem;
}
.panel-sidebar-foot a svg { width: 18px; height: 18px; }
.panel-sidebar-foot a:hover { color: #fff; background: rgba(255,255,255,.08); }

/* --- Main --- */
.panel-main { display: flex; flex-direction: column; min-width: 0; }
.panel-header {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border-bottom: 1px solid var(--hairline);
    padding: .8rem clamp(1.2rem, 3vw, 2.2rem);
}
.panel-header-user { display: flex; flex-direction: column; line-height: 1.25; }
.panel-header-user strong { font-family: var(--ff-display); font-weight: 600; font-size: .95rem; color: var(--ink); }
.panel-rol { font-size: .78rem; color: var(--muted); }
.panel-content { padding: clamp(1.4rem, 3vw, 2.2rem); max-width: 1200px; width: 100%; }
.panel-page-head { margin-bottom: 1.6rem; }
.panel-page-head h1 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--brand-dark); }
.panel-page-head p { color: var(--muted); margin-top: .2rem; }

/* --- Cards y métricas --- */
.panel-card {
    background: #fff; border: 1px solid var(--hairline); border-radius: 18px;
    padding: 1.4rem 1.5rem; box-shadow: var(--elev-1); margin-bottom: 1.4rem;
}
.panel-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.panel-card-head h2 { font-size: 1.12rem; color: var(--brand-dark); }
.panel-metricas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 1.6rem; }
.metrica { display: flex; flex-direction: column; gap: .15rem; margin-bottom: 0; }
.metrica-label { font-size: .82rem; color: var(--muted); font-family: var(--ff-display); }
.metrica-valor { font-family: var(--ff-display); font-weight: 700; font-size: 1.9rem; color: var(--brand-dark); }
.metrica-valor--money { font-size: 1.35rem; }
.metrica-sub { font-size: .8rem; color: var(--muted); }

/* --- Tablas --- */
.tabla-wrap { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla th {
    text-align: left; font-family: var(--ff-display); font-weight: 600; font-size: .8rem;
    color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
    padding: .6rem .8rem; border-bottom: 1px solid var(--line);
}
.tabla td { padding: .72rem .8rem; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.tabla tbody tr:hover { background: var(--bg-alt); }
.tabla-link { color: var(--brand); font-weight: 600; text-decoration: none; }
.tabla-link:hover { text-decoration: underline; }
.tabla-acciones { display: flex; gap: .4rem; align-items: center; }

/* --- Badges de estado --- */
.badge {
    display: inline-flex; align-items: center; padding: .18rem .6rem; border-radius: 999px;
    font-size: .76rem; font-weight: 700; font-family: var(--ff-display); white-space: nowrap;
}
.badge--pendiente { background: #FDF3D7; color: #8A6D00; }
.badge--pagado, .badge--confirmada, .badge--publicado, .badge--completado { background: #DBF3E7; color: #14764C; }
.badge--beca { background: var(--brand-light); color: var(--brand); }
.badge--gratuito { background: #E8EAF6; color: #3F51B5; }
.badge--anulado, .badge--cancelada, .badge--cancelado, .badge--fallido { background: #FCEBEA; color: #A02A2A; }
.badge--borrador { background: #EDEFF3; color: #55606E; }
.badge--finalizado { background: #E8EAF6; color: #3F51B5; }

/* --- Login del panel --- */
.body-panel-login {
    background: linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 100%);
    min-height: 100vh;
}
.panel-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.panel-login-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--elev-3);
    padding: 2.4rem 2.2rem; width: 100%; max-width: 420px;
}
.panel-login-head { text-align: center; margin-bottom: 1.6rem; }
.panel-login-head img { display: block; width: 220px; max-width: 100%; height: auto; margin: 0 auto .8rem; }
.panel-login-head h1 { font-size: 1.45rem; color: var(--brand-dark); }
.panel-login-head p { color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.panel-login-form { display: flex; flex-direction: column; gap: 1.1rem; }
.panel-login-form .btn { width: 100%; justify-content: center; margin-top: .3rem; }
.panel-login-back {
    display: block; text-align: center; margin-top: 1.4rem;
    color: var(--muted); font-size: .88rem; text-decoration: none;
}
.panel-login-back:hover { color: var(--brand); }

/* --- Cabeceras y tabs de congreso --- */
.panel-page-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.panel-congreso-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.panel-congreso-head h1 { font-size: 1.55rem; color: var(--brand-dark); margin: .35rem 0 .15rem; }
.panel-congreso-head .badge { margin-bottom: .2rem; }
.panel-tabs {
    display: flex; gap: .2rem; flex-wrap: wrap; margin-bottom: 1.4rem;
    border-bottom: 1px solid var(--line);
}
.panel-tabs a {
    display: inline-block; padding: .6rem .95rem; font-family: var(--ff-display);
    font-size: .92rem; font-weight: 500; color: var(--muted); text-decoration: none;
    border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s;
}
.panel-tabs a:hover { color: var(--brand); }
.panel-tabs a.is-active { color: var(--brand); border-bottom-color: var(--brand); }

/* --- Formularios del panel --- */
form.panel-card { display: block; }
.panel-form-sec {
    font-size: 1.05rem; color: var(--brand-dark); margin: 1.8rem 0 1rem;
    padding-bottom: .5rem; border-bottom: 1px solid var(--line);
}
.panel-form-sec:first-of-type { margin-top: 0; }
.panel-checks { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.panel-form-foot {
    display: flex; align-items: center; gap: .8rem; margin-top: 2rem;
    padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.field input[type="color"] { padding: .3rem; height: 46px; cursor: pointer; }
.field input[type="file"] { padding: .55rem .8rem; font-size: .92rem; }

/* Editor de texto enriquecido (Quill) */
.field .ql-toolbar.ql-snow {
    border: 1px solid var(--line); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: #fff; font-family: var(--ff-body);
}
.field .ql-container.ql-snow {
    border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: #fff; font-family: var(--ff-body); font-size: .97rem; color: var(--ink);
}
.field .editor-quill .ql-editor { min-height: 150px; }
.field .editor-quill:focus-within .ql-container.ql-snow {
    border-color: var(--congreso, var(--brand));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--congreso, var(--brand)) 16%, transparent);
}

.panel-cols { display: flex; flex-direction: column; gap: 1.2rem; }

/* --- Filtros y detalle de inscripciones --- */
.panel-filtros {
    display: grid; grid-template-columns: 2fr 2fr 1fr 1fr auto;
    gap: .9rem; align-items: end; margin-bottom: 1.2rem;
}
.panel-filtros-btn { justify-content: flex-end; }
.panel-paginacion { display: flex; align-items: center; gap: .9rem; margin-top: 1.1rem; }
.panel-datos { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1.4rem; }
.panel-datos > div { display: flex; flex-direction: column; gap: .15rem; }
.panel-datos .muted { font-size: .82rem; }
@media (max-width: 960px) {
    .panel-filtros { grid-template-columns: 1fr 1fr; }
    .panel-datos { grid-template-columns: 1fr; }
}

.mensaje-card--nuevo { border-left: 4px solid var(--brand); }
.mensaje-card .panel-card-head h2 { display: inline-flex; align-items: center; gap: .5rem; }

/* --- Acciones rápidas --- */
.panel-acciones { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.panel-accion-estado { display: inline-flex; align-items: center; gap: .55rem; }
.panel-accion-estado select {
    font-family: var(--ff-body); font-size: .95rem; padding: .5rem .8rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.btn-danger { background: var(--accent); color: #fff; }
.btn-danger:hover { background: #C9282F; color: #fff; }

/* --- Responsive del panel --- */
@media (max-width: 960px) {
    .panel { grid-template-columns: 1fr; }
    .panel-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem; }
    .panel-brand { border-bottom: 0; margin-bottom: 0; padding-bottom: .3rem; }
    .panel-brand-logo { width: 170px; padding: .45rem .6rem; }
    .panel-nav { flex-direction: row; flex-wrap: wrap; }
    .panel-sidebar-foot { border-top: 0; padding-top: 0; margin-left: auto; }
    .panel-metricas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .panel-metricas { grid-template-columns: 1fr; }
}

/* ============ Selector de idioma (páginas de congreso) ============ */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    margin-left: .75rem;
    padding: .2rem;
    border: 1px solid var(--gris-borde, #dadce0);
    border-radius: 999px;
}
.lang-switch a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: inherit;
}
.lang-flag {
    width: 16px;
    height: 11px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    flex: none;
}
.lang-switch a.is-active {
    background: var(--congreso, #0152A3);
    color: #fff;
}

/* ============ Panel: pestaña Traducciones ============ */
.trad-original {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: .6rem .75rem;
    font-size: .88rem;
    color: #3c4043;
    max-height: 160px;
    overflow: auto;
    margin-bottom: .5rem;
}
.trad-item {
    padding: .9rem 0;
    border-top: 1px solid #eceef1;
}
.trad-item:first-of-type { border-top: 0; }
.trad-item-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .4rem;
}
.trad-item-head label { font-weight: 600; font-size: .9rem; }
.trad-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    align-items: start;
}
@media (max-width: 900px) { .trad-cols { grid-template-columns: 1fr; } }
.trad-campo input[type="text"],
.trad-campo textarea { width: 100%; }
.trad-acciones {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: .4rem;
}

/* ============ Certificados digitales (público) ============ */
.cert-page { padding: 3rem 0 4rem; }
.cert-container { max-width: 720px; }
.cert-repo-head { margin-bottom: 1.5rem; }
.cert-repo-head h1 { font-family: var(--font-titulos, 'Lexend', sans-serif); font-size: 1.7rem; margin-bottom: .35rem; }
.cert-card {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(1, 41, 93, .06);
}
.cert-verif-head {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #edf1f5;
}
.cert-verif-head h1 { font-family: 'Lexend', sans-serif; font-size: 1.35rem; margin-bottom: .2rem; }
.cert-verif-head p { color: var(--muted, #5f6b76); font-size: .95rem; }
.cert-verif-head.is-ok svg { color: #1a7f4e; flex-shrink: 0; margin-top: .15rem; }
.cert-verif-head.is-bad svg { color: #c0392b; flex-shrink: 0; margin-top: .15rem; }
.cert-datos { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.5rem; margin: 0; }
.cert-datos dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #5f6b76); margin-bottom: .1rem; }
.cert-datos dd { margin: 0; font-weight: 600; }
.cert-codigo { font-family: 'Lexend', sans-serif; letter-spacing: .08em; background: #f2f5f8; padding: .15rem .5rem; border-radius: 6px; }
.cert-acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.cert-nota { margin-top: 1.25rem; font-size: .88rem; }
.cert-busqueda { display: flex; gap: .6rem; margin-bottom: 1.5rem; }
.cert-busqueda input {
    flex: 1;
    padding: .7rem 1rem;
    border: 1px solid #cfd6dd;
    border-radius: 999px;
    font: inherit;
}
.cert-busqueda input:focus { outline: 2px solid var(--congreso, #0152A3); outline-offset: 1px; border-color: transparent; }
.cert-resultados { display: grid; gap: .75rem; }
.cert-resultado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 14px;
    padding: 1rem 1.25rem;
}
.cert-resultado strong { display: block; }
.cert-resultado .muted { font-size: .85rem; }
.cert-resultado-acciones { display: flex; gap: .5rem; }
@media (max-width: 640px) {
    .cert-datos { grid-template-columns: 1fr; }
    .cert-busqueda { flex-direction: column; }
}

/* ---- Panel: selector de plantilla de certificado + vista previa ---- */
.cert-tpl-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: .75rem;
}
.cert-tpl-opt { cursor: pointer; text-align: center; display: block; }
.cert-tpl-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cert-tpl-mini {
    display: block;
    position: relative;
    aspect-ratio: 297 / 210;
    background: #fff;
    border: 2px solid #dfe4e9;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.cert-tpl-opt:hover .cert-tpl-mini { border-color: #b9c6d2; }
.cert-tpl-opt input:checked + .cert-tpl-mini {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(1, 82, 163, .15);
}
.cert-tpl-mini i { position: absolute; }
/* líneas de texto simuladas */
.cert-tpl-mini::before, .cert-tpl-mini::after {
    content: '';
    position: absolute;
    left: 25%;
    right: 25%;
    height: 8%;
    border-radius: 99px;
    background: #cfd6dd;
}
.cert-tpl-mini::before { top: 32%; }
.cert-tpl-mini::after { top: 52%; left: 32%; right: 32%; background: #e3e8ee; }
/* clásico: banda superior */
.cert-tpl-mini--clasico i { inset: 0 0 auto 0; height: 12%; background: var(--brand); }
/* elegante: marco doble */
.cert-tpl-mini--elegante i { inset: 6%; border: 2px double var(--brand); }
/* moderno: banda lateral izquierda */
.cert-tpl-mini--moderno i { inset: 0 auto 0 0; width: 10%; background: var(--brand); }
/* borde: marco completo grueso */
.cert-tpl-mini--borde i { inset: 0; border: 4px solid var(--brand); }
.cert-tpl-nombre { display: block; margin-top: .35rem; font-size: .8rem; font-weight: 500; }
.cert-tpl-opt input:checked ~ .cert-tpl-nombre { color: var(--brand); }

.cert-preview-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    background: #fff;
}
.cert-preview-wrap iframe {
    border: 0;
    transform-origin: 0 0;
    display: block;
    pointer-events: none;
}

/* ---------- Cuenta de participante (login / registro / perfil) ---------- */
.auth-inner { display: flex; justify-content: center; }
.auth-card {
    width: 100%; max-width: 440px; background: #fff;
    border: 1px solid var(--border, #E3E8EF); border-radius: 14px;
    padding: 2.2rem 2rem; box-shadow: var(--elev-1);
}
.auth-card h1 { font-size: 1.7rem; margin: .2rem 0 .3rem; }
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    width: 100%; margin-top: 1.2rem; padding: .7rem 1rem;
    background: #fff; color: #3c4043; font-weight: 600;
    border: 1.5px solid #dadce0; border-radius: 8px;
}
.btn-google:hover { background: #f8faff; border-color: #C9DCF0; }
.auth-sep {
    display: flex; align-items: center; gap: .8rem; margin: 1.3rem 0 .4rem;
    color: var(--ink-soft); font-size: .85rem;
}
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--border, #E3E8EF); }
.auth-card .form { margin-top: .8rem; }
.auth-card .field { margin-top: .9rem; }
.auth-submit { width: 100%; margin-top: 1.3rem; }
.auth-alt { text-align: center; margin: 1.2rem 0 0; font-size: .95rem; }

.perfil-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 2rem; }
.perfil-avatar {
    width: 62px; height: 62px; border-radius: 50%; object-fit: cover;
    border: 2px solid #fff; box-shadow: var(--elev-1); flex: none;
}
.perfil-avatar--letra {
    display: flex; align-items: center; justify-content: center;
    background: var(--brand); color: #fff; font-size: 1.6rem; font-weight: 700;
}
.perfil-sub { font-size: 1.25rem; margin: 0 0 1rem; }
.perfil-lista { display: grid; gap: .8rem; }
.perfil-item {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    background: #fff; border: 1px solid var(--border, #E3E8EF); border-radius: 12px;
    padding: 1rem 1.3rem; color: inherit; transition: border-color .18s, box-shadow .18s;
}
.perfil-item:hover { border-color: var(--brand); box-shadow: var(--elev-1); }
.perfil-item-der { display: flex; align-items: center; gap: .9rem; flex: none; }
.perfil-item-der > span:first-child { font-weight: 700; }

.nav-cuenta { display: inline-flex; align-items: center; gap: .45rem; }
.nav-cuenta img { width: 24px; height: 24px; border-radius: 50%; }

/* --- Canje de código de beca (confirmación de inscripción) --- */
.beca-canje {
    margin-top: 1.2rem;
    padding: 1rem 1.2rem;
    border: 1px dashed var(--border, #d8dee8);
    border-radius: 10px;
    text-align: center;
}
.beca-canje-form {
    display: flex;
    gap: .6rem;
    justify-content: center;
    flex-wrap: wrap;
}
.beca-canje-form input {
    padding: .6rem .9rem;
    border: 1px solid var(--border, #d8dee8);
    border-radius: 8px;
    font: inherit;
    min-width: 220px;
}

/* --- Páginas de servicios (SEO) --- */
.migas { font-size: .88rem; color: var(--muted); margin-bottom: 1.1rem; display: flex; gap: .45rem; flex-wrap: wrap; }
.migas a { color: var(--muted); }
.migas a:hover { color: var(--brand); }
.migas span:last-child { color: var(--ink, #1b2430); }

a.service-card { color: inherit; display: block; }
.service-mas { display: inline-block; margin-top: .8rem; font-weight: 600; font-size: .92rem; color: var(--brand); }

.servicio-link { color: inherit; }
.servicio-link:hover { color: var(--brand); }
.servicio-mas { display: inline-block; margin-top: .7rem; font-weight: 600; font-size: .95rem; }

.flujo { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 760px; }
.flujo-paso { display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; position: relative; padding-bottom: 2.2rem; }
.flujo-paso:last-child { padding-bottom: 0; }
.flujo-paso::before { content: ''; position: absolute; left: 27px; top: 56px; bottom: .4rem; width: 2px; background: var(--hairline, #e3e8f0); }
.flujo-paso:last-child::before { display: none; }
.flujo-num {
    width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--brand); color: #fff; font-family: var(--ff-display); font-weight: 650; font-size: 1.35rem;
}
.flujo-paso:nth-child(2) .flujo-num { background: var(--accent); }
.flujo-paso:nth-child(3) .flujo-num { background: var(--brand-dark); }
.flujo-paso:nth-child(4) .flujo-num { background: var(--success, #1a7f4e); }
.flujo-paso h3 { font-size: 1.18rem; margin: .55rem 0 .35rem; }
.flujo-paso p { color: var(--muted); }

.incluye-grid { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem 2rem; }
.incluye-grid li { display: flex; gap: .6rem; align-items: flex-start; padding: .35rem 0; }
.incluye-grid .icon { width: 20px; height: 20px; flex: 0 0 20px; margin-top: .15rem; color: var(--success, #1a7f4e); }

.faq { max-width: 760px; margin-top: 1.4rem; }
.faq-item { border-bottom: 1px solid var(--hairline, #e3e8f0); padding: .3rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: .8rem 0; list-style: none; position: relative; padding-right: 2rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: .2rem; top: .65rem; font-size: 1.3rem; color: var(--brand); }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding: 0 0 1rem; color: var(--muted); max-width: 660px; }

.otros-servicios { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.otros-servicios-link {
    display: inline-block; padding: .65rem 1.1rem; border: 1px solid var(--hairline, #e3e8f0);
    border-radius: 999px; background: #fff; font-weight: 600; font-size: .95rem;
}
.otros-servicios-link:hover { border-color: var(--brand); }

@media (max-width: 640px) {
    .flujo-paso { grid-template-columns: 44px 1fr; gap: .9rem; }
    .flujo-num { width: 44px; height: 44px; font-size: 1.1rem; }
    .flujo-paso::before { left: 21px; top: 44px; }
}

/* --- Mockup del producto en el hero --- */
.hero-mockup {
    position: absolute; right: 4%; top: 50%; transform: translateY(-72%) rotate(1.5deg);
    width: min(400px, 29vw); z-index: 1;
}
.mockup-browser {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(1, 41, 93, .18), 0 4px 14px rgba(1, 41, 93, .08);
    border: 1px solid var(--hairline, #e3e8f0);
}
.mockup-barra { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f2f5fa; border-bottom: 1px solid var(--hairline, #e3e8f0); }
.mockup-dot { width: 9px; height: 9px; border-radius: 50%; background: #d5dce8; }
.mockup-barra .mockup-dot:first-child { background: var(--accent); opacity: .55; }
.mockup-url {
    flex: 1; margin-left: 8px; background: #fff; border-radius: 999px; border: 1px solid var(--hairline, #e3e8f0);
    font-size: .62rem; color: var(--muted); padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mockup-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 70%);
    padding: 22px 20px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
/* Video real de congreso de fondo, con tinte de marca para legibilidad */
.mockup-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mockup-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(120deg, rgba(1, 41, 93, .82) 0%, rgba(1, 82, 163, .55) 70%, rgba(1, 82, 163, .35) 100%);
}
.mockup-hero > .mockup-chip, .mockup-hero > .mockup-linea, .mockup-hero > .mockup-btn { position: relative; z-index: 2; }
.mockup-chip { background: rgba(255,255,255,.16); color: #fff; font-size: .6rem; font-weight: 600; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; }
.mockup-linea { display: block; border-radius: 6px; background: rgba(255,255,255,.85); }
.mockup-linea--titulo { width: 78%; height: 14px; }
.mockup-linea--sub { width: 55%; height: 8px; background: rgba(255,255,255,.45); }
.mockup-btn { background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; padding: 6px 14px; border-radius: 8px; margin-top: 4px; }
.mockup-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.mockup-card { height: 54px; border-radius: 8px; background: #f2f5fa; border: 1px solid var(--hairline, #e3e8f0); position: relative; }
.mockup-card::after { content: ''; position: absolute; left: 8px; right: 30%; bottom: 9px; height: 6px; border-radius: 4px; background: #dde4ee; }
.mockup-card::before { content: ''; position: absolute; left: 8px; top: 9px; width: 16px; height: 16px; border-radius: 5px; background: #dbe6f5; }
.mockup-flotante {
    position: absolute; display: flex; align-items: center; gap: 7px;
    background: #fff; border: 1px solid var(--hairline, #e3e8f0); border-radius: 999px;
    box-shadow: 0 10px 26px rgba(1, 41, 93, .14);
    font-size: .78rem; font-weight: 600; color: var(--ink, #1b2430); padding: 8px 14px; white-space: nowrap;
}
.mockup-flotante svg { width: 17px; height: 17px; }
.mockup-flotante--pago { left: -9%; bottom: 8%; color: #14683f; }
.mockup-flotante--pago svg { color: #1a9d5c; }
.mockup-flotante--cert { right: -6%; top: 12%; transform: rotate(-1.5deg); color: var(--brand-dark); }
.mockup-flotante--cert svg { color: var(--brand); }
@media (max-width: 1100px) { .hero-mockup { display: none; } }

/* Diferenciales con título + texto */
.incluye-grid--titulos { gap: 1.1rem 2rem; }
.incluye-grid--titulos li { align-items: flex-start; }
.incluye-grid--titulos strong { display: block; margin-bottom: .15rem; color: var(--ink, #1b2430); }
.incluye-grid--titulos p { margin: 0; color: var(--muted); font-size: .95rem; }

/* --- Cuenta regresiva al evento --- */
.countdown { display: flex; gap: .7rem; }
.countdown-unit {
    min-width: 68px; padding: .55rem .5rem .45rem; text-align: center;
    background: #fff; border: 1px solid var(--hairline, #e3e8f0); border-radius: 12px;
}
.countdown-unit strong {
    display: block; font-family: var(--ff-display); font-weight: 700; font-size: 1.7rem;
    color: var(--brand-dark); line-height: 1.15; font-variant-numeric: tabular-nums;
}
.countdown-unit span { font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.countdown-fin { font-weight: 700; font-size: 1.05rem; }
.countdown--light .countdown-unit { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); backdrop-filter: blur(4px); }
.countdown--light .countdown-unit strong { color: #fff; }
.countdown--light .countdown-unit span { color: rgba(255,255,255,.78); }
.countdown--light .countdown-fin { color: #fff; }
.congreso-hero .countdown { margin-top: 1.8rem; }

/* Banner en la home con el próximo evento */
.countdown-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 1.4rem 2rem; flex-wrap: wrap;
    background: linear-gradient(115deg, var(--brand-dark) 0%, var(--brand) 80%);
    border-radius: 16px; padding: 1.5rem 1.9rem; margin-bottom: 2.4rem; color: #fff;
}
.countdown-banner-eyebrow {
    display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: rgba(255,255,255,.7); margin-bottom: .3rem;
}
.countdown-banner-info strong { display: block; font-family: var(--ff-display); font-weight: 650; font-size: 1.3rem; letter-spacing: -.01em; }
.countdown-banner-info > span:last-child { color: rgba(255,255,255,.82); font-size: .92rem; }
@media (max-width: 720px) {
    .countdown-banner { justify-content: center; text-align: center; }
    .countdown-unit { min-width: 58px; }
    .countdown-unit strong { font-size: 1.4rem; }
}

/* ============ Setup wizard de congresos (panel) ============ */
.wizard-steps { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.wizard-step {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px;
    background: #fff; color: var(--muted); font-size: .85rem; font-weight: 600; cursor: pointer;
    font-family: inherit;
}
.wizard-step span { font-weight: 500; }
.wizard-step.is-active { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.wizard-step.is-done { color: var(--brand-dark); }
.wizard-ia { margin-bottom: 1.4rem; border: 1px solid #C7DEF3; background: linear-gradient(180deg, #F4F9FE 0%, #fff 70%); }
.wizard-ia textarea { width: 100%; margin-top: .8rem; resize: vertical; }
.wizard-ia-actions { display: flex; align-items: center; gap: 1rem; margin-top: .8rem; flex-wrap: wrap; }
.wizard-pane { animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.wizard-rows { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0; }
.wizard-row { display: grid; grid-template-columns: 1.4fr 1fr .7fr 1fr auto; gap: .6rem; align-items: center; }
#rowsDisertantes .wizard-row { grid-template-columns: 1.3fr 1fr 1fr .8fr auto; }
.wizard-row--dia { grid-template-columns: .8fr 1.6fr auto; }
.wizard-row--act { grid-template-columns: .55fr .55fr 1.6fr .9fr .8fr 1fr auto; }
.wizard-dia { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin: 1rem 0; }
.wizard-acts { display: flex; flex-direction: column; gap: .5rem; margin: .8rem 0; }
.wizard-checks { flex-direction: row; gap: 1.6rem; flex-wrap: wrap; }
.wizard-checks label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; }
.wizard-resumen { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.wizard-resumen ul { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.3rem; }
.wizard-nav [hidden], .wizard-pane[hidden] { display: none !important; }
.wizard-nav-right { margin-left: auto; }
@media (max-width: 860px) {
    .wizard-row, .wizard-row--act, .wizard-row--dia, #rowsDisertantes .wizard-row { grid-template-columns: 1fr 1fr; }
    .wizard-step span { display: none; }
}

/* ---- Copiloto del organizador ---- */
.copiloto-chat { display: flex; flex-direction: column; gap: .6rem; max-height: 460px; min-height: 220px; overflow-y: auto; padding: 1rem; background: #f6f8fb; border: 1px solid #e3e8f0; border-radius: 10px; }
.copiloto-msg { max-width: 82%; padding: .6rem .85rem; border-radius: 12px; font-size: .93rem; line-height: 1.5; word-wrap: break-word; }
.copiloto-msg--ia { align-self: flex-start; background: #fff; border: 1px solid #e3e8f0; border-bottom-left-radius: 4px; }
.copiloto-msg--yo { align-self: flex-end; background: #0152A3; color: #fff; border-bottom-right-radius: 4px; }
.copiloto-msg--error { background: #fdecec; border-color: #f5c6c6; color: #8a2020; }
.copiloto-msg--espera { color: #667; font-style: italic; }
.copiloto-dots { animation: copDots 1.2s infinite; }
@keyframes copDots { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.copiloto-form { display: flex; gap: .55rem; }
.copiloto-form input { flex: 1; }
.copiloto-email { align-self: flex-start; max-width: 92%; width: 100%; }
.copiloto-email form { background: #fff; border: 1px solid #bcd2ea; border-left: 4px solid #0152A3; border-radius: 10px; padding: .8rem .95rem; }
.copiloto-email-head { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #0152A3; margin-bottom: .4rem; }
.copiloto-email-asunto { font-weight: 700; margin-bottom: .35rem; }
.copiloto-email-cuerpo { white-space: pre-wrap; font-size: .9rem; color: #333; background: #f6f8fb; border-radius: 8px; padding: .6rem .7rem; margin-bottom: .6rem; }
.copiloto-email-acciones { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.copiloto-email-acciones select { padding: .4rem .5rem; border: 1px solid #cfd9e6; border-radius: 8px; font-size: .85rem; }
.copiloto-form .copiloto-clip { background: #eef3f9; color: #33465e; flex: none; width: 36px; height: auto; border: 1px solid #cfd9e6; }
.copiloto-form .copiloto-clip:hover { background: #e0eaf6; color: #0152A3; }
.copiloto-adjunto {
    display: flex; align-items: center; gap: .4rem; margin: 0 .8rem .45rem;
    background: #e8f0fa; border: 1px solid #bcd2ea; border-radius: 999px;
    padding: .25rem .4rem .25rem .7rem; font-size: .8rem; color: #0152A3; align-self: flex-start; max-width: 90%;
}
.copiloto-adjunto[hidden] { display: none; }
.copiloto-adjunto span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copiloto-adjunto button { border: none; background: none; color: #0152A3; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .3rem; }
.copiloto-accion { align-self: flex-start; max-width: 92%; width: 100%; }
.copiloto-accion form { background: #fff; border: 1px solid #f0cfa0; border-left: 4px solid #d97e00; border-radius: 10px; padding: .8rem .95rem; display: grid; gap: .5rem; }
.copiloto-accion .copiloto-email-head { color: #b96a00; margin-bottom: 0; }
.copiloto-accion-resumen { font-size: .92rem; color: #333; }
.copiloto-accion button { justify-self: start; }

/* ---- Subnav agrupado del congreso ---- */
.panel-tabs--grupos { flex-wrap: wrap; align-items: stretch; overflow: visible; }
.ptab-group { position: relative; }
.ptab-group > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: .3rem;
    padding: .6rem .95rem; font-family: var(--ff-display); font-size: .92rem; font-weight: 500;
    color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s;
    user-select: none; white-space: nowrap;
}
.ptab-group > summary::-webkit-details-marker { display: none; }
.ptab-group > summary:hover { color: var(--brand); }
.ptab-group.is-active > summary { color: var(--brand); border-bottom-color: var(--brand); }
.ptab-group > summary svg { transition: transform .15s; }
.ptab-group[open] > summary svg { transform: rotate(180deg); }
.ptab-menu {
    position: absolute; top: 100%; left: 0; z-index: 60; min-width: 210px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 35, 60, .14); padding: .35rem; margin-top: .3rem;
}
.ptab-menu a {
    display: block; padding: .5rem .7rem; border-radius: 7px; font-size: .9rem;
    color: #33465e; text-decoration: none; border-bottom: none; margin: 0;
}
.ptab-menu a:hover { background: #f2f6fb; color: var(--brand); }
.ptab-menu a.is-active { background: #e8f0fa; color: var(--brand); font-weight: 600; }

/* ---- Copiloto flotante ---- */
.copiloto-fab-wrap { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.copiloto-fab {
    display: flex; align-items: center; gap: .5rem; border: none; cursor: pointer;
    background: #0152A3; color: #fff; font-family: var(--ff-display); font-weight: 600; font-size: .95rem;
    padding: .75rem 1.2rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(1, 82, 163, .38);
    transition: transform .15s, box-shadow .15s;
}
.copiloto-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(1, 82, 163, .45); }
.copiloto-panel {
    display: none; width: min(420px, 100vw); height: 100%;
    background: #fff; border-left: 1px solid var(--line);
    box-shadow: -14px 0 40px rgba(15, 35, 60, .22); overflow: hidden;
    flex-direction: column;
}
/* Abierto: panel fijo al borde derecho, alto completo */
.copiloto-fab-wrap.is-abierto { top: 0; right: 0; bottom: 0; gap: 0; }
.copiloto-fab-wrap.is-abierto .copiloto-panel { display: flex; }
.copiloto-fab-wrap.is-abierto .copiloto-fab { display: none; }
.copiloto-panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    padding: .75rem 1rem; background: #0152A3; color: #fff;
}
.copiloto-panel-head strong { display: block; font-family: var(--ff-display); }
.copiloto-panel-head .muted { color: rgba(255, 255, 255, .75); font-size: .78rem; display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copiloto-panel-acciones { display: flex; gap: .3rem; align-items: center; }
.copiloto-icono {
    border: none; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer;
    width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
}
.copiloto-icono:hover { background: rgba(255, 255, 255, .3); }
.copiloto-panel .copiloto-chat { flex: 1; max-height: none; min-height: 0; border: none; border-radius: 0; }
.copiloto-panel .copiloto-form { padding: 0 .8rem .8rem; }
@media (max-width: 640px) {
    .copiloto-fab-wrap { right: .8rem; bottom: .8rem; }
    .copiloto-fab span { display: none; }
}

/* ============ Sección IA (home) + tarjeta servicio IA ============ */
.service-card--ia { border: 1px solid var(--brand); background: linear-gradient(160deg, var(--brand-light), #fff 55%); }
.service-card--ia .service-icon { background: var(--brand); color: #fff; }

.section--ia { background: var(--brand-dark); color: #fff; }
.ia-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.2rem; align-items: center; }
.ia-texto .eyebrow { color: var(--accent-soft); }
.ia-texto h2 { color: #fff; margin: .4rem 0 .8rem; }
.ia-texto > p { color: rgba(255,255,255,.82); max-width: 46ch; }
.ia-lista { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; display: grid; gap: 1rem; }
.ia-lista li { display: grid; gap: .15rem; padding-left: 1.6rem; position: relative; }
.ia-lista li::before { content: ''; position: absolute; left: 0; top: .45rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent-soft); }
.ia-lista strong { color: #fff; font-family: var(--ff-display); font-weight: 600; }
.ia-lista span { color: rgba(255,255,255,.72); font-size: .95rem; }

.ia-chat { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 460px; margin-left: auto; }
.ia-chat-head { display: flex; align-items: center; gap: .55rem; padding: .85rem 1.2rem; background: var(--brand); color: #fff; font-family: var(--ff-display); font-size: .9rem; font-weight: 600; }
.ia-chat-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #6EE7A0; box-shadow: 0 0 0 3px rgba(110,231,160,.3); }
.ia-chat-body { padding: 1.2rem; display: grid; gap: .7rem; }
.ia-msg { padding: .6rem .9rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; max-width: 88%; }
.ia-msg--yo { background: var(--brand); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.ia-msg--ia { background: var(--bg-alt); border-bottom-left-radius: 4px; }
.ia-msg-email { border: 1px solid var(--line); border-radius: 14px; padding: .8rem .95rem; display: grid; gap: .3rem; font-size: .88rem; }
.ia-msg-email-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.ia-msg-email p { margin: 0; color: var(--ink-soft); }
.ia-msg-email-btn { justify-self: start; background: var(--brand); color: #fff; border-radius: 999px; padding: .35rem .95rem; font-size: .82rem; font-weight: 600; margin-top: .25rem; }

@media (max-width: 900px) {
    .ia-grid { grid-template-columns: 1fr; gap: 2rem; }
    .ia-chat { margin: 0 auto; }
}

/* ============ Copiloto: informe imprimible, ir a sección, resaltado ============ */
.copiloto-informe { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .95rem; display: grid; gap: .3rem; background: #fff; }
.copiloto-informe strong { font-size: .95rem; }
.copiloto-informe-meta { color: var(--muted); font-size: .82rem; }
.copiloto-informe .btn { justify-self: start; margin-top: .3rem; }
.copiloto-ir { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.copiloto-ir-seccion { color: var(--muted); font-size: .82rem; }
.cop-destacado { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 8px; animation: copDestacar 1.2s ease-in-out 3; }
@keyframes copDestacar {
    0%, 100% { outline-color: var(--brand); box-shadow: none; }
    50% { outline-color: var(--accent); box-shadow: 0 0 0 8px rgba(237, 50, 55, .12); }
}
