/* ==========================================================================
   Portada (index.php) — rediseño por capas.

   Se carga DESPUÉS de estilo.css y solo la usa la portada. Regla de color
   de toda la portada:
     · VERDE (--accion) = acción: todo botón principal, enlace «Ver todo»,
       pestaña/chip activo, etiquetas de tiempo y las barras de los títulos.
     · Los demás colores (violeta de Mención especial, dorado de Hazte un
       Hit, verde agua de Salud mental, violeta oscuro de Quito Secreto)
       solo IDENTIFICAN la sección — en etiquetas, bordes y fondos —, nunca
       pintan un botón principal.
   Nada de estilos en línea: el CSP del sitio no los permite.
   ========================================================================== */

/* ---------- Accesibilidad / utilidades ---------- */
.sr-solo {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.portada { padding-bottom: 24px; }
.portada .oculto, .portada [hidden] { display: none !important; }

/* ---------- Cabecera compacta ---------- */
.cab-portada { padding: 14px 16px 8px; }
.cab-portada .logo { width: min(150px, 38vw); margin: 0 auto 4px; }
.cab-portada .subtitulo { font-size: 0.82rem; margin-top: 4px; max-width: 420px; line-height: 1.45; }

/* ---------- Navegación por capas (chips pegajosos) ---------- */
.portada-chips {
    position: sticky; top: 0; z-index: 40;
    background: rgba(18, 18, 18, 0.94);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--borde);
}
.portada-chips-fila {
    max-width: 720px; margin: 0 auto; display: flex; gap: 8px;
    overflow-x: auto; padding: 9px 16px; scrollbar-width: none;
}
.portada-chips-fila::-webkit-scrollbar { display: none; }
.portada-chip {
    flex: none; padding: 7px 16px; border-radius: 999px;
    border: 1px solid var(--borde); background: var(--fondo-tarjeta);
    color: var(--texto-tenue); font-size: 0.86rem; font-weight: 700;
    text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.portada-chip.activo { background: var(--accion); border-color: var(--accion); color: #04170a; }
@media (hover: hover) and (pointer: fine) {
    .portada-chip:not(.activo):hover { color: var(--texto); border-color: var(--texto-tenue); }
}

/* ---------- Buscador + Conócenos en una fila ---------- */
.portada .buscador-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.portada .buscador-wrap #buscador-eventos { flex: 1 1 0; min-width: 0; }
.portada .buscador-wrap .resultados-busqueda { flex: 0 0 100%; }

/* ---------- Capas ---------- */
.capa { margin-top: 30px; scroll-margin-top: 58px; }
.capa-t { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.capa-t h2 {
    position: relative; padding-left: 13px; margin: 0;
    font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em;
}
.capa-t h2::before {
    content: ""; position: absolute; left: 0; top: 0.14em; bottom: 0.14em;
    width: 4px; border-radius: 3px; background: var(--accion);
}
.capa-t span { color: var(--texto-tenue); font-size: 0.8rem; }
.portada .seccion-destacados { margin-top: 26px; }
.portada .capa > .seccion-destacados:first-of-type { margin-top: 18px; }
.sub-hoy { font-size: 0.9rem; font-weight: 700; color: var(--texto-suave, #c9c9c9); margin: 6px 0 10px; }

/* Carrusel genérico de tarjetas */
.carrusel-portada {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding: 0 16px; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.carrusel-portada::-webkit-scrollbar { display: none; }

/* Botones de fila */
.acciones-portada { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.acciones-portada .btn { min-height: 40px; padding: 9px 16px; font-size: 0.9rem; text-decoration: none; }
.btn-verde-contorno {
    background: transparent; border-color: var(--accion); color: var(--accion);
}
@media (hover: hover) and (pointer: fine) {
    .btn-verde-contorno:hover { background: rgba(34, 197, 94, 0.12); }
}
.btn-chico { min-height: 36px !important; padding: 7px 13px !important; font-size: 0.82rem !important; }

/* Etiquetas (pills) */
.pill-p {
    display: inline-block; align-self: flex-start; font-size: 0.66rem; font-weight: 800;
    letter-spacing: 0.07em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
    background: var(--fondo-tarjeta-hover); border: 1px solid var(--borde); color: var(--texto);
}
.pill-hoy { background: var(--accion); border-color: var(--accion); color: #04170a; }
.pill-nuevo { background: var(--accion); border-color: var(--accion); color: #04170a; }
.pill-agotado { background: #3a1a1a; border-color: #6a2a2a; color: #ff9c9c; }

/* ---------- «Desde tu última visita» ---------- */
.desde-visita { margin-top: 18px; }
.desde-visita .tarjeta-novedad {
    flex: 0 0 150px; scroll-snap-align: start; display: block; text-decoration: none; color: inherit;
    background: var(--fondo-tarjeta); border-radius: 12px; overflow: hidden;
    transition: transform 0.2s var(--ease-suave), box-shadow 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .tarjeta-novedad:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55); }
}
.tarjeta-novedad .m { position: relative; aspect-ratio: 4 / 5; background: #0f0f0f; }
.tarjeta-novedad .m img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tarjeta-novedad .m .pill-p { position: absolute; left: 8px; top: 8px; }
.tarjeta-novedad .c { padding: 10px 11px 13px; display: flex; flex-direction: column; gap: 3px; }
.tarjeta-novedad .c b { font-size: 0.9rem; line-height: 1.25; }
.tarjeta-novedad .c small { color: var(--texto-tenue); font-size: 0.74rem; }

/* ---------- Hoy ---------- */
.hoy-hero {
    display: flex; flex-direction: column; background: var(--fondo-tarjeta);
    border-radius: 14px; overflow: hidden; margin-bottom: 12px;
}
.hoy-hero-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0c0c0c; }
.hoy-hero-img .fondo {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    filter: blur(26px) brightness(0.5); transform: scale(1.25);
}
.hoy-hero-img .frente { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.hoy-hero-info { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; }
.hoy-hero-info h3 {
    margin: 0; font-size: clamp(1.45rem, 5.6vw, 2rem); font-weight: 800;
    line-height: 1.12; letter-spacing: -0.02em;
}
.hoy-hero-info p { margin: 0; color: #c9c9c9; font-size: 0.94rem; }
@media (min-width: 620px) {
    .hoy-hero { flex-direction: row; }
    .hoy-hero-img { flex: 0 0 46%; aspect-ratio: auto; min-height: 330px; }
    .hoy-hero-info { justify-content: center; padding: 24px 26px; }
}
.hoy-fila {
    display: flex; gap: 12px; align-items: center; margin-bottom: 10px; padding: 10px;
    background: var(--fondo-tarjeta); border-radius: 12px; text-decoration: none; color: inherit;
    transition: transform 0.2s var(--ease-suave), box-shadow 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .hoy-fila:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55); }
}
.hoy-fila img { width: 54px; height: 68px; object-fit: cover; border-radius: 7px; flex: none; }
.hoy-fila .i { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hoy-fila .t { font-weight: 700; line-height: 1.25; }
.hoy-fila .l { color: var(--texto-tenue); font-size: 0.8rem; }

/* ---------- Calendario (el de siempre, con otra piel) ---------- */
.portada .calendario-wrap { margin-top: 18px; }

/* ---------- Mención especial: flyer entero | texto ---------- */
.portada .seccion-mencion-especial .encabezado-mencion-especial h2 { font-size: 1.1rem; }
.portada .carrusel-mencion-especial-pista { gap: 12px; padding: 2px 0 8px; margin: 0; }
.portada .tarjeta-mencion-especial {
    flex: 0 0 100%; display: flex; opacity: 1; transform: none; text-decoration: none; color: inherit;
    background: linear-gradient(135deg, #1e1832, #14111f); border: 1px solid #352b57;
    border-radius: 14px; height: clamp(230px, 34vw, 320px); scroll-snap-align: start;
}
.portada .imagen-mencion-especial {
    position: relative; flex: 0 0 42%; aspect-ratio: auto; background: #0a0a0a; overflow: hidden;
}
.portada .imagen-mencion-especial .fondo-mencion {
    position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px);
    object-fit: cover; filter: blur(14px) brightness(0.5);
}
.portada .imagen-mencion-especial .frente-mencion {
    position: relative; width: 100%; height: 100%; object-fit: contain; display: block;
}
.portada .info-mencion-especial {
    flex: 1; padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.portada .info-mencion-especial .insignia-mencion-especial { align-self: flex-start; margin: 0; }
.portada .info-mencion-especial h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.15; margin: 0; }
.portada .info-mencion-especial p { color: #c9c9c9; font-size: 0.88rem; }
.portada .flecha-mencion-especial {
    width: 36px; height: 36px; padding: 0; border-radius: 50%; display: grid; place-items: center;
    background: var(--fondo-tarjeta-hover); border: 1px solid var(--borde); font-size: 1rem;
}
.portada .nav-mencion-especial { gap: 6px; }
@media (max-width: 520px) {
    .portada .imagen-mencion-especial { flex-basis: 44%; }
    .portada .info-mencion-especial { padding: 14px; }
    .portada .info-mencion-especial h3 { font-size: 1.08rem; }
}

/* ---------- Banners (imagen | texto) ---------- */
.banner-p {
    display: flex; border-radius: 14px; overflow: hidden; background: var(--fondo-tarjeta);
    margin-top: 26px; min-height: 180px; text-decoration: none; color: inherit;
}
.banner-p .im { flex: 0 0 38%; position: relative; overflow: hidden; background: #0a0a0a; }
.banner-p .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-p .tx { padding: 18px; display: flex; flex-direction: column; gap: 8px; justify-content: center; min-width: 0; }
.banner-p h3 { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.15; }
.banner-p p { margin: 0; color: #c9c9c9; font-size: 0.88rem; }
.banner-p .pill-p { background: transparent; }

.banner-secreto { background: linear-gradient(135deg, #17141f, #0e0d12); border: 1px solid #2a2438; }
.banner-secreto .im img { object-fit: contain; background: #0a0a0a; }
.banner-secreto .pill-p { background: #2a2438; border-color: #3d3452; color: #d9cdf5; }
.sorteos-p { display: flex; gap: 6px; flex-wrap: wrap; }
.sorteos-p span {
    font-size: 0.74rem; background: #241e33; border: 1px solid #3d3452; color: #ddd2f7;
    border-radius: 999px; padding: 3px 10px; font-weight: 600;
}

.banner-hit { background: linear-gradient(135deg, #2a1a40, #16102a); border: 1px solid #3a2a58; }
.banner-hit .pill-p { background: var(--acento-hazte-un-hit); border-color: var(--acento-hazte-un-hit); color: #1a1400; }

.banner-salud { background: linear-gradient(135deg, #0f2b2b, #141b2e); border: 1px solid #1f4747; min-height: 210px; margin-top: 34px; }
.banner-salud .im {
    flex: 0 0 36%; display: grid; place-items: center;
    background: radial-gradient(circle at 50% 60%, #1c4b4b 0, #0f2b2b 70%);
}
.banner-salud .im svg { width: 78%; max-width: 170px; height: auto; }
.banner-salud .pill-p { background: #133b3b; border-color: #2a6a6a; color: #8ff0df; }
.banner-salud h3 { font-size: 1.35rem; }
@media (max-width: 520px) {
    .banner-p { min-height: 0; }
    .banner-p .im { flex-basis: 40%; }
    .banner-p .tx { padding: 14px; }
    .banner-p h3 { font-size: 1.1rem; }
    .banner-salud { flex-direction: column; }
    .banner-salud .im { flex: none; height: 150px; }
    .banner-salud .im svg { width: auto; height: 84%; }
}

/* ---------- Próximos eventos: carrusel de flyers ---------- */
.portada .lista-proximos-eventos {
    flex-direction: row; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none;
}
.portada .lista-proximos-eventos::-webkit-scrollbar { display: none; }
.portada .tarjeta-proximo {
    flex: 0 0 150px; scroll-snap-align: start; background: var(--fondo-tarjeta); border-radius: 12px;
    overflow: hidden; text-decoration: none; color: inherit; position: relative;
    transition: transform 0.2s var(--ease-suave), box-shadow 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .portada .tarjeta-proximo:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55); }
}
.portada .tarjeta-proximo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #0f0f0f; }
.portada .tarjeta-proximo .punto-proximo-evento { position: absolute; top: 10px; right: 10px; z-index: 1; width: 12px; height: 12px; border: 2px solid #121212; }
.portada .tarjeta-proximo .c { padding: 10px 11px 13px; display: flex; flex-direction: column; gap: 3px; }
.portada .tarjeta-proximo .c strong { font-size: 0.9rem; line-height: 1.25; }
.portada .tarjeta-proximo .c span { color: var(--texto-tenue); font-size: 0.78rem; text-transform: capitalize; }
.portada .tarjeta-proximo .c .texto-dias-evento { font-weight: 700; }
@media (min-width: 620px) { .portada .tarjeta-proximo { flex-basis: 168px; } }

/* ---------- Convocatorias: afiche entero + cuenta regresiva ---------- */
.tarjeta-conv {
    flex: 0 0 250px; scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden;
    background: var(--fondo-tarjeta); border-radius: 12px; border-top: 4px solid var(--c-conv, #ef5b5b);
    cursor: pointer; transition: transform 0.2s var(--ease-suave), box-shadow 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .tarjeta-conv:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55); }
}
.tarjeta-conv.proximidad-urgente { --c-conv: #ef5b5b; }
.tarjeta-conv.proximidad-pronto { --c-conv: #f08a4b; }
.tarjeta-conv.proximidad-cercano { --c-conv: #e8c43a; }
.tarjeta-conv.proximidad-lejano { --c-conv: #3fcf74; }
.tarjeta-conv .im { position: relative; height: 210px; background: #0b0b0b; overflow: hidden; margin-bottom: 12px; }
.tarjeta-conv .im .fondo {
    position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px);
    object-fit: cover; filter: blur(14px) brightness(0.55);
}
.tarjeta-conv .im .frente { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.tarjeta-conv > :not(.im) { margin-left: 14px; margin-right: 14px; }
.tarjeta-conv .cuenta {
    align-self: flex-start; margin-bottom: 8px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em;
    text-transform: uppercase; border-radius: 999px; padding: 3px 10px;
    background: color-mix(in srgb, var(--c-conv) 22%, #111); color: var(--c-conv);
    border: 1px solid color-mix(in srgb, var(--c-conv) 45%, #111);
}
.tarjeta-conv b { font-size: 1.02rem; line-height: 1.25; margin-bottom: 6px; display: block; }
.tarjeta-conv p { margin: 0; color: #c0c0c0; font-size: 0.84rem; flex: 1; }
.tarjeta-conv .btn { align-self: flex-start; margin-top: 10px; }

/* ---------- Música: pestañas ---------- */
.pestanas-p { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 10px; padding: 2px 16px; scrollbar-width: none; }
.pestanas-p::-webkit-scrollbar { display: none; }
.pestana-p {
    flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--borde); background: transparent;
    font-size: 0.84rem; font-weight: 700; color: var(--texto-tenue); cursor: pointer;
}
.pestana-p.activa { background: rgba(34, 197, 94, 0.16); color: #7be3a2; border-color: var(--accion); }
@media (hover: hover) and (pointer: fine) {
    .pestana-p:not(.activa):hover { color: var(--texto); border-color: var(--texto-tenue); }
}
.pestanas-js .panel-p { display: none; }
.pestanas-js .panel-p.activo { display: block; }
.panel-p > .seccion-destacados { margin-top: 8px; }
.pestanas-js .panel-p > .seccion-destacados > h2 { display: none; }
.panel-p > .seccion-destacados.js-oculta-inicial { opacity: 1; transform: none; }

/* ---------- Videos de los shows ---------- */
.tarjeta-video {
    flex: 0 0 260px; scroll-snap-align: start; background: var(--fondo-tarjeta); border-radius: 12px;
    overflow: hidden; cursor: pointer; text-align: left; color: inherit; padding: 0; border: 0; display: block;
    font: inherit; transition: transform 0.2s var(--ease-suave), box-shadow 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .tarjeta-video:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55); }
    .tarjeta-video:hover .play-p { transform: scale(1.1); background: var(--accion); border-color: var(--accion); }
}
.tarjeta-video .th { position: relative; aspect-ratio: 16 / 9; background: #0a0a0a; overflow: hidden; display: grid; place-items: center; }
.tarjeta-video .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-p {
    position: relative; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, 0.65);
    border: 2px solid #fff; display: grid; place-items: center; transition: all 0.2s ease; font-size: 1rem; padding-left: 3px; color: #fff;
}
.tarjeta-video:hover .play-p { color: #04170a; }
.tarjeta-video .c { padding: 10px 12px 13px; display: flex; flex-direction: column; gap: 3px; }
.tarjeta-video .c b { font-size: 0.98rem; line-height: 1.25; }
.tarjeta-video .c small { color: var(--texto-tenue); font-size: 0.78rem; line-height: 1.3; }
.tiempo-p { color: var(--accion); font-weight: 800; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; }
@media (min-width: 620px) { .tarjeta-video { flex-basis: 290px; } }

/* ---------- Nuevo en Hazte un Hit: canciones ---------- */
.tarjeta-cancion {
    flex: 0 0 150px; scroll-snap-align: start; background: var(--fondo-tarjeta); border-radius: 12px; overflow: hidden;
    cursor: pointer; transition: transform 0.2s var(--ease-suave), box-shadow 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .tarjeta-cancion:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55); }
    .tarjeta-cancion:hover .play-mini { background: var(--accion); border-color: var(--accion); color: #04170a; }
}
.tarjeta-cancion .cv { position: relative; aspect-ratio: 1; background: #0f0f0f; overflow: hidden; }
.tarjeta-cancion .cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-mini {
    position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.7); border: 2px solid #fff; color: #fff; display: grid; place-items: center;
    font-size: 0.72rem; padding-left: 2px; transition: all 0.2s ease;
}
.tarjeta-cancion .c { padding: 10px 11px 13px; display: flex; flex-direction: column; gap: 3px; }
.tarjeta-cancion .c b { font-size: 0.92rem; line-height: 1.25; }
.tarjeta-cancion .c small { color: var(--texto-tenue); font-size: 0.76rem; line-height: 1.3; }
@media (min-width: 620px) { .tarjeta-cancion { flex-basis: 170px; } }

/* ---------- Noticias ---------- */
.portada .noticia-destacada { border-radius: 14px; }
.portada .etiqueta-noticia-destacada { color: #04170a; }
.carrusel-noticias { margin-top: 12px; }
.tarjeta-noticia-c { flex: 0 0 62%; max-width: 250px; scroll-snap-align: start; border: 1px solid var(--borde); }
.tarjeta-noticia-c .im-noticia { position: relative; aspect-ratio: 4 / 3; background: #0f0f0f; overflow: hidden; }
.tarjeta-noticia-c .im-noticia img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tarjeta-noticia-c .im-noticia img.sin-imagen { object-fit: contain; padding: 22%; opacity: 0.5; }
.tarjeta-noticia-c .fecha-noticia-c {
    position: absolute; left: 8px; bottom: 8px; background: rgba(10, 10, 10, 0.82); color: #fff;
    font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.tarjeta-noticia-c .info-noticia { padding: 10px 12px 14px; }
.tarjeta-noticia-c .titulo-noticia {
    font-size: 0.92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tarjeta-noticia-todas {
    flex: 0 0 52%; max-width: 200px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 6px; text-align: center; text-decoration: none; color: inherit; padding: 16px;
    border: 1px dashed var(--accion); border-radius: var(--radio); background: rgba(34, 197, 94, 0.06);
}
.tarjeta-noticia-todas .num { font-size: 2.2rem; font-weight: 800; color: var(--accion); line-height: 1; }
.tarjeta-noticia-todas .txt { color: var(--texto-tenue); font-size: 0.82rem; margin-bottom: 6px; }
@media (min-width: 620px) { .tarjeta-noticia-c { flex-basis: 230px; } }

/* ---------- Acordeones (Expos, Espacios) ---------- */
.acordeon-portada { margin-top: 12px; background: var(--fondo-tarjeta); border: 1px solid var(--borde); border-radius: 12px; }
.acordeon-portada > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 14px 16px; font-weight: 700;
}
.acordeon-portada > summary::-webkit-details-marker { display: none; }
.acordeon-portada > summary .cuenta-ac {
    margin-left: auto; font-size: 0.75rem; background: var(--fondo-tarjeta-hover); border-radius: 999px; padding: 2px 9px; color: var(--texto-tenue);
}
.acordeon-portada > summary::after {
    content: ""; width: 8px; height: 8px; border-right: 2px solid var(--accion); border-bottom: 2px solid var(--accion);
    transform: rotate(45deg); transition: transform 0.2s ease; margin-left: 4px; margin-top: -3px;
}
.acordeon-portada[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.acordeon-portada .acordeon-cuerpo { padding: 0 16px 16px; }
.acordeon-portada .acordeon-cuerpo > .seccion-destacados { margin-top: 0; }
.acordeon-portada .acordeon-cuerpo > .seccion-destacados > h2 { display: none; }
.acordeon-portada .seccion-destacados.js-oculta-inicial { opacity: 1; transform: none; }

/* ---------- Salud mental / cierre ---------- */
.portada .banner-salud .acciones-portada { margin-top: 6px; }
.sitio-footer.cierre-portada {
    max-width: 720px; margin: 28px auto 0; padding: 22px 16px 32px; display: flex; flex-direction: column;
    align-items: center; gap: 14px; background: var(--fondo-tarjeta); border: 1px solid var(--borde);
    border-radius: 14px; width: calc(100% - 32px);
}
.cierre-portada .lema-cierre { margin: 0; color: var(--texto-tenue); font-size: 0.9rem; }
.cierre-portada .logo-footer { opacity: 1; width: min(104px, 30vw); margin: 0; }
.cierre-portada .btn { width: min(100%, 320px); text-align: center; text-decoration: none; margin: 0; }
.cierre-portada .btn svg { width: 1.1em; height: 1.1em; vertical-align: -0.2em; margin-right: 6px; }
.cierre-portada .redes-sociales { margin: 0; gap: 12px; }
.cierre-portada .redes-sociales a {
    width: 46px; height: 46px; background: var(--fondo-tarjeta-hover); color: var(--accion);
}
.cierre-portada .redes-sociales svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) {
    .cierre-portada .redes-sociales a:hover { color: var(--accion); border-color: var(--accion); transform: translateY(-2px); }
}
.cierre-portada .btn.btn-difunde-arte { background: transparent; color: var(--accion); border-color: var(--accion); margin: 0; }
.cierre-portada .url-institucional { margin: 0; }
.cierre-portada .creditos-footer { margin: 0; }
.cierre-portada #btn-compartir { margin: 0; }
.cierre-portada .enlaces-legales-footer { margin: 4px 0 0; }
.oculto-instalada { display: none !important; }

/* ---------- Modal: instalar la app ---------- */
.inst-ov {
    position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, 0.78);
    display: flex; align-items: center; justify-content: center; padding: 14px; overflow: auto;
}
.inst-ov[hidden] { display: none; }
.inst-card {
    position: relative; background: var(--fondo-tarjeta); border: 1px solid var(--borde); border-radius: 16px;
    width: min(100%, 640px); padding: 20px 18px 16px; max-height: 100%; overflow: auto;
}
.inst-card h3 { margin: 0; font-size: 1.2rem; font-weight: 800; padding-right: 36px; }
.inst-sub { color: var(--texto-tenue); font-size: 0.86rem; margin: 4px 0 12px; }
.inst-x {
    position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
    background: var(--fondo-tarjeta-hover); border: 1px solid var(--borde); color: var(--texto); cursor: pointer;
}
.inst-tabs { display: flex; gap: 6px; background: #111; border-radius: 10px; padding: 4px; }
.inst-tabs button {
    flex: 1; padding: 9px; border-radius: 7px; font-weight: 700; color: var(--texto-tenue);
    background: transparent; border: 0; cursor: pointer;
}
.inst-tabs button.on { background: var(--accion); color: #04170a; }
.inst-body { display: flex; gap: 18px; align-items: center; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.inst-body .pasos { flex: 1; min-width: 210px; list-style: none; counter-reset: p; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.pasos li {
    counter-increment: p; position: relative; padding: 9px 10px 9px 42px; border-radius: 10px; font-size: 0.88rem;
    color: var(--texto-tenue); border: 1px solid transparent; transition: all 0.3s ease; cursor: pointer;
}
.pasos li::before {
    content: counter(p); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px;
    border-radius: 50%; background: var(--fondo-tarjeta-hover); display: grid; place-items: center; font-weight: 800; font-size: 0.78rem; color: var(--texto);
}
.pasos li.on { color: var(--texto); background: #15281c; border-color: #1f4a2e; }
.pasos li.on::before { background: var(--accion); color: #04170a; }
#pasos-ios, .inst-body[data-so="ios"] #pasos-and { display: none; }
.inst-body[data-so="ios"] #pasos-ios { display: flex; }
.inst-nota { color: #8a8a8a; font-size: 0.76rem; margin: 12px 0 0; }
.inst-nativo { width: 100%; margin-top: 12px; }
.ph {
    position: relative; width: 176px; height: 340px; border-radius: 26px; border: 6px solid #3a3a3a; background: #0d0d0d;
    overflow: hidden; flex: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.ph-nt { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 54px; height: 10px; background: #3a3a3a; border-radius: 0 0 8px 8px; z-index: 9; }
.scr { position: absolute; inset: 0; display: none; background: #1a1a1a; font-size: 9px; color: #ddd; }
.inst-body[data-so="and"] .scr-and, .inst-body[data-so="ios"] .scr-ios { display: block; }
.scr .bar { position: absolute; top: 12px; left: 6px; right: 6px; height: 24px; border-radius: 12px; background: #2c2c2c; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.scr .dots { display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 50%; }
.scr .dots i { width: 3px; height: 3px; border-radius: 50%; background: #ddd; display: block; }
.pag { position: absolute; top: 46px; left: 10px; right: 10px; display: flex; flex-direction: column; gap: 7px; }
.pag.top { top: 22px; }
.pag img { width: 46px; margin-bottom: 4px; }
.pag span { height: 8px; border-radius: 4px; background: #2a2a2a; }
.pag span.w { width: 60%; }
.menu-m {
    position: absolute; top: 38px; right: 6px; width: 112px; background: #2e2e2e; border-radius: 8px; padding: 4px 0;
    opacity: 0; transform: translateY(-6px) scale(0.96); transform-origin: top right; transition: all 0.3s ease; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}
.menu-m div, .sheet .row { padding: 7px 10px; }
.menu-m .hl, .sheet .hl { transition: background 0.3s ease; }
.dlg {
    position: absolute; left: 12px; right: 12px; top: 110px; background: #2e2e2e; border-radius: 12px; padding: 12px; text-align: center;
    opacity: 0; transform: scale(0.92); transition: all 0.3s ease; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}
.dlg img { width: 36px; margin: 0 auto 4px; display: block; }
.dlg b { display: block; margin-bottom: 10px; font-size: 10px; }
.dlg .bt { display: flex; justify-content: flex-end; gap: 12px; color: #9ab; font-weight: 700; }
.dlg .ok { color: var(--accion); }
.home-m {
    position: absolute; inset: 0; background: linear-gradient(160deg, #16301f, #101820); padding: 36px 12px; display: grid;
    grid-template-columns: repeat(3, 1fr); gap: 14px 8px; align-content: start; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.home-m .ic { aspect-ratio: 1; border-radius: 12px; background: #222; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.home-m .ic.gr { background: #ffffff14; }
.home-m .ic img { width: 70%; }
.home-m .ic em { position: absolute; bottom: -13px; font-style: normal; font-size: 7px; white-space: nowrap; color: #ddd; }
.home-m .ic:first-child { background: #0e0e0e; transform: scale(0); transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.3s; }
.ibar { position: absolute; bottom: 42px; left: 8px; right: 8px; height: 22px; border-radius: 11px; background: #2c2c2c; display: grid; place-items: center; }
.itool { position: absolute; bottom: 6px; left: 6px; right: 6px; display: flex; justify-content: space-around; align-items: center; color: #8ab4ff; height: 30px; }
.itool i { font-style: normal; padding: 4px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #2a2a2a; border-radius: 14px 14px 0 0; padding: 10px 6px 14px; transform: translateY(105%); transition: transform 0.4s var(--ease-suave); }
.sheet .row { display: flex; justify-content: space-between; border-radius: 7px; }
.dedo {
    position: absolute; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); border: 2px solid #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); z-index: 10; opacity: 0; transform: translate(-50%, -50%);
    transition: left 0.5s var(--ease-suave), top 0.5s var(--ease-suave), opacity 0.25s ease;
}
.dedo.tap { animation: inst-tap 0.6s; }
@keyframes inst-tap { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); } 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } }
.inst-body[data-so="and"][data-p="1"] #a-menu, .inst-body[data-so="and"][data-p="2"] #a-menu { opacity: 1; transform: none; }
.inst-body[data-so="and"][data-p="1"] #a-ins { background: #14532d; }
.inst-body[data-so="and"][data-p="2"] #a-dlg { opacity: 1; transform: none; }
.inst-body[data-so="and"][data-p="3"] #a-home { opacity: 1; }
.inst-body[data-so="and"][data-p="3"] #a-home .ic:first-child { transform: scale(1); }
.inst-body[data-so="ios"][data-p="1"] #i-sheet, .inst-body[data-so="ios"][data-p="2"] #i-sheet { transform: none; }
.inst-body[data-so="ios"][data-p="1"] #i-shr { background: #ffffff22; }
.inst-body[data-so="ios"][data-p="1"] #i-add { background: #14532d; }
.inst-body[data-so="ios"][data-p="2"] #i-dlg { opacity: 1; transform: none; }
.inst-body[data-so="ios"][data-p="3"] #i-home { opacity: 1; }
.inst-body[data-so="ios"][data-p="3"] #i-home .ic:first-child { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
    .dedo { display: none; }
    .menu-m, .dlg, .sheet, .home-m, .home-m .ic { transition: none; }
}

.titulo-desde-visita { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 10px; }
.titulo-desde-visita .desde-visita-hace { color: var(--texto-suave, #a8a8a8); font-weight: 500; font-size: 0.85rem; }
.inst-nativo[hidden] { display: none; }

/* ---------- Mención especial: avance automático (barra de progreso en el punto activo) ---------- */
.portada #dots-mencion-especial { gap: 8px; }
.portada #dots-mencion-especial .carrusel-dot { position: relative; width: 8px; height: 8px; overflow: hidden; transition: width 0.25s ease, background 0.2s ease; }
.portada #dots-mencion-especial .carrusel-dot.activo { width: 34px; border-radius: 999px; background: var(--borde); }
.portada #dots-mencion-especial.con-auto .carrusel-dot.activo::after {
    content: ""; position: absolute; inset: 0; background: var(--accion); transform-origin: left center;
    animation: mencion-progreso var(--mencion-ms, 6000ms) linear forwards;
}
.portada #dots-mencion-especial:not(.con-auto) .carrusel-dot.activo { background: var(--accion); }
.portada #dots-mencion-especial.en-pausa .carrusel-dot.activo::after { animation-play-state: paused; }
@keyframes mencion-progreso { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
    .portada #dots-mencion-especial.con-auto .carrusel-dot.activo::after { animation: none; transform: scaleX(1); }
}
