/* ===== ESTILOS BASE (mismos colores que la agenda) ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 20px;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.nav-btn, .nav-btn button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}
.btn-primary {
    background: #28a745;
}
.btn-gestion {
    background: #6c757d;
}
.filters {
    padding: 15px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.day-header {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #1a73e8;
}
.day-cell {
    min-height: 140px;
    border: 1px solid #e0e0e0;
    padding: 8px;
    background: white;
    transition: all 0.2s;
}
.day-cell:hover {
    background: #f8f9ff;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1;
}
.day-number {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 50%;
}
.today .day-number {
    background: #ffc107;
    color: #333;
}
.event {
    background: #e3f2fd;
    border-left: 4px solid #1a73e8;
    margin-bottom: 6px;
    padding: 6px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.event:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.event-tecnico {
    font-weight: bold;
    font-size: 10px;
    color: #0d47a1;
}
.btn-agregar {
    font-size: 10px;
    display: inline-block;
    margin-top: 8px;
    color: #1a73e8;
    text-decoration: none;
}
.empty-day {
    color: #ccc;
    font-size: 11px;
    text-align: center;
    margin-top: 20px;
}
.footer {
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}
.tooltip {
    position: fixed;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    display: none;
    max-width: 250px;
    z-index: 1000;
    pointer-events: none;
    white-space: pre-line;
}
/* ===== MODAL (mismo diseño) ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalopen 0.3s;
}
@keyframes modalopen {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    float: right;
}
.close:hover { color: black; }
.modal-content h2, .modal-content h3 {
    color: #1a73e8;
}
.tecnico-form .form-group-modal {
    margin-bottom: 12px;
}
.tecnico-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: #333;
}
.tecnico-form input, .tecnico-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}
.modal-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}
.btn-guardar {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}
.btn-cancelar {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}
.btn-editar {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-eliminar {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.tabla-tecnicos {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.tabla-tecnicos th, .tabla-tecnicos td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.tabla-tecnicos th {
    background: #e8f0fe;
    color: #1a73e8;
}
/* Páginas de formulario y detalle */
.form-page, .detail-page, .list-page, .info-page {
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.form-container, .detail-container, .list-container, .info-container {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 90%;
}
.form-container form label {
    font-weight: 600;
    display: block;
    margin-top: 10px;
}
.form-container form input, .form-container form select, .form-container form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.form-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.form-buttons button, .btn-volver {
    background: #1a73e8;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}
.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}
@media (max-width: 768px) {
    .day-cell { min-height: 100px; }
    .event { font-size: 9px; }
    .day-number { font-size: 14px; }
    .modal-content { width: 95%; margin: 10% auto; }
}