/* Variables CSS */
:root {
    --primary-color: #CC3300;
    --secondary-color: #f8f9fa;
    --text-primary: #333;
    --text-secondary: #666;
    --neutral-light: #fff;
    --neutral-medium: #6c757d;
    --row-odd: #fdffcc;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Play', sans-serif;
    background-color: white; /* Cambiado a blanco puro */
    color: var(--text-primary);
    line-height: 1.6;
}

/* Contenedores principales */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.header-card h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0;
}

/* Logo */
.logo-header {
    text-align: center;
    margin-bottom: 30px;
}

.main-logo {
    max-width: 224px;
    height: auto;
}

/* Tarjeta de acceso denegado */
.access-denied-card {
    max-width: 500px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.access-denied-card .logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.access-denied-card h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.access-denied-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Formulario de búsqueda */
.search-form {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-primary);
}

.form-input, .form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Play', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(204, 51, 0, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Tablas */
.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.results-table thead {
    background: var(--primary-color);
    color: white;
}

.results-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.results-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.results-table tr.odd {
    background-color: var(--row-odd);
}

.results-table tr.even {
    background-color: white;
}

.results-table tr:hover {
    background-color: #f0f0f0;
}

.results-table a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.results-table a:hover {
    color: #992200;
    text-decoration: underline;
}

/* Paginación */
.pagination {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.pagination-info {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.pagination-link, .current-page {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.pagination-link {
    background: var(--neutral-medium);
    color: white;
}

.pagination-link:hover {
    background: var(--primary-color);
}

.current-page {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

/* Botones */
.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Play', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-weight: bold;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(204, 51, 0, 0.3);
}

.btn-primary:hover {
    background: #992200;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(204, 51, 0, 0.4);
}

.btn-secondary {
    background: var(--neutral-medium);
    color: white;
    box-shadow: 0 4px 6px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(108, 117, 125, 0.4);
}

/* Formularios en línea */
.inline-form {
    display: inline-block;
    margin: 0 10px;
}

/* Mensajes */
.no-results {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.no-results p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Action buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .results-table {
        font-size: 0.9rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .inline-form {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .header-card h1 {
        font-size: 1.5rem;
    }
    
    .pagination-link, .current-page {
        padding: 6px 10px;
        margin: 0 3px;
        font-size: 0.9rem;
    }
}
.search-form {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.form-input, .form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Play', sans-serif;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-family: 'Play', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: #CC3300;
    color: white;
}

.btn-primary:hover {
    background: #992200;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}
.section-title {
    color: #CC3300;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #CC3300;
    padding-bottom: 5px;
}
/* Cabecera personalizada */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.header-user {
    font-weight: bold;
    color: var(--text-primary);
}

.header-company {
    text-align: center;
    margin: 0;
    font-size: 1.1em;
    color: var(--primary-color);
}

.header-logo {
    width: 150px;
    height: 53px;
}

.header-time {
    text-align: right;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.header-actions {
    text-align: left;
    margin-top: 10px;
}

.header-actions a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

/* Menú horizontal */
.menu-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.menu-item {
    position: relative;
}

.menu-item a {
    display: block;
    padding: 8px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Play', sans-serif;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}

.menu-item a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    min-width: 150px;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.menu-item:hover .dropdown-menu {
    display: block;
}