/* Portal Casa Canis — diseño moderno y minimalista.
   Paleta de marca fija: verde #0B1907 · amarillo #B29717 · beige #E9E3D3 */
:root {
    --forest: #0B1907;
    --forest-2: #17290F;
    --forest-3: #223A17;
    --gold: #B29717;
    --gold-hover: #C4A91E;
    --gold-soft: rgba(178, 151, 23, 0.14);
    --beige: #E9E3D3;
    --beige-2: #F2EEE2;
    --white: #FFFFFF;
    --line: rgba(11, 25, 7, 0.08);
    --text: #1B2418;
    --muted: #6C7266;
    --good: #1F6B35; --good-bg: #DDF3E3;
    --warn: #8A5A0B; --warn-bg: #FBEFCF;
    --risk: #A12626; --risk-bg: #FBE1E1;
    --info: #1F4E8C; --info-bg: #E0ECFA;
    --serif: 'Cinzel', serif;
    --sans: 'Montserrat', sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-sm: 0 1px 2px rgba(11, 25, 7, 0.05), 0 4px 14px -6px rgba(11, 25, 7, 0.10);
    --shadow: 0 1px 2px rgba(11, 25, 7, 0.04), 0 18px 40px -18px rgba(11, 25, 7, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--sans); color: var(--text); line-height: 1.5; min-height: 100vh;
    background:
        radial-gradient(900px 500px at 100% -10%, rgba(178, 151, 23, 0.16), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(23, 41, 15, 0.10), transparent 60%),
        var(--beige);
    background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
.ico { flex-shrink: 0; vertical-align: middle; }
.hidden { display: none !important; }
::selection { background: var(--gold); color: var(--forest); }

.splash { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 38px; height: 38px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Animaciones ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(24px, -18px) scale(1.06); } }
.enter > * { animation: rise 0.6s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: 0.07s; }
.enter > *:nth-child(3) { animation-delay: 0.14s; }
.enter > *:nth-child(4) { animation-delay: 0.21s; }
.enter > *:nth-child(5) { animation-delay: 0.28s; }
.enter .grid-kpi > * { animation: rise 0.6s var(--ease) both; }
.enter .grid-kpi > *:nth-child(2) { animation-delay: 0.1s; }
.enter .grid-kpi > *:nth-child(3) { animation-delay: 0.2s; }
.enter .grid-kpi > *:nth-child(4) { animation-delay: 0.3s; }

/* ---------- Botones ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.72rem 1.4rem; border: 0; border-radius: 999px; font-weight: 600; font-size: 0.9rem; cursor: pointer; text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s; }
.btn:active:not(:disabled) { transform: scale(0.96); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:focus-visible, .link:focus-visible, .nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--gold); color: var(--forest); box-shadow: 0 8px 20px -8px rgba(178, 151, 23, 0.7); }
.btn-primary:hover:not(:disabled) { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(178, 151, 23, 0.8); }
.btn-dark { background: var(--forest); color: var(--beige); box-shadow: 0 8px 20px -10px rgba(11, 25, 7, 0.6); }
.btn-dark:hover:not(:disabled) { background: var(--forest-3); transform: translateY(-2px); }
.btn-ghost { background: var(--white); color: var(--forest); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--gold); transform: translateY(-1px); }
.btn-danger { background: var(--risk); color: #fff; }
.btn-sm { padding: 0.42rem 0.95rem; font-size: 0.8rem; }
.btn-icon { padding: 0.5rem; width: 34px; height: 34px; }
.btn-full { width: 100%; }
.link { background: none; border: 0; color: var(--gold); font-weight: 700; cursor: pointer; padding: 0; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Formularios ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 0.35rem; letter-spacing: 0.02em; }
.field input, .field select, .field textarea { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid transparent; border-radius: 14px; background: var(--beige-2); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px var(--gold-soft); }
.field small { color: var(--muted); font-size: 0.76rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; margin: 0.4rem 0 1.1rem; cursor: pointer; }
.check input { margin-top: 0.15rem; width: 18px; height: 18px; accent-color: var(--gold); }
.form-error { background: var(--risk-bg); color: var(--risk); padding: 0.75rem 1rem; border-radius: 14px; font-size: 0.85rem; margin-bottom: 1rem; animation: pop 0.3s var(--ease); }
.form-ok { background: var(--good-bg); color: var(--good); padding: 0.75rem 1rem; border-radius: 14px; font-size: 0.85rem; margin-bottom: 1rem; animation: pop 0.3s var(--ease); }

/* ---------- Acceso ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-brand { position: relative; overflow: hidden; background: linear-gradient(155deg, var(--forest) 0%, var(--forest-2) 60%, var(--forest-3) 100%); color: var(--beige); padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-brand::before, .auth-brand::after { content: ''; position: absolute; border-radius: 50%; filter: blur(4px); animation: float 14s ease-in-out infinite; }
.auth-brand::before { width: 420px; height: 420px; right: -120px; top: -100px; background: radial-gradient(circle, rgba(178, 151, 23, 0.55), transparent 70%); }
.auth-brand::after { width: 360px; height: 360px; left: -120px; bottom: -90px; background: radial-gradient(circle, rgba(178, 151, 23, 0.28), transparent 70%); animation-delay: -6s; }
.auth-brand > * { position: relative; z-index: 1; }
.logo-badge { width: 112px; height: 112px; background: var(--beige); border-radius: 30px; display: grid; place-items: center; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6); animation: pop 0.8s var(--ease) both; }
.logo-badge { overflow: hidden; }
.logo-badge img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; transform: scale(1.75); }
.auth-brand h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.2; font-weight: 600; max-width: 460px; animation: rise 0.9s 0.15s var(--ease) both; }
.auth-brand h2 span { color: var(--gold); }
.auth-brand p { color: rgba(233, 227, 211, 0.75); max-width: 420px; margin-top: 1rem; animation: rise 0.9s 0.3s var(--ease) both; }
.auth-brand small { color: rgba(233, 227, 211, 0.55); }
.auth-panel { display: grid; place-items: center; padding: 2rem 1.5rem; }
.auth-card { width: 100%; max-width: 420px; animation: rise 0.7s 0.1s var(--ease) both; }
.auth-card h1 { font-family: var(--serif); font-size: 1.9rem; color: var(--forest); font-weight: 600; margin-bottom: 0.3rem; }
.auth-card .sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.6rem; }
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--beige-2); border-radius: 999px; padding: 4px; margin-bottom: 1.5rem; }
.tabs button { position: relative; z-index: 1; border: 0; background: transparent; padding: 0.6rem; border-radius: 999px; font-weight: 600; font-size: 0.85rem; cursor: pointer; color: var(--muted); transition: color 0.25s, background 0.25s, box-shadow 0.25s; }
.tabs button.active { background: var(--forest); color: var(--beige); box-shadow: var(--shadow-sm); }
.auth-foot { text-align: center; margin-top: 1.1rem; font-size: 0.85rem; }
.back-site { display: block; text-align: center; margin-top: 1.5rem; color: var(--muted); font-size: 0.82rem; text-decoration: none; transition: color 0.2s; }
.back-site:hover { color: var(--gold); }
.estado-icon { width: 76px; height: 76px; border-radius: 28px; display: grid; place-items: center; margin-bottom: 1.2rem; animation: pop 0.6s var(--ease) both; }

/* ---------- Estructura ---------- */
.shell { display: grid; grid-template-columns: 276px 1fr; gap: 0; min-height: 100vh; }
.sidebar { position: sticky; top: 14px; height: calc(100vh - 28px); margin: 14px 0 14px 14px; border-radius: 28px; padding: 1.3rem 1rem 1rem; display: flex; flex-direction: column; color: var(--beige); overflow: hidden;
    background: linear-gradient(170deg, var(--forest) 0%, var(--forest-2) 100%); box-shadow: var(--shadow); }
.sidebar::before { content: ''; position: absolute; width: 260px; height: 260px; right: -110px; top: -90px; background: radial-gradient(circle, rgba(178, 151, 23, 0.4), transparent 70%); pointer-events: none; }
.sidebar > * { position: relative; }
.sidebar .brand { display: flex; align-items: center; gap: 0.75rem; padding: 0.2rem 0.4rem 1.4rem; }
.sidebar .brand .logo-mini { width: 46px; height: 46px; background: var(--beige); border-radius: 15px; display: grid; place-items: center; }
.sidebar .brand .logo-mini { overflow: hidden; }
.sidebar .brand .logo-mini img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; transform: scale(1.75); }
.sidebar .brand span { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.sidebar .brand small { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.66rem; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.15rem; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 0.8rem; padding: 0.78rem 1rem; color: rgba(233, 227, 211, 0.72); text-decoration: none; border-radius: 16px; font-size: 0.9rem; font-weight: 500; transition: background 0.25s var(--ease), color 0.2s, transform 0.25s var(--ease); }
.nav a:hover { background: rgba(255, 255, 255, 0.07); color: var(--beige); transform: translateX(3px); }
.nav a.active { background: var(--gold); color: var(--forest); font-weight: 700; box-shadow: 0 10px 22px -10px rgba(178, 151, 23, 0.9); }
.nav .badge-n { margin-left: auto; background: var(--gold); color: var(--forest); border-radius: 99px; font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.5rem; animation: pop 0.4s var(--ease); }
.nav a.active .badge-n { background: var(--forest); color: var(--beige); }
.sidebar .user { display: flex; align-items: center; gap: 0.7rem; background: rgba(255, 255, 255, 0.06); border-radius: 18px; padding: 0.7rem; margin-top: 0.8rem; }
.sidebar .user .meta { min-width: 0; flex: 1; }
.sidebar .user b { display: block; color: #fff; font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .user small { color: rgba(233, 227, 211, 0.6); font-size: 0.72rem; }
.sidebar .user button { background: rgba(255, 255, 255, 0.08); border: 0; color: var(--beige); width: 36px; height: 36px; border-radius: 12px; cursor: pointer; display: grid; place-items: center; transition: background 0.2s, color 0.2s; }
.sidebar .user button:hover { background: var(--gold); color: var(--forest); }

.main { padding: 2rem 2.4rem 4rem; min-width: 0; max-width: 1240px; width: 100%; }
.topbar { display: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.page-head .eyebrow { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem; }
.page-head h1 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; color: var(--forest); line-height: 1.15; }
.page-head p { color: var(--muted); font-size: 0.92rem; margin-top: 0.3rem; }

.card { background: var(--white); border-radius: 26px; box-shadow: var(--shadow-sm); padding: 1.6rem; margin-bottom: 1.3rem; transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease); }
.card:hover { box-shadow: var(--shadow); }
.card h2 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--forest); margin-bottom: 0.9rem; }
.grid-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem; margin-bottom: 1.3rem; }
.kpi { position: relative; overflow: hidden; background: var(--white); border-radius: 26px; padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kpi::after { content: ''; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%; background: var(--gold-soft); transition: transform 0.5s var(--ease); }
.kpi:hover::after { transform: scale(1.4); }
.kpi .chip { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 14px; background: var(--forest); color: var(--gold); display: grid; place-items: center; margin-bottom: 1rem; }
.kpi .n { position: relative; z-index: 1; font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--forest); line-height: 1; }
.kpi .l { position: relative; z-index: 1; color: var(--muted); font-size: 0.82rem; margin-top: 0.4rem; }
.kpi.accent { background: var(--forest); }
.kpi.accent .n { color: var(--beige); } .kpi.accent .l { color: rgba(233, 227, 211, 0.7); } .kpi.accent .chip { background: var(--gold); color: var(--forest); }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin-bottom: 1.3rem; }
.quick a { display: flex; align-items: center; gap: 1rem; background: var(--white); border-radius: 22px; padding: 1.1rem 1.3rem; text-decoration: none; color: var(--forest); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); font-weight: 600; font-size: 0.92rem; }
.quick a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quick a .chip { width: 44px; height: 44px; border-radius: 15px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; transition: background 0.3s, color 0.3s; }
.quick a:hover .chip { background: var(--gold); color: var(--forest); }
.quick a small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; }

.toolbar { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.toolbar input, .toolbar select { padding: 0.75rem 1.1rem; border: 1.5px solid transparent; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); min-width: 0; transition: border-color 0.2s, box-shadow 0.2s; }
.toolbar input { flex: 1; min-width: 200px; }
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

.table-wrap { overflow-x: auto; margin: -0.3rem; padding: 0.3rem; }
table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 0.88rem; }
th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding: 0.3rem 1rem; font-weight: 600; white-space: nowrap; }
td { padding: 0.85rem 1rem; background: var(--beige-2); vertical-align: middle; transition: background 0.2s; }
td:first-child { border-radius: 18px 0 0 18px; } td:last-child { border-radius: 0 18px 18px 0; }
tr:hover td { background: var(--gold-soft); }
td .sub { color: var(--muted); font-size: 0.76rem; }
td.acciones { white-space: nowrap; text-align: right; }
td.acciones .btn { margin-left: 0.3rem; }
.person { display: flex; align-items: center; gap: 0.8rem; }
.avatar { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 0.82rem; flex-shrink: 0; background: var(--forest); color: var(--gold); }
.avatar.v2 { background: var(--gold); color: var(--forest); } .avatar.v3 { background: var(--forest-3); color: var(--beige); }

.badge { display: inline-block; padding: 0.22rem 0.7rem; border-radius: 99px; font-size: 0.72rem; font-weight: 700; }
.b-good { background: var(--good-bg); color: var(--good); } .b-warn { background: var(--warn-bg); color: var(--warn); }
.b-risk { background: var(--risk-bg); color: var(--risk); } .b-info { background: var(--info-bg); color: var(--info); }
.b-gray { background: var(--beige); color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.3rem 1.5rem; }
.profile-grid dt { font-size: 0.7rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 0.15rem; }
.profile-grid dd { font-weight: 600; color: var(--forest); word-break: break-word; }

/* ---------- Modal y avisos ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11, 25, 7, 0.55); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 1rem; z-index: 2000; animation: fade 0.25s ease; }
.modal { background: var(--white); border-radius: 28px; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; padding: 1.8rem; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.5); animation: pop 0.4s var(--ease); }
.modal h2 { font-family: var(--serif); color: var(--forest); font-size: 1.35rem; font-weight: 600; margin-bottom: 1.1rem; }
.modal .foot { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.4rem; }
#toasts { position: fixed; right: 1.2rem; bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 3000; }
.toast { background: var(--forest); color: var(--beige); padding: 0.85rem 1.3rem; border-radius: 18px; box-shadow: var(--shadow); font-size: 0.88rem; box-shadow: inset 3px 0 0 var(--gold), var(--shadow); max-width: 340px; animation: slide-in 0.45s var(--ease); }
.toast.error { box-shadow: inset 3px 0 0 #ef4444, var(--shadow); }

/* ---------- Pantallas pequeñas ---------- */
@media (max-width: 960px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-brand { padding: 1.4rem 1.5rem; flex-direction: row; align-items: center; gap: 1rem; }
    .auth-brand h2, .auth-brand p, .auth-brand small { display: none; }
    .logo-badge { width: 64px; height: 64px; border-radius: 20px; }
    .auth-panel { align-items: start; padding-top: 2rem; }
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 290px; margin: 10px; height: calc(100vh - 20px); transform: translateX(-120%); transition: transform 0.4s var(--ease); z-index: 1500; }
    .shell.menu-open .sidebar { transform: none; }
    .shell.menu-open::after { content: ''; position: fixed; inset: 0; background: rgba(11, 25, 7, 0.55); backdrop-filter: blur(3px); z-index: 1400; animation: fade 0.25s; }
    .topbar { display: flex; align-items: center; gap: 0.8rem; margin: 10px 10px 0; background: var(--forest); color: var(--beige); padding: 0.6rem 0.9rem; border-radius: 20px; position: sticky; top: 10px; z-index: 1300; box-shadow: var(--shadow); }
    .topbar button { background: rgba(255, 255, 255, 0.08); border: 0; color: var(--beige); cursor: pointer; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
    .topbar span { font-family: var(--serif); font-weight: 700; }
    .main { padding: 1.4rem 1rem 3rem; }
}
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .card, .kpi { border-radius: 22px; }
    td.acciones { white-space: normal; }
    table { border-spacing: 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Agenda ---------- */
.head-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.weeknav { display: flex; align-items: center; gap: 0.5rem; background: var(--white); padding: 0.35rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.weeknav .weeklabel { text-align: center; padding: 0 0.6rem; min-width: 150px; line-height: 1.2; }
.weeknav .weeklabel b { display: block; font-size: 0.9rem; color: var(--forest); }
.weeknav .weeklabel small { color: var(--muted); font-size: 0.72rem; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.card-top h2 { margin-bottom: 0; }
.card-top h2 small { font-family: var(--sans); font-weight: 500; font-size: 0.78rem; color: var(--muted); margin-left: 0.4rem; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--forest); color: var(--beige); border-radius: 22px; padding: 1rem 1.3rem; margin-bottom: 1.3rem; font-size: 0.9rem; position: relative; overflow: hidden; }
.banner::after { content: ''; position: absolute; width: 180px; height: 180px; right: -50px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(178, 151, 23, 0.45), transparent 70%); pointer-events: none; }
.banner > * { position: relative; z-index: 1; }

.agenda-grid { min-width: 860px; border-spacing: 6px; }
.agenda-grid th { text-align: center; font-size: 0.74rem; }
.agenda-grid th small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 0.74rem; color: var(--muted); }
.agenda-grid th.hoy { color: var(--gold); }
.agenda-grid td { padding: 0; background: transparent; }
.agenda-grid td:first-child { border-radius: 0; }
.agenda-grid tr:hover td { background: transparent; }
.agenda-grid td.emp { padding: 0.4rem 0.8rem 0.4rem 0; min-width: 180px; }
.celda { width: 100%; min-height: 62px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.1rem; border: 0; border-radius: 16px; cursor: pointer; padding: 0.4rem; font-size: 0.82rem; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s; }
.celda small { font-size: 0.68rem; opacity: 0.8; }
.celda:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-sm); }
.celda.trabajo { background: var(--forest); color: var(--beige); }
.celda.trabajo small { color: var(--gold); opacity: 1; }
.celda.libre { background: var(--beige); color: var(--muted); }
.celda.ausencia { background: var(--warn-bg); color: var(--warn); }
.celda.vacio { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px dashed var(--line); border: 1.5px dashed rgba(11, 25, 7, 0.18); }
.celda.vacio:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.agenda-grid td.hoy .celda.libre, .agenda-grid td.hoy .celda.vacio { outline: 2px solid var(--gold-soft); }
.agenda-grid tr.cobertura td { padding-top: 0.5rem; }
.agenda-grid tr.cobertura td.emp b { font-size: 0.82rem; }
.cob { text-align: center; background: var(--gold-soft); border-radius: 14px; padding: 0.45rem 0.2rem; }
.cob b { font-family: var(--serif); font-size: 1.2rem; color: var(--forest); }
.cob small { display: block; font-size: 0.68rem; color: var(--muted); }

.day-group { margin-bottom: 1.2rem; }
.day-group h3 { font-family: var(--serif); font-size: 0.95rem; color: var(--forest); margin-bottom: 0.5rem; }
.day-group h3 small { font-family: var(--sans); font-weight: 500; color: var(--muted); font-size: 0.76rem; margin-left: 0.3rem; }
.task { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1rem; background: var(--beige-2); border-radius: 18px; margin-bottom: 0.45rem; transition: background 0.2s, transform 0.25s var(--ease); }
.task:hover { background: var(--gold-soft); transform: translateX(3px); }
.task.cancelada { opacity: 0.55; } .task.cancelada .t-body b { text-decoration: line-through; }
.t-time { text-align: center; min-width: 52px; line-height: 1.2; padding-right: 0.9rem; border-right: 2px solid var(--gold); }
.t-time b { display: block; color: var(--forest); font-size: 0.92rem; } .t-time small { color: var(--muted); font-size: 0.74rem; }
.t-body { flex: 1; min-width: 0; }
.t-body b { color: var(--forest); font-size: 0.92rem; }
.t-body p { color: var(--muted); font-size: 0.8rem; margin-top: 0.15rem; }
.t-meta { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.35rem; font-size: 0.78rem; color: var(--muted); }
.t-meta .avatar { width: 24px; height: 24px; border-radius: 9px; font-size: 0.62rem; }
.t-side { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; justify-content: flex-end; }
.t-btns { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.week-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.1rem; }
.day-card { margin-bottom: 0; }
.day-card.es-hoy { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.muted-line { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.5rem; }

@media (max-width: 700px) {
    .task { flex-wrap: wrap; }
    .t-side { width: 100%; justify-content: space-between; }
    .week-cards { grid-template-columns: 1fr; }
    .weeknav .weeklabel { min-width: 120px; }
}
