/* =========================================================
   home-info.css — "Información importante": carrusel con foto a tarjeta completa
   (estilo hero tipo Gestora). Usa --gamq-button de home-buttons.css.
   ========================================================= */

/* El fondo de la sección pasa a ser claro: la foto vive DENTRO de la tarjeta */
.important-info-section.info-hero-section {
    padding: 32px 0 40px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
}
.info-hero-section .fancy_heading .title { color: #1e2a3a; text-shadow: none; }
.info-hero-section .fancy_heading .inside,
.info-hero-section .fancy_heading .inside .big { color: #5b6b7f !important; text-shadow: none; }

/* ---------- tarjeta ---------- */
.info-hero {
    position: relative;
    width: min(100% - 48px, 1240px);
    margin: 20px auto 0;
    overflow: hidden;
    color: #fff;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    border-radius: 36px;
    background: #0b2638;
    box-shadow: 0 22px 50px rgba(15, 40, 70, .22);
}

.info-hero__slides { position: relative; display: grid; }

.info-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
    min-height: clamp(420px, 60vh, 500px);
    padding: clamp(24px, 3.5vw, 48px) clamp(24px, 4vw, 56px) 68px;
    box-sizing: border-box;
    /* foto a tarjeta completa + degradado solo para que el texto se lea */
    background-image:
        linear-gradient(90deg, rgba(3, 12, 22, .78) 0%, rgba(3, 12, 22, .5) 42%, rgba(3, 12, 22, .06) 100%),
        linear-gradient(0deg, rgba(3, 12, 22, .45) 0%, rgba(3, 12, 22, 0) 35%),
        var(--slide-img, url(/assets/images/home/hero/section_urku.png));
    background-size: cover;
    background-position: var(--slide-pos, center);
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility 0s linear .7s;
}
.info-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }

/* ---------- texto ---------- */
.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    background: rgba(20, 24, 30, .5);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.info-chip i { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #55d98a; }

.info-slide__title {
    margin: 18px 0 12px;
    max-width: 11em;
    color: #fff;
    font-size: clamp(32px, 4.5vw, 58px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.025em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.info-slide__lead {
    max-width: 32em;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.info-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none !important;
    background: var(--gamq-button, #06a0e2);
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(6, 160, 226, .35);
    transition: background .2s ease, transform .2s ease;
}
.info-btn:hover { background: var(--gamq-button-hover, #6657d9); transform: translateY(-2px); }
.info-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- tarjeta de cristal con el mapa (como "Oficina Virtual") ---------- */
.info-glass {
    min-width: 0;
    padding: 12px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
}

.info-frame {
    position: relative;
    height: clamp(280px, 44vh, 400px);
    overflow: hidden;
    background: #0f172a;
    border-radius: 18px;
}
.info-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.info-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 10px;
    padding: 4px;
    background: rgba(0, 0, 0, .28);
    border-radius: 999px;
}
.info-tabs button {
    flex: 1;
    padding: 10px 14px;
    color: rgba(255, 255, 255, .88);
    font: 700 13px/1 "Roboto", Arial, sans-serif;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease;
}
.info-tabs button[aria-selected="true"] { color: #fff; background: var(--gamq-button, #06a0e2); }
.info-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.info-tabs + .info-frame { height: clamp(250px, 40vh, 356px); }
.info-tabs + .info-frame iframe { visibility: hidden; }
.info-tabs + .info-frame iframe.is-on { visibility: visible; }

/* ---------- navegación ---------- */
.info-hero__dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 3;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}
.info-dot {
    width: 9px; height: 9px; padding: 0;
    background: rgba(255, 255, 255, .5);
    border: 0; border-radius: 999px; cursor: pointer;
    transition: width .3s ease, background .3s ease;
}
.info-dot[aria-current="true"] { width: 40px; background: #fff; }
.info-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.info-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px; height: 46px;
    color: #fff; font-size: 14px;
    background: rgba(20, 24, 30, .4);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background .2s ease;
}
.info-arrow--prev { left: 20px; }
.info-arrow--next { right: 20px; }
.info-arrow:hover { background: var(--gamq-button, #06a0e2); }
.info-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- tablet / móvil ---------- */
@media (max-width: 900px) {
    .info-slide {
        grid-template-columns: 1fr;
        align-content: start;
        gap: 20px;
        min-height: 0;
        padding: 24px 20px 58px;
        background-image:
            linear-gradient(180deg, rgba(3, 12, 22, .72) 0%, rgba(3, 12, 22, .55) 100%),
            var(--slide-img, url(/assets/images/home/hero/section_urku.png));
    }
    .info-slide__title { max-width: none; margin: 14px 0 10px; }
    .info-slide__lead { margin-bottom: 16px; }
    .info-arrow { display: none; }
}
@media (max-width: 767px) {
    .important-info-section.info-hero-section { padding: 24px 0 32px; }
    .info-hero { width: calc(100% - 16px); border-radius: 20px; margin-top: 14px; }
    .info-btn { width: 100%; justify-content: center; }
    .info-glass { padding: 8px; border-radius: 20px; }
    .info-frame, .info-tabs + .info-frame { height: 260px; border-radius: 14px; }
    .info-tabs button { padding: 9px 6px; font-size: 12px; }
    .info-hero__dots { bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .info-slide, .info-slide.is-active, .info-dot, .info-btn { transition: none; }
}


/* =========================================================
   Tira de accesos DENTRO de la tarjeta (marquee hacia la derecha)
   ========================================================= */
.info-strip {
    position: relative;
    z-index: 2;
    padding: 12px 0 16px;
    background: linear-gradient(180deg, rgba(5, 18, 31, .9) 0%, #06141f 100%);
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.info-strip__label {
    margin: 0 0 9px;
    padding-left: clamp(28px, 6vw, 84px);
    color: rgba(255, 255, 255, .72);
    font: 700 11.5px/1 "Roboto", Arial, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.info-strip__viewport {
    overflow: hidden;
    padding: 4px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.info-strip__track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: info-strip-right var(--strip-time, 40s) linear infinite;
}

.info-strip__track > .hero-banner {
    flex: 0 0 clamp(240px, 23vw, 320px);
    width: auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}

.info-strip:hover .info-strip__track,
.info-strip:focus-within .info-strip__track { animation-play-state: paused; }

/* Izquierda → derecha: el set va de -ancho a 0 y se repite sin saltos */
@keyframes info-strip-right {
    from { transform: translateX(calc(-1 * var(--strip-w, 50%))); }
    to   { transform: translateX(0); }
}

@media (max-width: 767px) {
    .info-strip { padding: 12px 0 14px; }
    .info-strip__label { padding-left: 22px; }
    .info-strip__track > .hero-banner { flex-basis: 74vw; }
}

@media (prefers-reduced-motion: reduce) {
    .info-strip__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .info-strip__track { animation: none; }
}