/* ============================================================
   CARRUSEL DE INICIO (HeroCarouselService)
   Variables inline desde el panel:
   --hc-g1/--hc-g2 gradiente · --hc-overlay/--hc-overlay-op overlay
   --hc-text color de texto · --hc-accent color de acento
   Especificidad ≥ (0,2,0) para ganar al reset `.eib-site *`.
   ============================================================ */
.wc-hc.wc-hc {
    position: relative;
    overflow: hidden;
    color: var(--hc-text, #fff);
    background: linear-gradient(115deg, var(--hc-g1, #24588d) 0%, var(--hc-g2, #008cba) 120%);
    --hc-min: 640px;
    --hc-pad-top: 84px;
    --hc-pad-bottom: 110px;
}
.wc-hc.wc-hc--h-compact { --hc-min: 480px; --hc-pad-top: 56px; --hc-pad-bottom: 90px; }
.wc-hc.wc-hc--h-medium  { --hc-min: 560px; --hc-pad-top: 72px; --hc-pad-bottom: 100px; }
.wc-hc.wc-hc--h-tall    { --hc-min: 660px; }
.wc-hc.wc-hc--h-screen  { --hc-min: calc(100vh - 140px); }

/* Textura sutil (misma idea del hero EIB) */
.wc-hc.wc-hc::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 80% at 85% 20%, rgba(255, 255, 255, .10), transparent 60%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 90px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 90px);
    z-index: 0;
}

/* Pila de slides: todos ocupan la misma celda → altura = slide más alto */
.wc-hc .wc-hc__track {
    position: relative;
    display: grid;
    z-index: 1;
}
.wc-hc .wc-hc__slide {
    grid-area: 1 / 1;
    position: relative;
    min-height: var(--hc-min);
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility 0s linear .7s, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.wc-hc .wc-hc__slide.is-active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    z-index: 2;
}
.wc-hc--fx-slide .wc-hc__slide { transform: translateX(6%); }
.wc-hc--fx-slide[data-dir="prev"] .wc-hc__slide { transform: translateX(-6%); }
.wc-hc--fx-slide .wc-hc__slide.is-active { transform: translateX(0); }

/* Imagen de fondo + overlay */
.wc-hc .wc-hc__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 7s ease-out;
}
.wc-hc .wc-hc__slide.is-active .wc-hc__bg { transform: scale(1); }
.wc-hc .wc-hc__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--hc-overlay, #0e2233) 0%, transparent 110%),
        var(--hc-overlay, #0e2233);
    opacity: var(--hc-overlay-op, .55);
}

/* Contenido */
.wc-hc .wc-hc__inner {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    padding: var(--hc-pad-top) 28px var(--hc-pad-bottom);
}
.wc-hc .wc-hc__slide--side .wc-hc__inner {
    grid-template-columns: 1.05fr .95fr;
}
.wc-hc .wc-hc__content { max-width: 640px; }
.wc-hc--align-center .wc-hc__slide:not(.wc-hc__slide--side) .wc-hc__content {
    margin: 0 auto;
    text-align: center;
}
.wc-hc--align-center .wc-hc__slide:not(.wc-hc__slide--side) .wc-hc__cta { justify-content: center; }

.wc-hc .wc-hc__eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--hc-accent, #f4ce46);
    margin-bottom: 14px;
}
.wc-hc .wc-hc__title {
    font-family: var(--display, var(--font-heading, 'Fraunces', Georgia, serif));
    font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.04;
    letter-spacing: -.02em;
    color: var(--hc-text, #fff);
    margin: 0;
}
.wc-hc .wc-hc__title em,
.wc-hc .wc-hc__title i {
    font-style: italic;
    color: var(--hc-accent, #f4ce46);
}
.wc-hc .wc-hc__text {
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--hc-text, #fff);
    opacity: .88;
    max-width: 32em;
    margin: 22px 0 32px;
}
.wc-hc--align-center .wc-hc__slide:not(.wc-hc__slide--side) .wc-hc__text { margin-left: auto; margin-right: auto; }

/* Botones */
.wc-hc .wc-hc__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.wc-hc .wc-hc__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .9rem;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform .22s, background .22s, border-color .22s, box-shadow .22s;
    cursor: pointer;
}
.wc-hc .wc-hc__btn:hover { transform: translateY(-2px); }
.wc-hc .wc-hc__btn--amarillo {
    background: var(--hc-accent, #f4ce46);
    color: #0e2233;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.wc-hc .wc-hc__btn--light {
    background: rgba(255, 255, 255, .14);
    color: var(--hc-text, #fff);
    border-color: rgba(255, 255, 255, .28);
    backdrop-filter: blur(6px);
}
.wc-hc .wc-hc__btn--light:hover { background: rgba(255, 255, 255, .22); }
.wc-hc .wc-hc__btn--outline {
    background: transparent;
    color: var(--hc-text, #fff);
    border-color: currentColor;
}
.wc-hc .wc-hc__btn--outline:hover { background: rgba(255, 255, 255, .1); }
.wc-hc .wc-hc__btn--primary {
    background: var(--hc-g1, #24588d);
    color: #fff;
    border-color: rgba(255, 255, 255, .25);
}

/* Imagen lateral (tarjeta) */
.wc-hc .wc-hc__media {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
    aspect-ratio: 4 / 4.4;
    max-height: 560px;
    background: var(--hc-g1, #24588d);
}
.wc-hc .wc-hc__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wc-hc .wc-hc__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 34, 51, 0) 40%, rgba(14, 34, 51, .85));
    pointer-events: none;
}
.wc-hc .wc-hc__tag {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    background: var(--hc-accent, #f4ce46);
    color: #0e2233;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .1em;
    padding: 6px 13px;
    border-radius: 30px;
    text-transform: uppercase;
}
.wc-hc .wc-hc__caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 1;
    color: #fff;
}
.wc-hc .wc-hc__caption b {
    font-family: var(--display, var(--font-heading, 'Fraunces', Georgia, serif));
    font-size: 1.25rem;
    font-weight: 600;
    display: block;
}
.wc-hc .wc-hc__caption span { font-size: .85rem; color: #cfe1f2; }

/* Flechas */
.wc-hc .wc-hc__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(14, 34, 51, .35);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .2s, transform .2s, opacity .2s;
    opacity: .85;
}
.wc-hc .wc-hc__arrow:hover { background: rgba(14, 34, 51, .6); opacity: 1; }
.wc-hc .wc-hc__arrow:focus-visible { outline: 2px solid var(--hc-accent, #f4ce46); outline-offset: 2px; }
.wc-hc .wc-hc__arrow--prev { left: 18px; }
.wc-hc .wc-hc__arrow--next { right: 18px; }

/* Puntos */
.wc-hc .wc-hc__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--hc-dots-bottom, 66px);
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.wc-hc .wc-hc__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: width .25s, background .25s;
}
.wc-hc .wc-hc__dot.is-active {
    width: 28px;
    border-radius: 6px;
    background: var(--hc-accent, #f4ce46);
}
.wc-hc .wc-hc__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wc-hc:not(:has(.wc-hc__acred)) { --hc-dots-bottom: 22px; }

/* Barra inferior (acreditaciones) */
.wc-hc .wc-hc__acred {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    background: rgba(14, 34, 51, .35);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.wc-hc .wc-hc__acred .wrap {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 14px 28px;
    flex-wrap: wrap;
    font-size: .84rem;
    color: #cfe1f2;
}
.wc-hc .wc-hc__acred b { color: #fff; }

/* Un solo slide: sin controles, sin animación */
.wc-hc--single .wc-hc__slide { transition: none; transform: none; }

/* Responsive */
@media (max-width: 960px) {
    .wc-hc .wc-hc__slide--side .wc-hc__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .wc-hc .wc-hc__media {
        aspect-ratio: 16 / 10;
        max-height: 360px;
    }
    .wc-hc .wc-hc__arrow { width: 40px; height: 40px; }
    .wc-hc .wc-hc__arrow--prev { left: 10px; }
    .wc-hc .wc-hc__arrow--next { right: 10px; }
}
@media (max-width: 640px) {
    .wc-hc.wc-hc { --hc-min: 0; --hc-pad-top: 56px; --hc-pad-bottom: 96px; }
    .wc-hc.wc-hc--h-screen { --hc-min: 0; }
    .wc-hc .wc-hc__inner { padding-left: 20px; padding-right: 20px; }
    .wc-hc .wc-hc__title { font-size: clamp(2rem, 9vw, 2.6rem); }
    .wc-hc .wc-hc__text { font-size: 1rem; margin: 16px 0 24px; }
    .wc-hc .wc-hc__btn { width: 100%; justify-content: center; }
    /* La barra inferior se oculta en móvil: a dos líneas se solapaba con los botones */
    .wc-hc .wc-hc__acred { display: none; }
    .wc-hc .wc-hc__arrow { top: auto; bottom: 36px; transform: none; }
    .wc-hc .wc-hc__dots { --hc-dots-bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) {
    .wc-hc .wc-hc__slide,
    .wc-hc .wc-hc__bg,
    .wc-hc .wc-hc__btn,
    .wc-hc .wc-hc__dot { transition: none; }
    .wc-hc .wc-hc__bg { transform: none; }
}
