/* Portada (index.html): cabecera editorial con mosaico de fotos.
   Todas las animaciones mueven solo transform y opacity para que sean fluidas. */

:root {
    --hx-navy-900: #0e1638;
    --hx-navy-800: #151f4a;
    --hx-navy-700: #1f2d5c;
    --hx-navy-500: #2f3f8f;
    --hx-red: #e4312b;
    --hx-gold: #f6c843;
    --hx-ink-soft: rgba(255, 255, 255, 0.72);
    --hx-line: rgba(255, 255, 255, 0.12);
    --hx-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hx-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

.hx {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--sh-h, 76px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(120% 90% at 85% 10%, var(--hx-navy-700) 0%, transparent 60%),
        linear-gradient(160deg, var(--hx-navy-800) 0%, var(--hx-navy-900) 70%);
    color: #fff;
}

/* ---------- Fondo ---------- */

.hx-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hx-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--hx-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--hx-line) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.35;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, #000 0%, transparent 75%);
}

.hx-watermark {
    position: absolute;
    left: -0.04em;
    bottom: -0.2em;
    font-size: clamp(9rem, 26vw, 26rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
    user-select: none;
}

/* ---------- Contenido ---------- */

.hx-inner {
    flex: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(28px, 4vh, 56px) clamp(16px, 4vw, 56px) clamp(28px, 4vh, 48px);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.hx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-wrap: balance;
    color: var(--hx-ink-soft);
}

.hx-eyebrow::before {
    content: "";
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--hx-red) 0 50%, var(--hx-gold) 50% 100%);
    flex: none;
}

.hx .hx-title {
    margin: 0 0 28px;
    font-size: clamp(2.6rem, min(5.6vw, 8.4vh), 5.4rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: #fff;
    text-align: left;
}

.hx-title .hx-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
}

.hx-title .hx-line > span {
    display: inline-block;
}

.hx-serif {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--hx-gold);
}

.hx-lead {
    max-width: 34em;
    margin: 0 0 36px;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.65;
    color: var(--hx-ink-soft);
}

.hx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.hx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.5s var(--hx-ease), background-color 0.4s var(--hx-ease), color 0.4s var(--hx-ease), border-color 0.4s var(--hx-ease);
}

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

.hx-btn--primary {
    background: #fff;
    color: var(--hx-navy-800);
}

.hx-btn--primary:hover { background: var(--hx-gold); }

.hx-btn .hx-arrow {
    display: inline-block;
    transition: transform 0.5s var(--hx-ease);
}

.hx-btn:hover .hx-arrow { transform: translateX(4px); }

.hx-btn--ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hx-btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.hx-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 0;
    padding: 24px 0 0;
    list-style: none;
    border-top: 1px solid var(--hx-line);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hx-ink-soft);
}

.hx-values li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hx-values li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hx-red);
}

.hx-values li:nth-child(2)::before { background: var(--hx-gold); }
.hx-values li:nth-child(3)::before { background: #fff; }

/* ---------- Mosaico ---------- */

.hx-mosaic {
    position: relative;
    height: clamp(380px, 54vh, 580px);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

.hx-tile {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    background: var(--hx-navy-700);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
    will-change: transform;
}

.hx-tile--a { grid-row: 1 / 3; }
.hx-tile--b { margin-top: 40px; }
.hx-tile--c { margin-bottom: 40px; }

.hx-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, transparent 55%, rgba(14, 22, 56, 0.45) 100%);
    pointer-events: none;
}

.hx-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 1.6s var(--hx-ease-in-out), transform 9s linear;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.hx-tile img.is-active {
    opacity: 1;
    transform: scale(1.0);
}

.hx-seal {
    position: absolute;
    left: -46px;
    bottom: 34px;
    z-index: 2;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--hx-navy-900);
    box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}

.hx-seal svg {
    position: absolute;
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    animation: hx-spin 22s linear infinite;
}

.hx-seal text {
    fill: rgba(255, 255, 255, 0.8);
    font-size: 8.6px;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.hx-seal img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    transition: transform 0.6s var(--hx-ease);
}

.hx-seal:hover img { transform: scale(1.08) rotate(-6deg); }

@keyframes hx-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Cinta de actividades ---------- */

.hx-ticker {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--hx-line);
    background: rgba(14, 22, 56, 0.55);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hx-track {
    display: flex;
    width: max-content;
    animation: hx-marquee 40s linear infinite;
    will-change: transform;
}

.hx-ticker:hover .hx-track { animation-play-state: paused; }

.hx-track ul {
    display: flex;
    flex: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hx-track li {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 20px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
}

.hx-track li::after {
    content: "✦";
    color: var(--hx-gold);
    font-size: 0.8em;
}

.hx-track li:nth-child(even)::after { color: var(--hx-red); }

@keyframes hx-marquee {
    to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Entrada ---------- */

.hx-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    animation: hx-in 1.1s var(--hx-ease) forwards;
    animation-delay: var(--d, 0s);
}

.hx-title .hx-line > span {
    transform: translate3d(0, 105%, 0);
    animation: hx-rise 1.2s var(--hx-ease) forwards;
    animation-delay: var(--d, 0s);
}

.hx-tile {
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.96);
    animation: hx-in 1.4s var(--hx-ease) forwards;
    animation-delay: var(--d, 0s);
}

.hx-seal {
    opacity: 0;
    animation: hx-pop 1.2s var(--hx-ease) 1.3s forwards;
}

@keyframes hx-in {
    to { opacity: 1; transform: none; }
}

@keyframes hx-rise {
    to { transform: translate3d(0, 0, 0); }
}

@keyframes hx-pop {
    from { opacity: 0; transform: scale(0.6) rotate(-30deg); }
    to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .hx-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hx-mosaic {
        height: clamp(320px, 70vw, 520px);
    }

    .hx-seal {
        left: auto;
        right: 18px;
        bottom: -28px;
        width: 96px;
        height: 96px;
    }

    .hx-seal img { width: 42px; height: 42px; }
}

@media (max-width: 560px) {
    .hx-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
        margin-bottom: 20px;
    }

    .hx-mosaic {
        gap: 10px;
        height: 340px;
    }

    .hx-tile { border-radius: 16px; }
    .hx-tile--b { margin-top: 24px; }
    .hx-tile--c { margin-bottom: 24px; }

    .hx-btn { padding: 13px 22px; }

    .hx-values { gap: 8px 18px; font-size: 0.72rem; }

    .hx-track li { padding: 16px 10px; font-size: 0.85rem; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .hx *,
    .hx *::before,
    .hx *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hx-track { animation: none; }
}

/* ================= Secciones de la portada ================= */

.hs {
    position: relative;
    padding: clamp(72px, 10vw, 140px) 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--c-ink, #1b2340);
}

.hs--tight { padding-bottom: clamp(48px, 6vw, 80px); }
.hs--light { background: #fff; }
.hs--paper { background: var(--c-paper, #f6f7fb); }

.hs--dark {
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(47, 63, 143, 0.35) 0%, transparent 60%),
        linear-gradient(160deg, var(--hx-navy-800) 0%, var(--hx-navy-900) 80%);
    color: #fff;
}

.hs-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-ink-soft, #5b6380);
}

.hs-kicker span {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--hx-navy-900);
    color: var(--hx-gold);
    letter-spacing: 0.04em;
}

.hs--dark .hs-kicker { color: rgba(255, 255, 255, 0.7); }
.hs--dark .hs-kicker span { background: var(--hx-gold); color: var(--hx-navy-900); }

.hs .hs-title {
    margin: 0;
    max-width: 16ch;
    font-size: clamp(2.1rem, 4.6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--hx-navy-900);
    text-align: left;
}

.hs--dark .hs-title { color: #fff; }

/* Los títulos de sección van enteros en la misma letra y color. */
.hs-title em {
    font: inherit;
    color: inherit;
}

.hs-lead {
    margin: 0 0 18px;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.6;
    color: var(--c-ink, #1b2340);
}

.hs--dark .hs-lead { color: rgba(255, 255, 255, 0.82); }

.hs p { line-height: 1.7; }

.hs-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.hs-body p:not(.hs-lead) {
    margin: 0 0 28px;
    color: var(--c-ink-soft, #5b6380);
}

.hs-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: clamp(56px, 7vw, 96px) 0 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.hs-pillars li {
    position: relative;
    padding: 28px 26px 30px;
    border-radius: var(--radius, 18px);
    background: var(--c-paper, #f6f7fb);
    border: 1px solid var(--c-line, #e3e6f0);
    transition: transform 0.6s var(--hx-ease), background-color 0.5s var(--hx-ease), border-color 0.5s var(--hx-ease), box-shadow 0.6s var(--hx-ease), opacity 1s var(--hx-ease);
}

.hs-pillars li:hover {
    transform: translateY(-6px);
    background: #fff;
    border-color: transparent;
    box-shadow: 0 30px 60px -30px rgba(14, 22, 56, 0.35);
}

.hs-num {
    display: block;
    margin-bottom: 36px;
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--c-red, #e4312b);
}

.hs-pillars h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--hx-navy-900);
}

.hs-pillars p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--c-ink-soft, #5b6380);
}

.hs-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

/* Tarjetas de actividades y noticias */
.hs-cards,
.hs-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius, 18px);
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 0 var(--c-line, #e3e6f0);
    transition: transform 0.6s var(--hx-ease), box-shadow 0.6s var(--hx-ease), opacity 1s var(--hx-ease);
}

.hs-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 34px 60px -30px rgba(14, 22, 56, 0.4);
}

.hs-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--hx-navy-700);
}

.hs-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--hx-ease);
}

.hs-card:hover .hs-card-media img { transform: scale(1.05); }

.hs-card-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--hx-navy-900);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hs-card-tag--cpa { background: var(--hx-gold); }

.hs-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 22px 26px;
}

.hs-card-date {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-ink-soft, #5b6380);
}

.hs-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--hx-navy-900);
}

.hs-card-ghost,
.hs-card--ghost {
    min-height: 340px;
    background: linear-gradient(100deg, #eceff6 30%, #f6f7fb 50%, #eceff6 70%);
    background-size: 300% 100%;
    animation: hs-shimmer 1.6s linear infinite;
}

@keyframes hs-shimmer { to { background-position: -150% 0; } }

.hs-empty {
    grid-column: 1 / -1;
    padding: 40px;
    border-radius: var(--radius, 18px);
    border: 1px dashed var(--c-line, #e3e6f0);
    text-align: center;
    color: var(--c-ink-soft, #5b6380);
}

/* CPA */
.hs-cpa-copy .hs-title { margin-bottom: 24px; }

.hs-cpa {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(36px, 6vw, 96px);
    align-items: center;
}

.hs-cpa-photo {
    position: relative;
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.hs-cpa-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hs-cpa-photo figcaption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(14, 22, 56, 0.75);
    color: #fff;
    font-size: 0.8rem;
}

.hs-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    margin: 28px 0 34px;
}

.hs-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s var(--hx-ease), border-color 0.3s var(--hx-ease);
}

.hs-links a:hover {
    color: var(--hx-gold);
    border-color: var(--hx-gold);
}

@media (max-width: 960px) {
    .hs-split,
    .hs-cpa { grid-template-columns: 1fr; }
    .hs-pillars { grid-template-columns: 1fr 1fr; }
    .hs-cards,
    .hs-news { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .hs-pillars,
    .hs-cards,
    .hs-news,
    .hs-links { grid-template-columns: 1fr; }
    .hs-card--ghost:nth-child(n+2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hs-card--ghost { animation: none; }
}

/* ---------- Banda del curso (temporal) ---------- */

.hc {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        repeating-linear-gradient(135deg, rgba(14, 22, 56, 0.05) 0 14px, transparent 14px 28px),
        var(--hx-gold);
    color: var(--hx-navy-900);
    text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 18px 50px -12px rgba(246, 200, 67, 0.55);
    z-index: 2;
    opacity: 0;
    animation: hx-in 0.9s var(--hx-ease) 0.15s forwards;
}

.hc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hx-red);
    animation: hc-pulse 1.8s var(--hx-ease-in-out) infinite;
}

@keyframes hc-pulse {
    0% { box-shadow: 0 0 0 0 rgba(228, 49, 43, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(228, 49, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(228, 49, 43, 0); }
}

.hc-shine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 30%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: hc-shine 4s var(--hx-ease-in-out) 1.2s infinite;
    pointer-events: none;
}

@keyframes hc-shine {
    0% { left: -40%; }
    45%, 100% { left: 130%; }
}

.hc-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    padding-top: 14px;
    padding-bottom: 14px;
}

.hc-badge {
    flex: none;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--hx-navy-900);
    color: var(--hx-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hc-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hc-text strong {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hc-text > span {
    font-size: 0.95rem;
    color: rgba(14, 22, 56, 0.78);
}

.hc-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    background: var(--hx-navy-900);
    color: #fff;
    font-weight: 700;
    transition: transform 0.5s var(--hx-ease), background-color 0.4s var(--hx-ease);
}

.hc:hover .hc-btn {
    transform: translateY(-2px);
    background: var(--hx-red);
}

.hc:hover .ui-arrow { transform: translateX(4px); }

@media (max-width: 760px) {
    .hc-inner {
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .hc-text { flex-basis: calc(100% - 140px); }
    .hc-text > span { display: none; }
    .hc-btn { padding: 10px 18px; font-size: 0.9rem; }
}

/* ---------- Fuentes de noticias ---------- */

.hs-sources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.hs-source {
    min-height: 0;
}

.hs-card.hs-card--ghost.hs-source { min-height: 230px; }

.hs-source-logo {
    display: grid;
    place-items: center;
    height: 130px;
    padding: 22px;
    box-sizing: border-box;
    background: #fff;
    border-bottom: 1px solid var(--c-line, #e3e6f0);
}

.hs-source-logo img {
    max-width: 100%;
    max-height: 86px;
    object-fit: contain;
}

.hs-source .hs-card-body {
    gap: 4px;
    padding: 18px 20px 20px;
}

.hs-source h3 { font-size: 1.05rem; }

.hs-source-host {
    font-size: 0.85rem;
    color: var(--c-ink-soft, #5b6380);
}

.hs-source-cta {
    margin-top: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--c-red, #e4312b);
}

/* ---------- Convenios: cinta de logos ---------- */

.hs-logos {
    overflow: hidden;
    padding: 6px 0 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hs-logos-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: hx-marquee var(--hs-logos-time, 45s) linear infinite;
    will-change: transform;
}

.hs-logos:hover .hs-logos-track { animation-play-state: paused; }

/* Todas las tarjetas miden lo mismo y el logo se ajusta dentro sin deformarse. */
.hs-logo {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 132px;
    padding: 22px 28px;
    box-sizing: border-box;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--c-line, #e3e6f0);
    transition: transform 0.5s var(--hx-ease), box-shadow 0.5s var(--hx-ease), border-color 0.5s var(--hx-ease);
}

.hs-logo:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 24px 50px -28px rgba(14, 22, 56, 0.45);
}

.hs-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Los logos cuadrados o verticales se ven más grandes: se limitan un poco. */
.hs-logo img.is-square { max-height: 92px; }

@media (max-width: 620px) {
    .hs-logo {
        width: 190px;
        height: 110px;
        padding: 18px 22px;
    }

    .hs-logo img.is-square { max-height: 74px; }
}

@media (prefers-reduced-motion: reduce) {
    .hc-shine, .hc-dot { animation: none; }
    .hs-logos-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding: 0 16px; }
}

/* Rótulos de sección del inicio: sin número, con una línea dorada delante. */
.hs .hs-kicker {
    gap: 14px;
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    color: var(--hx-navy-900);
}

.hs .hs-kicker::before {
    content: "";
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: var(--hx-gold);
}

.hs--dark .hs-kicker { color: rgba(255, 255, 255, 0.85); }

/* Foto del CPA en el inicio: recortada a las personas (sin el techo). */
.hs-cpa-photo img {
    aspect-ratio: 16 / 10;
    object-position: center 45%;
}
