/* ==========================================================================
   MI FICHAJE FÁCIL — App base styles
   Adaptado desde Angular (SCSS) a CSS plano
   ========================================================================== */

/* ====================== VARIABLES ====================== */
:root {
    /* Tema "t-" (header / componentes generales) */
    --t-bg:           #ffffff;
    --t-surface:      #f8fafc;
    --t-border:       #e2e8f0;
    --t-text:         #0f172a;
    --t-text-muted:   #64748b;
    --t-primary:      #3b82f6;
    --t-primary-fg:   #ffffff;
    --t-success:      #16a34a;
    --t-danger:       #ef4444;

    --t-radius-sm:    6px;
    --t-radius-md:    10px;
    --t-radius-lg:    14px;
    --t-radius-full:  999px;

    --t-shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
    --t-shadow-md:    0 4px 14px rgba(0,0,0,0.08);
    --t-shadow-btn:   0 4px 14px rgba(59,130,246,0.35);

    /* Tema "blue-" (sidebar admin) */
    --blue-shadow:            0 4px 20px rgba(13,33,55,0.25);
    --blue-text:              #ffffff;
    --blue-text-muted:        rgba(255,255,255,0.65);
    --blue-link-color:        rgba(255,255,255,0.85);
    --blue-link-hover-bg:     rgba(255,255,255,0.12);
    --blue-link-active-bg:    rgba(255,255,255,0.20);
    --blue-link-active-color: #ffffff;
    --blue-icon-bg:           rgba(255,255,255,0.10);
    --blue-icon-border:       rgba(255,255,255,0.25);
    --blue-icon-hover-bg:     rgba(255,255,255,0.20);
    --blue-icon-active-bg:    rgba(255,255,255,0.30);
}

/* ====================== RESET / BASE ====================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--t-surface);
    color: var(--t-text);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ====================== LAYOUTS ====================== */

/* Layout admin: sidebar fijo + contenido scroll */
.layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.layout .content {
    flex: 1;
    min-width: 0;
    padding: 24px 28px;
    background: var(--t-surface);
    overflow-x: hidden;
    container-type: inline-size;
}

/* Layout trabajador: header arriba, contenido, footer abajo */
.user-full-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.user-content-area {
    flex: 1;
    width: 100%;
}

/* Layout login (sin header/footer/sidebar) */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d2137 0%, #1a5276 35%, #3a94ee 75%, #5fb3f5 100%);
}


/* ==========================================================================
   FOOTER — adaptado de footer-component.scss
   ========================================================================== */
.footer {
    width: 100%;
    padding: 14px 32px;
    background: var(--t-bg);
    border-top: 1px solid var(--t-border);
    margin-top: auto;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__logos {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.footer__logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    border-radius: 4px;
    transition: opacity .2s ease;
}

.footer__logo:hover { opacity: 1; }

.footer__logo-divider {
    width: 1px;
    height: 20px;
    background: var(--t-border);
}

.footer__links p {
    font-size: .76rem;
    color: var(--t-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.footer__sep { color: var(--t-border); }

.footer__link {
    font-size: .76rem;
    color: var(--t-text-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.footer__link:hover {
    color: var(--t-primary);
    text-decoration: underline;
}


/* ==========================================================================
   LOGIN — adaptado de login-component.scss
   ========================================================================== */

.login-wrap {
    display: flex;
    min-height: 100vh;
    width: 100%;
    font-family: 'DM Sans', sans-serif;
}

/* === Panel izquierdo (branding) === */
.login-brand {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 52px;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #0d2137 0%,
        #1a5276 35%,
        #3a94ee 75%,
        #5fb3f5 100%
    );
}

.login-brand__grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 1;
}

.login-brand__bg {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95,179,245,0.20), transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.login-brand__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: auto;
    margin-bottom: auto;
}

.login-brand__logo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeUp .6s ease both;
}

.login-brand__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.login-brand__name {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: -.02em;
    line-height: 1;
    animation: fadeUp .6s .1s ease both;
}

.login-brand__name span { color: #a8d8fa; }

.login-brand__tagline {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    margin: -18px 0 0;
    font-style: italic;
    animation: fadeUp .6s .2s ease both;
}

.login-brand__features {
    display: flex;
    flex-direction: column;
    gap: 13px;
    animation: fadeUp .6s .3s ease both;
}

.login-brand__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: .88rem;
}

.login-brand__feature i {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: #a8d8fa;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .login-brand { display: none; }
}

/* === Panel derecho (form) === */
.login-panel {
    width: 480px;
    min-width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: #f8fafc;
    position:relative;
}

.back-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #fff;
    border: 1.5px solid #e2e8f0;
    color: #334155;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    z-index: 10;
}

.back-btn:hover {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.3);
}

@media (max-width: 768px) {
    .login-panel { width: 100%; min-width: 0; }
}

.login-card {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    animation: fadeUp .5s .2s ease both;
}

.login-card__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-card__welcome {
    font-size: .78rem;
    font-weight: 700;
    color: #3a94ee;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0;
}

.login-card__title {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.1;
}

.login-card__sub {
    font-size: .85rem;
    color: #94a3b8;
    margin: 4px 0 0;
}

.login-card__hint {
    font-size: .76rem;
    color: #94a3b8;
    text-align: center;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-form label {
    font-size: .72rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.login-form .input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.login-form .input-wrap:focus-within {
    border-color: #3a94ee;
    box-shadow: 0 0 0 3px rgba(58,148,238,0.12);
}

.login-form .input-icon {
    padding: 0 14px;
    font-size: 1rem;
    color: #94a3b8;
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-right: 1.5px solid #e2e8f0;
    transition: color .2s, background .2s, border-color .2s;
}

.login-form .input-wrap:focus-within .input-icon {
    color: #3a94ee;
    background: #eff6ff;
    border-color: rgba(58,148,238,0.20);
}

.login-form input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    background: transparent;
    font-size: .92rem;
    color: #0f172a;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    width: 100%;
}

.login-form input::placeholder { color: #cbd5e1; }

.login-form .error {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-form .error span {
    font-size: .74rem;
    color: #ef4444;
    font-weight: 500;
}

.login-form .error span::before { content: '⚠ '; }

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #2176cc, #3a94ee);
    color: #ffffff;
    font-size: .95rem;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(58,148,238,0.40);
    transition: transform .2s ease, box-shadow .2s ease;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}

.login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left .45s ease;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(58,148,238,0.50);
}

.login-btn:hover:not(:disabled)::after { left: 150%; }
.login-btn:active:not(:disabled) { transform: translateY(0); }

.login-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.login-btn i {
    font-size: 1rem;
    transition: transform .2s ease;
}

.login-btn:hover:not(:disabled) i { transform: translateX(4px); }

.login-error {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: .84rem;
    font-weight: 500;
    animation: shake .4s ease;
}

.login-error i {
    font-size: 1rem;
    flex-shrink: 0;
}

.login-error--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.login-error--info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Anular el background del layout login para que el login-wrap ocupe todo */
.login-body {
    background: #ffffff;
    align-items: stretch;
    justify-content: stretch;
}

.login-body main {
    width: 100%;
    display: flex;
}

/* ── Animaciones ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}


/* Canvas de partículas del login */
.login-brand__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}


/* ==========================================================================
   PASO 3 — VISTAS DEL TRABAJADOR
   ========================================================================== */

/* Variables adicionales que faltaban */
:root {
    --t-radius:           10px;
    --t-heading:          #0f172a;
    --t-shadow-card:      0 2px 12px rgba(15, 23, 42, 0.06);
    --t-primary-subtle:   #eff6ff;
    --t-primary-border:   #bfdbfe;
}


/* ==========================================================================
   DASHBOARD TRABAJADOR — adaptado de dashboard-component.scss
   ========================================================================== */
.dashboard__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px - 48px);
    padding: 48px 32px;
    gap: 40px;
    position: relative;
    overflow: hidden;
    background: var(--t-surface);
}

.dashboard__watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 360px;
    object-fit: contain;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.dashboard__title {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
    letter-spacing: -0.04em;
    line-height: 1.1;

    background: linear-gradient(
        135deg,
        var(--t-heading) 0%,
        var(--t-primary) 50%,
        var(--t-heading) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: titleShine 4s linear infinite;
}

.dashboard__title::after {
    content: '';
    display: block;
    margin: 12px auto 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--t-primary), transparent);
    opacity: 0.7;
    animation: lineGrow .8s ease forwards;
}

.dashboard__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 260px));
    gap: 40px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 1100px) {
    .dashboard__grid {
        grid-template-columns: repeat(4, minmax(0, 200px));
        gap: 24px;
    }
}

@media (max-width: 860px) {
    .dashboard__grid {
        grid-template-columns: repeat(2, minmax(0, 220px));
        gap: 24px;
    }
}

@media (max-width: 500px) {
    .dashboard__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 360px) {
    .dashboard__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.dashboard__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px 20px;
    cursor: pointer;
    transition: transform .2s ease;
    text-decoration: none;
    color: inherit;
}

.dashboard__card:hover { transform: translateY(-4px); }
.dashboard__card:hover img { transform: scale(1.08); }
.dashboard__card:active { transform: translateY(-1px); }

.dashboard__card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(191,219,254,0.5), rgba(196,181,253,0.4));
    padding: 18px;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.dashboard__card-label {
    font-size: .88rem;
    font-weight: 700;
    text-align: center;
    color: var(--t-heading);
}

@keyframes titleShine {
    to { background-position: 200% center; }
}
@keyframes lineGrow {
    from { width: 0;    opacity: 0; }
    to   { width: 64px; opacity: 0.7; }
}


/* ==========================================================================
   PERFIL — adaptado de perfil-component.scss
   ========================================================================== */
.perfil {
    display: flex;
    flex-direction: column;
    min-height: 88vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0a1628 0%, #0d2d4a 40%, #1a6090 70%, #2980b9 100%);
}

.perfil::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -150px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41,128,185,0.55) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: blobPulse 8s ease-in-out infinite alternate;
}

.perfil::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95,179,245,0.45) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: blobPulse 10s 2s ease-in-out infinite alternate;
}

.perfil__blob {
    position: absolute;
    top: 45%;
    left: 55%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    animation: blobPulse 6s 1s ease-in-out infinite alternate;
}

.perfil__content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.perfil__header {
    display: flex;
    align-items: center;
    gap: 24px;
    border-radius: var(--t-radius-lg);
    padding: 28px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.20);
    animation: headerIn .5s ease both;
}

.perfil__avatar-wrap {
    position: relative;
    flex-shrink: 0;
    animation: avatarIn .6s .1s ease both;
}

.perfil__avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.45);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform .3s ease;
    background: rgba(255,255,255,0.15);
    padding: 6px;
}
.perfil__avatar:hover { transform: scale(1.05); }

.perfil__badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--t-radius-full);
    background: rgba(255,255,255,0.20);
    color: #ffffff;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
}
.perfil__badge--admin {
    background: rgba(255,255,255,0.30);
    border-color: rgba(255,255,255,0.55);
}

.perfil__header-info { flex: 1; animation: infoIn .6s .2s ease both; }
.perfil__name  { font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0 0 4px; text-shadow: 0 2px 8px rgba(0,0,0,0.20); }
.perfil__email { font-size: .88rem; color: rgba(255,255,255,0.75); margin: 0 0 4px; }
.perfil__meta  { font-size: .78rem; color: rgba(255,255,255,0.55); margin: 0; }

.perfil__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 600px) {
    .perfil__grid { grid-template-columns: 1fr; }
}

.perfil__field {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: var(--t-radius-lg);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: transform .2s ease, box-shadow .2s ease;
    animation: fieldIn .4s ease both;
}

.perfil__field:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.perfil__field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--t-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.perfil__field label i { font-size: .85rem; color: var(--t-primary); }

.perfil__field span {
    font-size: .95rem;
    font-weight: 600;
    color: var(--t-heading);
}

.perfil__masked {
    font-size: 1rem;
    font-weight: 700;
    color: var(--t-text-muted) !important;
    letter-spacing: .15em;
    font-family: monospace;
}

/* Form cards (datos / credenciales) */
.perfil__form-card {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: var(--t-radius-lg);
    padding: 24px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    animation: fieldIn .4s ease both;
}

.perfil__form-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--t-heading);
    margin: 0 0 16px;
}
.perfil__form-title i { color: var(--t-primary); }

.perfil__form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 600px) {
    .perfil__form-grid { grid-template-columns: 1fr; }
}

.perfil__form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.perfil__form-field label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--t-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.perfil__input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--t-border);
    border-radius: var(--t-radius);
    background: var(--t-bg);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.perfil__input-wrap:focus-within {
    border-color: var(--t-primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.perfil__input-icon {
    padding: 0 12px;
    font-size: .95rem;
    color: var(--t-text-muted);
    flex-shrink: 0;
    background: var(--t-surface);
    align-self: stretch;
    display: flex;
    align-items: center;
    border-right: 1.5px solid var(--t-border);
    transition: color .2s, background .2s;
}
.perfil__input-wrap:focus-within .perfil__input-icon {
    color: var(--t-primary);
    background: var(--t-primary-subtle);
    border-color: var(--t-primary-border);
}

.perfil__input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: .9rem;
    color: var(--t-heading);
    outline: none;
    font-family: inherit;
    font-weight: 500;
    width: 100%;
}
.perfil__input::placeholder { color: var(--t-text-muted); }

.perfil__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.perfil__btn-guardar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: var(--t-radius-full);
    border: none;
    background: var(--t-primary);
    color: var(--t-primary-fg);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--t-shadow-btn);
    transition: background .2s, transform .2s;
    text-decoration: none;
}
.perfil__btn-guardar:hover { background: #2563eb; transform: translateY(-1px); color: #fff; }

.perfil__btn-guardar--green {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 4px 14px rgba(22,163,74,0.35);
}
.perfil__btn-guardar--green:hover { background: linear-gradient(135deg, #15803d, #166534); }

.perfil__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px;
    color: rgba(255,255,255,0.70);
}
.perfil__empty i { font-size: 3rem; }
.perfil__empty p { font-size: .9rem; }

@keyframes headerIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes blobPulse {
    from { transform: scale(1);    opacity: 1; }
    to   { transform: scale(1.20); opacity: 0.5; }
}
@keyframes avatarIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes infoIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fieldIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}


.login-error--warning {
    background: #fef3c7 !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}

.login-success {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    font-size: .85rem;
    font-weight: 500;
    animation: shake .3s ease;
}

@keyframes pulse {
    from { transform: scale(1);    opacity: 1;   }
    to   { transform: scale(1.12); opacity: 0.7; }
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes shimmerLine {
    to { background-position: 200% center; }
}


/* ==========================================================================
   MIS FICHAJES (lista) — adaptado de fichaje-component.scss
   ========================================================================== */
.mis-fichajes {
    display: flex;
    flex-direction: column;
    min-height: 86vh;
    background: #f1f5f9;
    font-family: 'DM Sans', sans-serif;
}

.mis-fichajes__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mis-fichajes__toprow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.mis-fichajes__title {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 4px;
    letter-spacing: -.02em;
}

.mis-fichajes__subtitle {
    font-size: .84rem;
    color: #64748b;
    margin: 0;
}

.mis-fichajes__btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #ffffff;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(239,68,68,0.30);
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
}
.mis-fichajes__btn-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239,68,68,0.40);
    color: #fff;
}

.mis-fichajes__filtros {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 2px 12px rgba(15,23,42,0.05);
}

.mis-fichajes__resumen {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 800px) { .mis-fichajes__resumen { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mis-fichajes__resumen { grid-template-columns: 1fr; } }

.filtros__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin: 0;
}

.filtros__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.filtros__field label {
    font-size: .70rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.filtros__field--btn {
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
}

.filtros__select {
    padding: 9px 12px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: .85rem;
    color: #334155;
    outline: none;
    min-width: 160px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.filtros__select:focus {
    border-color: #3a94ee;
    box-shadow: 0 0 0 3px rgba(58,148,238,0.10);
}

.filtros__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
}
.filtros__btn--primary {
    background: linear-gradient(135deg, #2176cc, #3a94ee);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(58,148,238,0.30);
}
.filtros__btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(58,148,238,0.40); color: #fff; }

.filtros__btn--secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
}
.filtros__btn--secondary:hover { background: #e2e8f0; color: #475569; }

.mf-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15,23,42,0.05);
    position: relative;
    overflow: hidden;
    transition: transform .2s ease;
}
.mf-stat:hover { transform: translateY(-2px); }

.mf-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}
.mf-stat--blue::before  { background: #3a94ee; }
.mf-stat--green::before { background: #16a34a; }
.mf-stat--yellow::before{ background: #f59e0b; }
.mf-stat--red::before   { background: #ef4444; }

.mf-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.mf-stat--blue   .mf-stat__icon { background: #eff6ff; color: #3a94ee; }
.mf-stat--green  .mf-stat__icon { background: #f0fdf4; color: #16a34a; }
.mf-stat--yellow .mf-stat__icon { background: #fffbeb; color: #d97706; }
.mf-stat--red    .mf-stat__icon { background: #fef2f2; color: #ef4444; }

.mf-stat__valor {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}
.mf-stat__label {
    display: block;
    font-size: .72rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Tabla genérica reutilizable (mis fichajes + mis ausencias) */
.tabla-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(15,23,42,0.07);
    overflow: hidden;
    min-width: 0;
}

.tabla-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: linear-gradient(135deg, #0d2137 0%, #1a5276 35%, #3a94ee 75%, #5fb3f5 100%);
}

.tabla-card__title {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.tabla-card__badge {
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
}

.tabla-card__wrap { overflow-x: auto; }

.tabla-card table {
    width: 100%;
    border-collapse: collapse;
}

.tabla-card th {
    padding: 11px 18px;
    text-align: left;
    font-size: .70rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .07em;
    border-bottom: 2px solid #f1f5f9;
    background: #f8fafc;
    white-space: nowrap;
}

.tabla-card td {
    padding: 13px 18px;
    font-size: .85rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.tabla-card tbody tr:last-child td { border-bottom: none; }
.tabla-card tbody tr:hover td      { background: #f8fafc; }

.tabla-card__empty {
    text-align: center;
    padding: 40px !important;
    color: #94a3b8;
    font-size: .88rem;
}
.tabla-card__empty i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.tabla-card__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    border-top: 1px solid #f1f5f9;
}

.td-fecha {
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    font-size: .84rem;
}

.td-hora {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: .85rem;
    white-space: nowrap;
}
.td-hora--entrada    { color: #16a34a; }
.td-hora--sin-salida { color: #94a3b8; font-style: italic; font-weight: 400; }

.td-horas {
    font-family: 'Syne', sans-serif;
    font-weight: 900;
    font-size: .95rem;
    color: #0f172a;
}
.td-horas--vacio { color: #94a3b8; font-weight: 400; }

.estado {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}
.estado--completo   { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.estado--abierto    { background: #fef9c3; color: #92400e; border: 1px solid #fde68a; }
.estado--pendiente  { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.estado--aprobado   { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.estado--rechazado  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }


/* ==========================================================================
   MIS AUSENCIAS — adaptado de ausencias-trabajador-component.scss
   ========================================================================== */
.ausencias {
    display: flex;
    flex-direction: column;
    min-height: 85vh;
    background: var(--t-surface);
    font-family: 'DM Sans', sans-serif;
}

.ausencias__content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ausencias__toprow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ausencias__title {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--t-heading);
    margin: 0 0 4px;
}

.ausencias__subtitle {
    font-size: .85rem;
    color: var(--t-text-muted);
    margin: 0;
}

.ausencias__btn-nueva {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: var(--t-radius-full);
    border: none;
    background: var(--t-primary);
    color: var(--t-primary-fg);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--t-shadow-btn);
    transition: background .2s, transform .2s;
    text-decoration: none;
}
.ausencias__btn-nueva:hover { background: #2563eb; transform: translateY(-1px); color: #fff; }

.ausencias__resumen {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 800px) { .ausencias__resumen { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ausencias__resumen { grid-template-columns: 1fr; } }

.ausencias__stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--t-bg);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-lg);
    box-shadow: var(--t-shadow-card);
}

.ausencias__stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--t-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.ausencias__stat-icon--blue   { background: var(--t-primary-subtle); color: var(--t-primary); }
.ausencias__stat-icon--yellow { background: #fef9c3; color: #854d0e; }
.ausencias__stat-icon--green  { background: #dcfce7; color: #166634; }
.ausencias__stat-icon--red    { background: #fee2e2; color: #991b1b; }
.ausencias__stat-icon--purple { background: #ede9fe; color: #5b21b6; }

.ausencias__stat-valor {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--t-heading);
    line-height: 1;
}

.ausencias__stat-label {
    display: block;
    font-size: .75rem;
    color: var(--t-text-muted);
    margin-top: 2px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--t-radius);
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.alert--success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.td-tipo {
    font-size: .76rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--t-radius-full);
    background: var(--t-primary-subtle);
    color: var(--t-primary);
    border: 1px solid var(--t-primary-border);
    white-space: nowrap;
}

.td-dias {
    font-weight: 700;
    color: var(--t-heading);
    text-align: center;
}

.td-comentario {
    font-size: .82rem;
    color: var(--t-text-muted);
    font-style: italic;
}

.btn-cancelar-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--t-radius-full);
    border: 1px solid #fca5a5;
    background: #fee2e2;
    color: #991b1b;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    text-decoration: none;
}
.btn-cancelar-row:hover { background: #fecaca; border-color: #f87171; color: #991b1b; }

.btn-ver-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--t-radius-full);
    border: 1px solid var(--t-primary-border);
    background: var(--t-primary-subtle);
    color: var(--t-primary);
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    text-decoration: none;
}
.btn-ver-row:hover { background: #dbeafe; border-color: #93c5fd; }

.paginacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 22px;
    border-top: 1px solid var(--t-border);
    background: var(--t-surface);
}


/* ==========================================================================
   MODAL (nueva ausencia) — adaptado del Angular
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}
.modal-overlay.is-open {
    display: flex;
    animation: fadeIn .2s ease;
}

.ausencias-modal {
    background: var(--t-bg);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.30);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    animation: cardIn .3s ease both;
}

.ausencias-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(135deg, #0d2137 0%, #1a5276 35%, #3a94ee 75%, #5fb3f5 100%);
}
.ausencias-modal__header h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.ausencias-modal__close {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    border-radius: var(--t-radius-full);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .9rem;
    transition: background .2s;
}
.ausencias-modal__close:hover { background: rgba(255,255,255,0.28); }

.ausencias-modal__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.ausencias-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--t-border);
    background: var(--t-surface);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-field label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--t-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    background: var(--t-bg);
    color: var(--t-text);
    font-size: .85rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
    border-color: var(--t-primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.10);
}

.form-error {
    font-size: .82rem;
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: var(--t-radius);
    padding: 8px 12px;
}

.btn-enviar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--t-radius-full);
    border: none;
    background: var(--t-primary);
    color: var(--t-primary-fg);
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--t-shadow-btn);
    transition: background .2s, transform .2s;
    text-decoration: none;
}
.btn-enviar:hover { background: #2563eb; transform: translateY(-1px); color: #fff; }

.btn-cancelar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--t-radius-full);
    border: 1px solid var(--t-border);
    background: transparent;
    color: var(--t-text);
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    text-decoration: none;
}
.btn-cancelar:hover { background: var(--t-surface); border-color: var(--t-text-muted); color: var(--t-text); }


/* ==========================================================================
   DETALLE AUSENCIA (show) — composición simple sobre tabla-card
   ========================================================================== */
.absence-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.absence-detail__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--t-border);
    flex-wrap: wrap;
    gap: 10px;
}
.absence-detail__row:last-child { border-bottom: none; }
.absence-detail__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--t-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.absence-detail__label i { color: var(--t-primary); font-size: .95rem; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ==========================================================================
   PASO 4 — VISTAS ADMIN
   ========================================================================== */

/* Fix layout admin: que el .content no tenga padding y deje que cada
   vista admin gestione su propio padding/fondo (si no, ves franja gris) */
.layout .content {
    padding: 0;
}

/* El contenido admin ocupa todo el alto */
.layout .content > * {
    min-height: 100vh;
}


/* ==========================================================================
   DASHBOARD ADMIN
   ========================================================================== */
.dashboard__main--admin {
    background: #f1f5f9;
}

.dashboard__grid--admin {
    grid-template-columns: repeat(3, 220px);
    gap: 56px;
}

@media (max-width: 1100px) {
    .dashboard__grid--admin { grid-template-columns: repeat(2, 200px); gap: 40px; }
}
@media (max-width: 600px) {
    .dashboard__grid--admin { grid-template-columns: 1fr; }
}

.dashboard__grid--admin .dashboard__card img {
    width: 120px;
    height: 120px;
}


/* ==========================================================================
   GESTIÓN EMPLEADOS — adaptado de gestion-empleados-component.scss
   ========================================================================== */
.gestion-empleados {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    background: #f1f5f9;
}

.gestion-empleados .topbar {
    border-bottom: 1px solid var(--t-border);
    background: var(--t-bg);
}

.topbar__search {
    background: var(--t-surface);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-lg);
    padding: 8px 16px;
    width: 240px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color .2s, box-shadow .2s;
}
.topbar__search:focus-within {
    border-color: #3a94ee;
    box-shadow: 0 0 0 3px rgba(58,148,238,0.10);
}
.topbar__search i { color: var(--t-text-muted); font-size: .95rem; }
.topbar__search input {
    border: none;
    background: none;
    outline: none;
    font-size: .88rem;
    color: var(--t-heading);
    width: 100%;
}
.topbar__search input::placeholder { color: var(--t-text-muted); }

.topbar__icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--t-radius);
    border: 1px solid var(--t-border);
    background: var(--t-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--t-text);
    cursor: pointer;
    position: relative;
    transition: background .2s;
}
.topbar__icon-btn:hover { background: var(--t-primary-subtle); color: var(--t-primary); }

.topbar__icon-btn--notif .topbar__notif-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--t-bg);
}

.topbar__divider {
    width: 1px;
    height: 26px;
    background: var(--t-border);
}

.topbar__user { cursor: pointer; }
.topbar__user span {
    font-size: .88rem;
    font-weight: 600;
    color: var(--t-heading);
}
.topbar__user img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--t-primary-border);
    background: rgba(0,0,0,0.05);
    padding: 4px;
}

.gestion-empleados .ge-content {
    flex: 1;
    overflow-y: auto;
    background: #f1f5f9;
}

/* Tabla card — el header en degradado azul */
.gestion-empleados .tabla-card__btn-nuevo,
.tabla-card__btn-nuevo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    color: #1a5276;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15,23,42,0.15);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}
.tabla-card__btn-nuevo:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15,23,42,0.20);
    color: #1a5276;
}

.tabla-card__info {
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.tabla-card__filtro-activo {
    color: var(--t-primary);
    font-weight: 600;
    margin-left: 4px;
}

.gestion-empleados .td-empleado {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gestion-empleados .td-empleado img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #bfdbfe;
    flex-shrink: 0;
    background: rgba(0,0,0,0.05);
    padding: 3px;
}
.td-empleado__nombre {
    font-weight: 600;
    color: #0f172a;
    font-size: .86rem;
    text-decoration: none;
    display: block;
}
.td-empleado__email {
    font-size: .75rem;
    color: #94a3b8;
}
a.td-empleado__nombre:hover { color: var(--t-primary); }

.btn-accion {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    border: none;
    font-size: .74rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
}
.btn-accion:hover { transform: translateY(-1px); }

.btn-accion--primary {
    background: #3a94ee;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(58,148,238,0.25);
}
.btn-accion--primary:hover {
    box-shadow: 0 4px 14px rgba(58,148,238,0.40);
    color: #fff;
}

.btn-accion--secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.btn-accion--secondary:hover { background: #e2e8f0; color: #475569; }

.btn-accion--info {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.btn-accion--info:hover { background: #dcfce7; color: #15803d; }

.pagination__info {
    font-size: .78rem;
    color: #94a3b8;
}


/* ==========================================================================
   GESTIÓN AUSENCIAS ADMIN — adaptado de gestion-ausencias-component.scss
   ========================================================================== */
.ausencias-admin {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    min-height: 100vh;
    background: #f1f5f9;
    font-family: 'DM Sans', sans-serif;
}

.ausencias-admin__toprow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ausencias-admin__title {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 4px;
    letter-spacing: -.02em;
}

.ausencias-admin__subtitle {
    font-size: .84rem;
    color: #64748b;
    margin: 0;
}

.ausencias-admin__role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    font-size: .78rem;
    font-weight: 700;
}
.ausencias-admin__role i { font-size: .85rem; }

.ausencias-admin__filtros {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(15,23,42,0.05);
}

.filtros__input {
    padding: 9px 12px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: .85rem;
    color: #334155;
    outline: none;
    min-width: 150px;
    font-family: 'DM Sans', sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ausencias-admin .td-empleado__nombre {
    display: inline-block;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.filtros__input:focus {
    border-color: #3a94ee;
    box-shadow: 0 0 0 3px rgba(58,148,238,0.10);
    background: #ffffff;
}

.tabla-card .th-acciones {
    color: #3a94ee;
    background: #eff6ff !important;
}

.gestion-empleados .td-empleado__avatar,
.ausencias-admin .td-empleado__avatar,
.td-empleado__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1.5px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: #3a94ee;
    flex-shrink: 0;
}

.td-acciones {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-aprobar,
.btn-rechazar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    font-size: .74rem;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
}
.btn-aprobar:hover,
.btn-rechazar:hover { transform: translateY(-1px); }

.btn-aprobar {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(22,163,74,0.25);
}
.btn-aprobar:hover {
    box-shadow: 0 4px 14px rgba(22,163,74,0.40);
    color: #fff;
}

.btn-rechazar {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 2px 8px rgba(239,68,68,0.25);
}
.btn-rechazar:hover {
    box-shadow: 0 4px 14px rgba(239,68,68,0.40);
    color: #fff;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   CREAR USER — adaptado de crear-user-component.scss
   ========================================================================== */
.crear-user-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0d2137 0%, #1a5276 100%);
    padding: 20px;
}

.crear-user-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(13, 33, 55, 0.25);
    width: 100%;
    max-width: 520px;
    padding: 45px 40px;
    animation: cuFadeIn 0.4s ease;
}

.crear-user-card .card-header {
    text-align: center;
    margin-bottom: 35px;
}
.crear-user-card .card-header h2 {
    color: #0d2137;
    font-weight: 700;
    font-size: 1.9rem;
    margin-bottom: 10px;
}
.crear-user-card .card-header p {
    color: #64748b;
    font-size: 0.97rem;
    margin: 0;
}

.crear-user-card .form-group {
    margin-bottom: 22px;
}
.crear-user-card .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0d2137;
    font-size: 0.96rem;
}
.crear-user-card .form-group input[type="text"],
.crear-user-card .form-group input[type="email"],
.crear-user-card .form-group input[type="password"],
.crear-user-card .form-group input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}
.crear-user-card .form-group input:focus {
    outline: none;
    border-color: #3a94ee;
    box-shadow: 0 0 0 4px rgba(58, 148, 238, 0.12);
}
.crear-user-card .form-group small {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 0.83rem;
}

.crear-user-card .input-with-btn {
    display: flex;
    gap: 12px;
}
.crear-user-card .input-with-btn input {
    flex: 1;
}

.crear-user-card .btn-generar {
    padding: 14px 20px;
    background: #475569;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.93rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}
.crear-user-card .btn-generar:hover {
    background: #334155;
    transform: translateY(-1px);
}

.crear-user-card .required { color: #ef4444; }

.crear-user-card .form-section {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 24px 0;
}
.crear-user-card .section-title {
    font-size: .9rem;
    font-weight: 700;
    color: #0d2137;
    padding: 0 8px;
}
.crear-user-card .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 500px) {
    .crear-user-card .form-row { grid-template-columns: 1fr; }
}
.crear-user-card .field-error {
    display: block;
    margin-top: 4px;
    color: #ef4444;
    font-size: .82rem;
}

.crear-user-card .form-actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
}
.crear-user-card .form-actions .btn-cancel,
.crear-user-card .form-actions .btn-crear {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.02rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
}
.crear-user-card .btn-cancel {
    background: #f8fafc;
    color: #475569;
}
.crear-user-card .btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
}
.crear-user-card .btn-crear {
    background: linear-gradient(135deg, #3a94ee, #60a5fa);
    color: white;
    box-shadow: 0 4px 15px rgba(58, 148, 238, 0.3);
}
.crear-user-card .btn-crear:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(58, 148, 238, 0.4);
    color: #fff;
}

.crear-user-card .alert {
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.crear-user-card .alert-success {
    background: #d4edda;
    color: #155724;
}
.crear-user-card .alert-danger {
    background: #f8d7da;
    color: #721c24;
}

@keyframes cuFadeIn {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   MANAGE / FORMULARIOS GRANDES (gestionar trabajador, ausencias edit, etc)
   ========================================================================== */
.manage-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 16px rgba(15,23,42,0.07);
}

.manage-card--warning {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.manage-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.manage-card__title i { color: var(--t-primary); }
.manage-card--warning .manage-card__title i { color: #d97706; }

.manage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 700px) {
    .manage-grid { grid-template-columns: 1fr; }
}

.manage-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.manage-field label {
    font-size: .72rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.manage-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.field-error {
    display: block;
    margin-top: 4px;
    color: #ef4444;
    font-size: .78rem;
}

.btn-enviar--warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 14px rgba(245,158,11,0.30);
}
.btn-enviar--warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.period-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.period-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
}
.period-form--warning {
    background: #fffbeb;
    border-color: #fde68a;
}
.period-form__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
}
.period-form__title i { color: var(--t-primary); }
.period-form--warning .period-form__title i { color: #d97706; }
.period-form__current {
    margin: 0 0 12px;
    font-size: .85rem;
    color: #64748b;
}
.period-form__current strong { color: #0f172a; }


/* ==========================================================================
   EDICIÓN INLINE FICHAJES (admin/signs)
   ========================================================================== */
.signs-edit-table { table-layout: fixed; width: 100%; }
.signs-edit-table .col-fecha     { width: 17%; }
.signs-edit-table .col-hora      { width: 14%; }
.signs-edit-table .col-horas     { width: 10%; }
.signs-edit-table .col-modificado{ width: 20%; }
.signs-edit-table .col-accion    { width: 10%; }

.signs-edit-table tbody tr:hover td { background: #f8fafc; }

.signs-input {
    padding: 6px 10px;
    font-size: .82rem;
    width: 100%;
    box-sizing: border-box;
}

.btn-aprobar--sm {
    padding: 5px 12px;
    font-size: .80rem;
    white-space: nowrap;
}

.td-modificado {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.td-modificado__nombre {
    font-size: .82rem;
    font-weight: 600;
    color: #1e40af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.td-modificado__fecha {
    font-size: .72rem;
    color: #94a3b8;
}
.td-modificado__none {
    color: #cbd5e1;
    font-size: .85rem;
}


/* ==========================================================================
   FIX layout admin: que el contenido "fichaje" llene a la derecha del sidebar
   ========================================================================== */
/* Era el bug que viste en la captura: el .content tenía padding y el fichaje
   no se estiraba. Lo soluciono dejando que cada vista admin se gestione
   con su propio fondo a 100vh. */
.layout > .content {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}
/* FIX — Acciones en lista de ausencias */
.td-acciones-wrap {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.estado-finalizado {
    color: var(--t-text-muted);
    font-size: .85rem;
}


/*Checkbox is_watto en UserMange*/

.manage-field--checkbox {
    justify-content: flex-end;
}

.manage-field--checkbox label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    font-size: .88rem;
    cursor: pointer;
    height: calc(9px + 9px + 2px + (0.85rem * 1.5));
    /* replica la altura exacta de un .form-control */
}

.manage-field--checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--t-primary);
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

/* ── Trial banner ──────────────────────────────────────────────────────────── */
.trial-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.trial-banner--ok      { background: #166534; color: #dcfce7; }
.trial-banner--warning { background: #92400e; color: #fef3c7; }
.trial-banner--danger  { background: #991b1b; color: #fee2e2; }

.trial-banner__icon { font-size: 1rem; }

.trial-banner__cta {
    padding: 0.25rem 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    color: inherit;
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.2s;
}

.trial-banner__cta:hover {
    background: rgba(255,255,255,0.28);
    color: inherit;
}
