:root {
  --primary: #c00;
  --secondary: #e33;
  --light: #fff5f5;
  --dark: #222;
  --border: #ccc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background-color: #fff;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h1 {
  font-size: 1.6rem;
}

h2 {
  color: var(--primary);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}

h3 {
  color: var(--secondary);
  margin: 1.2rem 0 0.8rem;
  font-size: 1.2rem;
}

.tabs {
  display: flex;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  gap: 5px;
}

.tab {
  padding: 0.8rem 1.2rem;
  background: #f0f0f0;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  transition: 0.3s;
  font-size: 0.95rem;
}

.tab:hover {
  background: #ffd;
}

.tab.active {
  background: var(--primary);
  color: white;
}

.tab-content {
  display: none;
  padding: 1.5rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 0 10px 10px 10px;
}

.tab-content.active {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--secondary);
  color: white;
}

tr:hover {
  background: #ffe;
}

select, input, button {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.95rem;
}

select {
  width: 100%;
}

button {
  background: var(--primary);
  color: white;
  cursor: pointer;
  border: none;
}

button:hover {
  background: #a00;
}

.btn-pdf, .btn-print {
  background: #2c5;
}

.btn-print {
  background: #666;
  margin-left: 5px;
}

.btn-pdf:hover, .btn-print:hover {
  opacity: 0.9;
}

.form-group {
  margin: 1rem 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.note {
  font-size: 0.9rem;
  color: var(--dark);
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff0f0;
  border-left: 4px solid var(--secondary);
  border-radius: 0 8px 8px 0;
}

.warning {
  color: #c00;
  font-weight: bold;
}

.btn-edit {
  background: #07a;
}

.btn-save {
  background: #2c5;
}

.btn-remove {
  background: #a00;
}

.btn-cancel {
  background: #666;
}

footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
}

/* Etiquetas de turno */
.turno-tag {
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  color: white;
}

.mañana { 
  background: #0066cc; 
}

.tarde { 
  background: #cc6600; 
}

/* Controles del resumen */
.summary-controls {
  margin-bottom: 1rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.summary-controls button {
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
}

/* Loading indicator */
.loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* Error messages */
.error-message {
  background: #ffe6e6;
  color: #c00;
  padding: 1rem;
  border-radius: 5px;
  margin: 1rem 0;
  border-left: 4px solid #c00;
}

/* Success messages */
.success-message {
  background: #e6ffe6;
  color: #006600;
  padding: 1rem;
  border-radius: 5px;
  margin: 1rem 0;
  border-left: 4px solid #006600;
}