/* ==============================
   VARIABLES CORPORATIVAS
   ============================== */
:root {
    --primary-color: #2b776b;          /* Verde Paradiso */
    --primary-hover: #245f56;
    --primary-soft: rgba(43,119,107,0.12);

    --text-color: #1f2937;             /* Gris muy oscuro */
    --text-muted: #4b5563;

    --bg-color: #f8f9fa;
    --surface-color: #ffffff;

    --border-color: #d1d5db;

    --header-bg: var(--primary-color);
    --header-text: #ffffff;

    --footer-bg: #eef2f3;
    --footer-text: #4b5563;

    --danger-color: #dc3545;
    --warning-color: #e9a23b;
    --info-color: #5bbad5;

    --focus-ring: rgba(43,119,107,0.5);
}

/* ==============================
   RESET / BASE
   ============================== */
body {
    font-family: Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    color: var(--text-color);
}

h2 {
    color: var(--primary-color);
}

/* ==============================
   HEADER – LA SANTA CRUZ
   ============================== */
.main-header {
    background: var(--primary-color);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.main-header h1 {
    font-size: 1.3rem;
    margin: 0;
    letter-spacing: 0.4px;
    color: #fff;
}

/* Navegación derecha */
.header-right {
    display: flex;
    gap: 10px;
}

.header-right a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.header-right a:hover {
    background: rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.header-right a svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Responsive */
@media (max-width: 600px) {
    .header-right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .header-right a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}


/* ==============================
   CONTENIDO
   ============================== */
.content {
    padding: 20px;
}

/* ==============================
   FOOTER
   ============================== */
.main-footer {
    background: var(--footer-bg);
    text-align: center;
    padding: 12px;
    font-size: 14px;
    color: var(--footer-text);
    margin-top: 40px;
}

/* ==============================
   TOP BAR / FILTROS
   ============================== */
.top-bar,
.filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.filter-bar input,
.filter-bar select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* ==============================
   BOTONES
   ============================== */
.btn,
.btn-small,
a.btn {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-hover);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover,
.btn-small:hover,
a.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-sm {
    font-size: 0.85em;
    padding: 4px 10px;
}

.btn-danger { background-color: var(--danger-color); }
.btn-warning { background-color: var(--warning-color); }
.btn-info { background-color: var(--info-color); }

/* ==============================
   LINKS
   ============================== */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    opacity: 0.85;
}

/* ==============================
   TABLAS
   ============================== */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

th, td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

th {
    background-color: var(--primary-color);
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f3f6f5;
}

tr:hover {
    background-color: var(--primary-soft);
}

/* ==============================
   CARDS / DASHBOARD
   ============================== */
.cards-container,
.dashboard-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card,
.dashboard-buttons a,
.dashboard-buttons button {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--text-color);
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.card:hover,
.dashboard-buttons a:hover,
.dashboard-buttons button:hover {
    background-color: var(--primary-soft);
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* ==============================
   FORMULARIOS
   ============================== */
input, select, textarea {
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 0.95em;
}

form.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 20px auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
}

.checkbox-group {
    margin-top: 10px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}


/* ==============================
   BADGES
   ============================== */
.badge {
    padding: 0.3em 0.6em;
    border-radius: 4px;
    color: #fff;
    font-size: 0.85em;
}

.badge-success { background-color: var(--primary-color); }
.badge-danger { background-color: var(--danger-color); }
.badge-warning { background-color: var(--warning-color); }

/* ==============================
   MODAL
   ============================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: var(--surface-color);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
}

/* ==============================
   ACCESIBILIDAD
   ============================== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

/* ==============================
   FICHAJE
   ============================== */
.fichaje-buttons button {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-hover);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all .15s ease;
}

.fichaje-buttons button:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.fichaje-buttons button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.page-center {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.card-form {
    max-width: 600px;
    width: 100%;
}


