body {
    background: #f5f6fa;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 98vw;
    margin: 20px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0 0 20px 0;
}
.header {
    padding: 32px 32px 8px 32px;
    border-bottom: 1px solid #e5e7eb;
}
.header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
}
.header p {
    margin: 4px 0 0 0;
    color: #666;
    font-size: 1.1rem;
}
.menu {
    display: flex;
    gap: 12px;
    padding: 18px 32px 18px 32px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}
.btn {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1rem;
    color: #222;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
    font-weight: 500;
}
.btn-primary {
    background: #1a2236;
    color: #fff;
    border: 1px solid #1a2236;
}
.btn:hover, .btn-primary:hover {
    background: #e5e7eb;
    color: #1a2236;
}
.btn-primary:hover {
    background: #222b45;
    color: #fff;
}
.btn-danger {
    background: #e53e3e;
    color: #fff;
    border: 1px solid #e53e3e;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
    font-weight: 500;
}
.btn-danger:hover {
    background: #c53030;
    border-color: #c53030;
    color: #fff;
}
.agenda-panel {
    padding: 32px;
}
.agenda-panel h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.agenda-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.agenda-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 900px;
}
.agenda-table th, .agenda-table td {
    border: 1px solid #e5e7eb;
    padding: 12px 8px;
    text-align: center;
    background: #fff;
}
.agenda-table th {
    background: #f8fafc;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    border-bottom: 2px solid #d1d5db;
}
.agenda-table .especialidad {
    font-size: 0.9em;
    color: #666;
    font-weight: 400;
}
.cita {
    background: #e9f0fb;
    border-radius: 8px;
    padding: 8px 6px;
    color: #1a2236;
    font-weight: 500;
    font-size: 1em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    margin: 0 auto;
    width: 90%;
}
.cita .rol {
    font-size: 0.95em;
    color: #4b5563;
}
.footer {
    text-align: center;
    color: #888;
    font-size: 1rem;
    padding: 24px 0 0 0;
    margin-top: 32px;
}
@media (max-width: 900px) {
    .agenda-panel {
        padding: 12px;
    }
    .header, .menu {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(30, 41, 59, 0.25);
    justify-content: center;
    align-items: center;
}
.modal.show {
    display: flex;
}
.modal-content {
    background: #fff;
    margin: auto;
    padding: 32px 24px 24px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    min-width: 320px;
    max-width: 95vw;
    position: relative;
    animation: modalIn 0.2s;
}
@keyframes modalIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}
.close:hover {
    color: #1a2236;
}
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a2236;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-content label {
    font-size: 1rem;
    color: #222;
}
.modal-content input, .modal-content select {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 8px;
    box-sizing: border-box;
}

/* --- MEJORAS PARA MÓVILES --- */
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  .header {
    padding: 18px 8px 8px 8px;
    text-align: center;
  }
  .header h1 {
    font-size: 1.3rem;
  }
  .header p {
    font-size: 1rem;
  }
  .menu {
    flex-direction: column;
    gap: 8px;
    padding: 10px 8px;
    align-items: stretch;
  }
  .btn, .btn-primary, .btn-danger {
    width: 100%;
    font-size: 1.05rem;
    padding: 12px 0;
  }
  .agenda-panel {
    padding: 8px;
  }
  .agenda-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  .agenda-controls {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
  }
  .agenda-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .agenda-table {
    min-width: 600px;
    font-size: 0.95rem;
  }
  .agenda-table th, .agenda-table td {
    padding: 8px 4px;
    font-size: 0.95rem;
  }
  .cita {
    font-size: 0.97em;
    padding: 6px 2px;
  }
  .footer {
    font-size: 0.95rem;
    padding: 12px 0 0 0;
    margin-top: 16px;
  }
  .modal-content {
    min-width: 98vw;
    max-width: 100vw;
    padding: 16px 4px 12px 4px;
    border-radius: 0;
    height: 98vh;
    overflow-y: auto;
  }
  .modal-content h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }
  .modal-content label {
    font-size: 0.98rem;
  }
  .modal-content input, .modal-content select {
    font-size: 1rem;
    padding: 10px 6px;
    margin-bottom: 10px;
  }
  .close {
    top: 8px;
    right: 10px;
    font-size: 1.3rem;
  }
} 