/* SIREPA-i · Login: «vista de temporada» (nov-2026).
   Un botón en la cabecera del calendario pone data-vista en .login-v2. Aquí solo cambian el fondo y el estilo
   del calendario; las animaciones de js/login-temporada.js no se tocan.
   - cielo: fondo con el cielo de la estación y celdas de vidrio esmerilado */

/* ---------- Botón de vista ---------- */
.cc-vista-btn {
    height: 40px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid var(--lg-linea); border-radius: 8px; background: #fff; color: var(--lg-marino);
    font: 500 13.5px 'Poppins', system-ui, sans-serif; cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.cc-vista-btn:hover { background: var(--lg-celeste); border-color: #a9bcd6; color: var(--lg-azul); }
.cc-vista-btn i { font-size: 13px; }

/* TEMPORAL (nov-2026): botones de vista previa (Navidad y verano) bajo la cinta de temporada */
.lg-previas { order: 9; margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.lg-previa {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px; border: 1px dashed #a9bcd6; background: #fff;
    color: var(--lg-azul, #1363D0); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: background-color 150ms ease, border-color 150ms ease;
}
.lg-previa:hover { background: var(--lg-celeste, #E8F2F7); border-color: var(--lg-azul, #1363D0); text-decoration: none; }
.lg-previa i { font-size: 12px; }

/* Transición suave al cambiar de vista */
.lg-cal, .cc-celda, .cc-titulo, .cc-sem, .cc-flecha, .cc-hoy-btn, .cc-vista-btn, .cc-n {
    transition: background 300ms ease, background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease, border-radius 300ms ease;
}
.cc { position: relative; }
.cc > * { position: relative; z-index: 1; }

/* =====================================================================
   A · CIELO DE TEMPORADA
   ===================================================================== */
.login-v2[data-vista="cielo"] { --vc-acento: #d6457a; --vc-tinta: #fff; }
.login-v2[data-vista="cielo"][data-temporada="navidad"] { --vc-acento: #1d3566; }

/* El calendario recorta lo que sobresale (la marca de agua del mes): sin esto la página crecía y salía el scroll */
.login-v2[data-vista="cielo"] .lg-cal { overflow: hidden; }
.login-v2[data-vista="cielo"] .lg-cal {
    background:
        radial-gradient(circle at 86% 7%, rgba(255, 246, 214, .98) 0, rgba(255, 222, 176, .7) 9%, rgba(255, 200, 160, 0) 34%),
        radial-gradient(ellipse 80% 50% at 10% 100%, rgba(150, 70, 170, .35), transparent 70%),
        linear-gradient(165deg, #ffdcbc 0%, #ffb19c 34%, #f37e9f 68%, #b85aa6 100%);
}
.login-v2[data-vista="cielo"][data-temporada="navidad"] .lg-cal {
    background:
        radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 52%),
        radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 52%),
        radial-gradient(1.4px 1.4px at 47% 22%, #fff 50%, transparent 52%),
        radial-gradient(1px 1px at 63% 6%, #fff 50%, transparent 52%),
        radial-gradient(1.3px 1.3px at 81% 15%, #fff 50%, transparent 52%),
        radial-gradient(1px 1px at 92% 30%, #fff 50%, transparent 52%),
        radial-gradient(1px 1px at 6% 40%, #fff 50%, transparent 52%),
        radial-gradient(ellipse 60% 32% at 30% 6%, rgba(70, 230, 170, .30), transparent 70%),
        radial-gradient(ellipse 55% 30% at 74% 14%, rgba(160, 110, 255, .28), transparent 70%),
        linear-gradient(180deg, #0a142c 0%, #132650 55%, #1f3a6e 100%);
}
/* Nombre del mes gigante, solo contorno, como marca de agua detrás de la cuadrícula */
.login-v2[data-vista="cielo"] .cc::before {
    content: attr(data-mes); position: absolute; z-index: 0; left: -6px; bottom: -.1em; max-width: 100%; overflow: hidden;
    font: 800 clamp(120px, 15vw, 230px)/1 'Poppins', system-ui, sans-serif; letter-spacing: -.04em; text-transform: lowercase;
    color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .34); pointer-events: none; white-space: nowrap;
}
.login-v2[data-vista="cielo"] .cc-titulo { color: #fff; font-size: 26px; font-weight: 700; text-shadow: 0 2px 12px rgba(80, 20, 60, .25); }
.login-v2[data-vista="cielo"] .cc-sem { color: rgba(255, 255, 255, .9); text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; }
.login-v2[data-vista="cielo"] .cc-flecha,
.login-v2[data-vista="cielo"] .cc-hoy-btn,
.login-v2[data-vista="cielo"] .cc-vista-btn {
    background: rgba(255, 255, 255, .78); border-color: rgba(255, 255, 255, .9); color: var(--vc-acento);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 4px 14px -6px rgba(80, 20, 60, .35);
}
.login-v2[data-vista="cielo"] .cc-flecha:hover,
.login-v2[data-vista="cielo"] .cc-hoy-btn:hover,
.login-v2[data-vista="cielo"] .cc-vista-btn:hover { background: #fff; color: var(--vc-acento); border-color: #fff; }
.login-v2[data-vista="cielo"] .cc-celda {
    border-radius: 14px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(7px) saturate(1.2); backdrop-filter: blur(7px) saturate(1.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 24px -14px rgba(60, 10, 50, .45);
}
.login-v2[data-vista="cielo"] .cc-celda.is-vacia { background: transparent; border: 1px dashed rgba(255, 255, 255, .3); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.login-v2[data-vista="cielo"] .cc-n { color: #fff; font-size: 18px; font-weight: 700; left: 10px; top: 7px; text-shadow: 0 1px 6px rgba(60, 10, 50, .3); }
.login-v2[data-vista="cielo"] .cc-celda.is-hoy { border: 2px solid #fff; background: rgba(255, 255, 255, .32); }
.login-v2[data-vista="cielo"] .cc-celda.is-hoy .cc-n {
    width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
    background: #fff; color: var(--vc-acento); text-shadow: none; left: 7px; top: 6px;
}
.login-v2[data-vista="cielo"] .cc-chip-hoy { background: #fff; color: var(--vc-acento); }
.login-v2[data-vista="cielo"] .cc-celda:not(.is-foto) .cc-tit { color: #fff; text-shadow: 0 1px 6px rgba(60, 10, 50, .4); }
.login-v2[data-vista="cielo"] .cc-celda.is-foto { border-color: rgba(255, 255, 255, .6); }
.login-v2[data-vista="cielo"] .cc-celda.is-foto .cc-n { color: #13233f; background: rgba(255, 255, 255, .92); border-radius: 8px; padding: 0 7px; font-size: 14px; text-shadow: none; }
.login-v2[data-vista="cielo"] .cc-celda.is-foto.is-hoy { outline: 3px solid #fff; }
.login-v2[data-vista="cielo"] .cc-vacio { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.login-v2[data-vista="cielo"] .lt-boton { background: rgba(255, 255, 255, .28); border-color: rgba(255, 255, 255, .6); }
/* Navidad: tonos fríos en las sombras */
.login-v2[data-vista="cielo"][data-temporada="navidad"] .cc-titulo { text-shadow: 0 2px 14px rgba(120, 200, 255, .3); }
.login-v2[data-vista="cielo"][data-temporada="navidad"] .cc-celda { background: rgba(170, 200, 255, .1); border-color: rgba(200, 220, 255, .35); box-shadow: inset 0 1px 0 rgba(220, 235, 255, .3), 0 8px 24px -14px rgba(0, 0, 0, .6); }
.login-v2[data-vista="cielo"][data-temporada="navidad"] .cc-celda.is-hoy { border-color: #fff; background: rgba(200, 220, 255, .22); }
.login-v2[data-vista="cielo"][data-temporada="navidad"] .cc::before { -webkit-text-stroke-color: rgba(190, 215, 255, .22); }

@media (prefers-reduced-motion: reduce) {
    .lg-cal, .cc-celda, .cc-titulo, .cc-sem, .cc-flecha, .cc-hoy-btn, .cc-vista-btn, .cc-n { transition: none !important; }
}

/* ---------- Función nueva: el botón de vista late y una nota breve la explica (primeras visitas) ---------- */
.cc-cab { position: relative; z-index: 7; }
.cc-nav { position: relative; }
.cc-vista-btn.cc-vista-nuevo { animation: ccVistaPulso 1.8s ease-out 5; }
@keyframes ccVistaPulso {
    0% { box-shadow: 0 0 0 0 rgba(19, 99, 208, .5); }
    70% { box-shadow: 0 0 0 10px rgba(19, 99, 208, 0); }
    100% { box-shadow: 0 0 0 0 rgba(19, 99, 208, 0); }
}
.cc-vista-nota {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 8; width: 290px;
    display: flex; align-items: flex-start; gap: 8px; padding: 10px 30px 10px 12px; border-radius: 12px;
    background: #102a4c; color: #f2f9ff; font: 400 12.5px/1.4 'Poppins', system-ui, sans-serif;
    box-shadow: 0 12px 28px -10px rgba(16, 42, 76, .55);
    opacity: 0; transform: translateY(-4px); transition: opacity 250ms ease, transform 250ms ease;
}
.cc-vista-nota.is-visible { opacity: 1; transform: translateY(0); }
.cc-vista-nota::before {
    content: ''; position: absolute; top: -6px; left: calc(var(--flecha, 40px) - 6px);
    border: 6px solid transparent; border-top: 0; border-bottom-color: #102a4c;
}
.cc-vista-nota b { font-weight: 600; color: #ffffff; }
.cc-vista-nota-tag { flex: none; padding: 1px 7px; border-radius: 999px; background: #ffc53d; color: #102a4c; font-weight: 700; font-size: 11px; line-height: 1.6; }
.cc-vista-nota-x {
    position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 6px;
    background: transparent; color: #c9d8ec; font-size: 16px; line-height: 1; cursor: pointer;
}
.cc-vista-nota-x:hover { background: rgba(255, 255, 255, .12); color: #ffffff; }
@media (prefers-reduced-motion: reduce) {
    .cc-vista-btn.cc-vista-nuevo { animation: none; outline: 2px solid rgba(19, 99, 208, .5); outline-offset: 2px; }
    .cc-vista-nota { transition: none; }
}

/* ---------- El cielo de la vista Cielo cambia con la hora (salvo Navidad, que ya es de noche) ---------- */
.login-v2[data-vista="cielo"]:not([data-temporada="navidad"]) .lg-cal::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: background 1.2s ease;
}
.login-v2[data-vista="cielo"][data-momento="manana"]:not([data-temporada="navidad"]) .lg-cal::before {
    background: linear-gradient(180deg, rgba(205, 225, 250, .22), rgba(255, 255, 255, 0) 60%);
}
.login-v2[data-vista="cielo"][data-momento="tarde"]:not([data-temporada="navidad"]) .lg-cal::before {
    background: linear-gradient(180deg, rgba(255, 176, 86, .24) 0%, rgba(255, 128, 96, .16) 100%);
}
.login-v2[data-vista="cielo"][data-momento="noche"]:not([data-temporada="navidad"]) .lg-cal::before {
    background:
        radial-gradient(1.2px 1.2px at 14% 12%, #fff 50%, transparent 52%),
        radial-gradient(1px 1px at 33% 6%, #fff 50%, transparent 52%),
        radial-gradient(1.3px 1.3px at 58% 15%, #fff 50%, transparent 52%),
        radial-gradient(1px 1px at 79% 8%, #fff 50%, transparent 52%),
        radial-gradient(1.1px 1.1px at 91% 22%, #fff 50%, transparent 52%),
        radial-gradient(circle at 84% 14%, rgba(240, 244, 255, .9) 0, rgba(240, 244, 255, .9) 1.6%, rgba(200, 214, 255, .18) 4%, transparent 12%),
        linear-gradient(180deg, rgba(10, 20, 50, .74) 0%, rgba(22, 32, 64, .58) 100%);
}
