/* =========================================================
   "PRÓXIMAMENTE" - La Alianza Apopa
   Destacado grande + miniaturas + puntos.
   Prefijo "aa-prox-" para no chocar con nada más del sitio.
========================================================= */

.aa-prox {
    position: relative;
    padding: 64px 20px 60px;
    background: #fff;
    overflow: hidden;
    isolation: isolate;
}

/* Formas decorativas de fondo, sutiles, solo para dar profundidad */
.aa-prox::before,
.aa-prox::after {
    display: none;
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
    background: radial-gradient(circle, rgba(128, 18, 20, 0.10), rgba(128, 18, 20, 0) 70%);
}
.aa-prox::before {
    width: 480px;
    height: 480px;
    top: -220px;
    left: -160px;
}
.aa-prox::after {
    width: 420px;
    height: 420px;
    bottom: -200px;
    right: -140px;
    background: radial-gradient(circle, rgba(128, 18, 20, 0.07), rgba(128, 18, 20, 0) 70%);
}

.aa-prox-header {
    text-align: center;
    margin-bottom: 30px;
}
.aa-prox-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fbeeee;
    color: var(--aa-primary, #801214);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.aa-prox-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 14px;
}
.aa-prox-header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.aa-prox-header-divider span {
    width: 34px;
    height: 3px;
    background: var(--aa-primary, #801214);
}
.aa-prox-header-divider i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aa-primary, #801214);
}

/* ============ CARRUSEL "PEEK" (varias tarjetas, de punta a punta) ============ */
/* Se "escapa" del <div class="container"> del padre para ocupar TODO el
   ancho de la ventana, no solo el ancho del contenido. */
.aa-prox-carousel-wrap {
    position: relative;
    width: 100%;
    margin-left: 0;
    margin-bottom: 24px;
}

.aa-prox-carousel {
    overflow: hidden;
}

.aa-prox-track {
    display: flex;
    gap: 1px; /* casi pegadas, solo un hilo de separación entre tarjetas */
    overflow-x: auto;
    scroll-snap-type: none;
    scroll-behavior: auto;
    padding: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.aa-prox-track::-webkit-scrollbar { display: none; }

@keyframes aa-prox-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-1 * var(--aa-loop-distance))); }
}

.aa-prox-track-continuo {
    overflow: visible;
    scroll-snap-type: none;
    scroll-behavior: auto;
    animation: aa-prox-marquee var(--aa-loop-duration) linear infinite;
}
.aa-prox-track-pausado {
    animation-play-state: paused;
}

.aa-prox-card {
    position: relative;
    flex: 0 0 82%;
    scroll-snap-align: center;
    height: 380px;
    border-radius: 0; /* esquinas rectas, no redondeadas */
    overflow: hidden;
    background: #150a0a;
}

.aa-prox-card-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: none;
}
.aa-prox-card.aa-active .aa-prox-card-bg {
    transform: none;
}

/* ---- Tarjeta de EVENTO: degradado + título/CTA encima ---- */
.aa-prox-card.aa-prox-card-evento {
    flex: 0 0 auto;
    width: auto;
    min-width: 220px;
}

.aa-prox-card-evento::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 5, 5, 0) 35%, rgba(10, 5, 5, .55) 70%, rgba(8, 4, 4, .88) 100%);
    z-index: 2;
    pointer-events: none;
}
.aa-prox-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 26px 30px 28px;
}
.aa-prox-card-fecha {
    color: #ffd4d4;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .6px;
    margin-bottom: 8px;
}
.aa-prox-card-content h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
    max-width: 90%;
}
.aa-prox-card-cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.aa-prox-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .95);
    color: #1a1a1a;
    font-size: .85rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.aa-prox-card-btn:hover {
    background: #fff;
    color: #1a1a1a;
    transform: translateY(-1px);
}
.aa-prox-card-lugar {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .85);
    font-size: .82rem;
    font-weight: 600;
}

/* ---- Tarjeta de ANUNCIO: solo la foto, sin texto encima ----
   Ojo: acá NO forzamos flex-basis fijo como en las de evento — el ancho
   sale solo, según la proporción real de la imagen (si es cuadrada, la
   tarjeta queda cuadrada; si es vertical, queda angosta; etc.). El
   selector compuesto (dos clases) es a propósito, para que esto le gane
   siempre al "flex-basis" genérico de .aa-prox-card, sin importar el
   orden en que aparezcan las reglas (incluida la de mobile más abajo). */
.aa-prox-card.aa-prox-card-anuncio {
    flex: 0 0 auto;
    width: auto;
    min-width: 220px;
    background: #150a0a;
}
/* Sin max-width en la tarjeta ni object-fit acá: cualquiera de los dos
   generaba el marco negro arriba/abajo en imágenes horizontales anchas
   (el navegador "letterboxea" cuando el ancho no calza exacto con la
   altura fija). Con solo height:100%+width:auto, el ancho sale siempre
   exacto para esa altura, sin recorte ni barras. */
.aa-prox-card-img {
    height: 100%;
    width: auto;
    display: block;
}

.aa-prox-card-linkfull {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.aa-prox-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--aa-primary, #801214);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 4;
}

.aa-prox-card-anuncio-meta {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .8);
}
.aa-prox-card-anuncio-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ---- Pausar/reanudar el autoplay ---- */
.aa-prox-toggle {
    position: absolute;
    bottom: 34px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(20, 10, 10, .55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 5;
    backdrop-filter: blur(4px);
    transition: background .2s ease;
}
.aa-prox-toggle:hover {
    background: rgba(20, 10, 10, .8);
}

/* ============ PUNTOS ============ */
.aa-prox-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.aa-prox-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background .2s ease, width .2s ease;
}
.aa-prox-dot.aa-active {
    background: var(--aa-primary, #801214);
    width: 22px;
    border-radius: 4px;
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
    .aa-prox { padding: 44px 14px 40px; }
    .aa-prox-header h2 { font-size: 1.7rem; }

    .aa-prox-track { padding: 0; gap: 1px; }
    .aa-prox-card { flex-basis: 88%; height: 260px; }

    .aa-prox-card-content { padding: 20px 20px 22px; }
    .aa-prox-card-content h3 { font-size: 1.25rem; margin-bottom: 12px; }
    .aa-prox-card-cta-row { gap: 10px; }
    .aa-prox-card-btn { padding: 9px 16px; font-size: .8rem; }
    .aa-prox-card-lugar { display: none; } /* no entra cómodo junto al botón en mobile */

    .aa-prox-toggle { bottom: 26px; right: 10px; }
}

.aa-prox-card-agenda { text-shadow:none; min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px; align-self:flex-end; }
