@import url("https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500;600&display=swap");

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --hb:   #f59e0b; --hb-bg:   #fffbeb; --hb-bd:   #fde68a; --hb-dk:   #d97706;
    --sjmd: #f97316; --sjmd-bg: #fff7ed; --sjmd-bd: #fed7aa; --sjmd-dk: #ea6500;
    --cs:   #3b82f6; --cs-bg:   #eff6ff; --cs-bd:   #bfdbfe; --cs-dk:   #2563eb;
    --zo:   #db2777; --zo-bg:   #fdf2f8; --zo-bd:   #fbcfe8; --zo-dk:   #be185d;
    --ca:   #7c2d12; --ca-bg:   #fdf5f0; --ca-bd:   #d4a090; --ca-dk:   #5c1a08;
    --neu:  #6b7280;
    --p:    #f59e0b; --pd: #d97706;
    --pk:   #e91e63; --pkd: #c2185b;
    --nav:  #1e3a5f; --navd: #162d4a;
    --bd:   #fde68a; --tx: #1c1917; --mt: #78716c; --wh: #ffffff; --bg: #fffcf5;
    --sh:   0 8px 32px rgba(245,158,11,.14);
    --ease: cubic-bezier(.4,0,.2,1);
}

html, body {
    width: 100%; height: auto;
    background: transparent;
    font-family: "DM Sans","Segoe UI",sans-serif;
    color: var(--tx);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Wrapper: tapa las líneas del tema de WP ── */
.lc-wrap {
    padding: 24px;
    width: 100%;
    max-width: 100%;
    background: var(--wh);
}

/* ── Card ── */
.lc-cal-box {
    background: var(--wh);
    border-radius: 20px;
    border: 1.5px solid var(--bd);
    box-shadow: var(--sh);
    padding: 36px 36px 28px;
    position: relative; overflow: hidden;
    width: 100%;
}
.lc-cal-box::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--hb), var(--sjmd), var(--cs), var(--zo), var(--ca));
}

/* ── Nav ── */
.lc-nav {
    display: flex; flex-direction: row;
    justify-content: space-between; align-items: center;
    margin-bottom: 28px; gap: 12px;
}
.lc-nav h2 {
    font-family: "Syne",sans-serif; font-weight: 800;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: var(--pd); letter-spacing: -.5px; line-height: 1;
    flex: 1; text-align: center; white-space: nowrap;
}

/* Botones nav: azul oscuro sólido como en /calendario/ */
.lc-btn {
    display: inline-flex; flex-direction: row; align-items: center; gap: 6px;
    background: var(--nav); border: none; color: var(--wh);
    padding: 11px 22px; border-radius: 100px;
    font-family: "DM Sans",sans-serif; font-weight: 700; font-size: .88rem;
    cursor: pointer; transition: all .2s var(--ease); line-height: 1;
    white-space: nowrap; flex-shrink: 0;
    text-decoration: none; outline: none;
    box-shadow: 0 4px 14px rgba(30,58,95,.25);
}
.lc-btn:hover {
    background: var(--navd);
    transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30,58,95,.35);
    color: var(--wh);
}
.lc-btn:active { transform: translateY(0); }

/* ── Tabla ── */
.lc-table {
    width: 100%; border-collapse: separate; border-spacing: 6px;
    table-layout: fixed;
}
.lc-table thead th {
    font-family: "Syne",sans-serif;
    font-size: clamp(.65rem, 2vw, .75rem);
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    color: var(--p); text-align: center;
    padding: 10px 2px 12px;
    border-bottom: 2px solid var(--bd);
    background: transparent;
}

/* ── Celdas día ── */
.lc-dia {
    text-align: center; vertical-align: top;
    padding: 12px 4px 10px;
    border-radius: 12px; border: 2px solid transparent;
    font-family: "DM Sans",sans-serif;
    font-size: clamp(.8rem, 2.5vw, .95rem); font-weight: 500;
    color: var(--tx); background: var(--wh);
    cursor: pointer;
    transition: all .18s var(--ease);
    position: relative; user-select: none;
    height: 90px;
}
.lc-dia-num { display: block; line-height: 1; margin-bottom: 6px; }
.lc-dia:hover:not(.lc-otro):not(.lc-hoy) {
    border-color: var(--p); color: var(--pd); font-weight: 800;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 20px rgba(245,158,11,.28); z-index: 1;
}
.lc-dia.lc-hoy {
    background: linear-gradient(135deg, var(--pk), var(--pkd));
    color: var(--wh); font-weight: 900; border: none;
    box-shadow: 0 6px 20px rgba(233,30,99,.42);
    transform: scale(1.06); z-index: 1;
}
.lc-dia.lc-tiene { background: #fffbeb; border-color: #fde68a; color: var(--pd); font-weight: 700; }
.lc-dia.lc-tiene:hover:not(.lc-hoy) {
    background: var(--wh); border-color: var(--pd);
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 20px rgba(245,158,11,.32); z-index: 1;
}
.lc-dia.lc-hoy.lc-tiene { background: linear-gradient(135deg, var(--pk), var(--pkd)); color: var(--wh); border: none; }
.lc-dia.lc-otro { color: #d1d5db; cursor: default; background: #f8f8f8; }

/* ── Puntos ── */
.lc-dots { display: flex; flex-direction: row; gap: 3px; justify-content: center; flex-wrap: wrap; margin-top: 2px; }
.lc-dot  { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }
.lc-dia.lc-hoy .lc-dot { box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); }
.lc-dot.lc-hb   { background: var(--hb); }
.lc-dot.lc-sjmd { background: var(--sjmd); }
.lc-dot.lc-cs   { background: var(--cs); }
.lc-dot.lc-zo   { background: var(--zo); }
.lc-dot.lc-ca   { background: var(--ca); }
.lc-dot.lc-neu  { background: var(--neu); }

/* ── Leyenda ── */
.lc-leyenda {
    display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px 20px;
    margin-top: 24px; padding-top: 18px; border-top: 1.5px solid #fde68a;
}
.lc-li { display: flex; flex-direction: row; align-items: center; gap: 7px; font-size: clamp(.68rem, 2vw, .78rem); color: var(--mt); }
.lc-li b { font-family: "Syne",sans-serif; font-weight: 800; color: var(--tx); }
.lc-ld { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.lc-ld.lc-hb   { background: var(--hb); }
.lc-ld.lc-sjmd { background: var(--sjmd); }
.lc-ld.lc-cs   { background: var(--cs); }
.lc-ld.lc-zo   { background: var(--zo); }
.lc-ld.lc-ca   { background: var(--ca); }

/* ── Tooltip ── */
.lc-tip {
    position: fixed; background: #fff;
    border-radius: 16px; padding: 0;
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
    z-index: 9999; min-width: 230px; max-width: 290px;
    pointer-events: none; opacity: 0;
    transform: translateY(-6px) scale(.96);
    transition: opacity .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
    border: 1.5px solid #fde68a; overflow: hidden;
    font-family: "DM Sans","Segoe UI",sans-serif;
}
.lc-tip.show { opacity: 1; transform: translateY(0) scale(1); }
.lc-tip-hdr {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    font-family: "Syne",sans-serif; font-size: .74rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    color: #fff; padding: 11px 14px 10px;
    display: flex; align-items: center; gap: 8px;
}
.lc-tip-hdr::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.75); flex-shrink: 0; }
.lc-tip-body { padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.lc-tip-ev  { background: #fffcf5; padding: 9px 11px; border-radius: 10px; border-left: 3px solid var(--neu); }
.lc-tip-ev.lc-hb   { border-left-color: var(--hb);   background: var(--hb-bg);   }
.lc-tip-ev.lc-sjmd { border-left-color: var(--sjmd); background: var(--sjmd-bg); }
.lc-tip-ev.lc-cs   { border-left-color: var(--cs);   background: var(--cs-bg);   }
.lc-tip-ev.lc-zo   { border-left-color: var(--zo);   background: var(--zo-bg);   }
.lc-tip-ev.lc-ca   { border-left-color: var(--ca);   background: var(--ca-bg);   }
.lc-tip-cat { display: inline-block; padding: 2px 8px; border-radius: 100px; font-size: .58rem; font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .6px; font-family: "Syne",sans-serif; background: var(--neu); color: #fff; }
.lc-tip-ev.lc-hb   .lc-tip-cat { background: var(--hb); }
.lc-tip-ev.lc-sjmd .lc-tip-cat { background: var(--sjmd); }
.lc-tip-ev.lc-cs   .lc-tip-cat { background: var(--cs); }
.lc-tip-ev.lc-zo   .lc-tip-cat { background: var(--zo); }
.lc-tip-ev.lc-ca   .lc-tip-cat { background: var(--ca); }
.lc-tip-sigla { display: inline-block; background: rgba(255,255,255,.3); border-radius: 4px; padding: 0 5px; font-size: .58rem; font-weight: 900; letter-spacing: 1px; margin-left: 4px; vertical-align: middle; font-family: "Syne",sans-serif; }
.lc-tip-tit  { font-family: "Syne",sans-serif; font-weight: 700; font-size: .86rem; line-height: 1.3; color: #1c1917; margin-bottom: 4px; }
.lc-tip-hora { font-size: .74rem; color: #78716c; display: flex; align-items: center; gap: 5px; }
