/* =========================
   Reset global
========================= */

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

/* =========================
   Body y contenedor principal
========================= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #4a6b4c 0%, #4a6b4c 100%);
  min-height: 100vh;
}

main {
  padding: 2rem;
}

h2 {
  color: #4a6b4c;
}

h3 {
  color: #4a6b4c;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =========================
   Header y navegación
========================= */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header h1 {
  color: #4a6b4c;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.header nav a {
  color: #4a6b4c;
  text-decoration: none;
  margin-right: 1.5rem;
  font-weight: 500;
  transition: all 0.3s;
}

.header nav a:hover {
  color: #4a6b4c;
  transform: translateY(-2px);
}

/* =========================
   Cards
========================= */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  margin-bottom: 2rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: #4a6b4c;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h3::before {
  content: "📋";
  font-size: 1.8rem;
}

/* =========================
   Formularios
========================= */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  color: #4a6b4c;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input, select, textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s;
  background: white;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #4a6b4c;
  box-shadow: 0 0 0 3px rgba(74, 107, 76, 0.1);
}

textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.editar-btn, .eliminar-btn {
color: white;
    background: transparent; /* ¡Fuerza la transparencia! */
    border: none ;                 /* ¡Fuerza la eliminación del borde! */
}

button {
  background: linear-gradient(135deg, #4a6b4c 0%, #4a6b4c 100%);
  color: white;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(74, 107, 76, 0.4);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 107, 76, 0.6);
}

button:active {
  transform: translateY(0);
}

/* =========================
   Tablas
========================= */
.table-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

thead {
  background: linear-gradient(135deg, #4a6b4c 0%, #4a6b4c 100%);
  color: white;
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

th:first-child { border-top-left-radius: 10px; }
th:last-child { border-top-right-radius: 10px; }

tbody tr {
  background: white;
  transition: all 0.3s;
}

tbody tr:nth-child(even) { background: #e0e2ff; }

tbody tr:hover {
  background: #e0e2ff;
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

td {
  padding: 1rem;
  color: #4a6b4c;
  border-bottom: 1px solid #e2e8f0;
}

/* =========================
   Calendar Maestro
========================= */
#calendar {
  height: 600px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 1rem;
  overflow: visible;
}

/* =========================
   Badges y estados
========================= */
.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, #4a6b4c 0%, #4a6b4c 100%);
  color: white;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #a0aec0;
}

.empty-state::before {
  content: "📭";
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

/* =========================
   Misc
========================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4a6b4c;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #4a6b4c;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================
   Login box
========================= */
.login-box {
  background: rgba(255, 255, 255, 0.7);
  width: 320px;
  margin: 60px auto;
  padding: 20px;
  border-radius: 6px;

  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  margin-bottom: 2rem;

}



.fc-timeline-slot-cushion  {          /* título principal del calendario */
  color: #2b6cb0;            /* cambia al color que quieras */
}

.fc-col-header-cell,         /* encabezados de días */
.fc-resource-cell,           /* encabezado de recursos */
.fc-toolbar-title,
.fc-timeline-slot-cushion  {          /* título principal del calendario */
  color: #4a6b4c;            /* cambia al color que quieras */
}

.fin-de-semana  {
  background-color: #f0f0f0; } /* gris claro */

/* =========================
   TODA TU HOJA ORIGINAL (SIN CAMBIOS)
========================= */

<--- TODO TU CSS TAL CUAL LO ENVIASTE (no lo repito aquí por espacio) --->


/* ============================================================
   ??? RESPONSIVIDAD ? SOLO CSS, SIN CAMBIAR TU DISEÑO ???
   ============================================================ */

@media (max-width: 900px) {

  /* ---- Layout general ---- */
  main {
    padding: 1rem;
  }

  .container {
    padding: 0 0.5rem;
  }

  /* ---- Header ---- */
  .header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.8rem;
  }

  .header h1 {
    font-size: 1.6rem;
  }

  .header nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.1rem;
  }

  .header nav a {
    margin-right: 0;
  }

  /* ---- Cards ---- */
  .card {
    padding: 1.2rem;
  }

  /* ---- Grilla de estadísticas ---- */
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  /* ---- Formularios ---- */
  input, select, textarea {
    font-size: 1rem;
    padding: 0.75rem;
  }

  label {
    font-size: 0.8rem;
  }

  /* ---- Login ---- */
  .login-box {
    width: 90%;
    margin: 40px auto;
    padding: 1.5rem;
  }
}

/* ============================================================
   ??? RESPONSIVIDAD EXTRA ? PANTALLAS PEQUEÑAS (TELÉFONOS) ???
   ============================================================ */

@media (max-width: 600px) {

  /* ---- Header aún más compacto ---- */
  .header {
    padding: 1rem;
    border-radius: 10px;
  }

  .header h1 {
    font-size: 1.4rem;
  }

  .header nav {
    font-size: 1rem;
    gap: 0.3rem;
  }

  /* ---- Cards ---- */
  .card {
    padding: 1rem;
    border-radius: 15px;
  }

  /* ---- Tablas ---- */
  .table-card {
    padding: 1rem;
    overflow-x: auto; /* scroll horizontal sin romper diseño */
  }

  table {
    min-width: 700px; /* asegura que no se aplaste */
  }

  td, th {
    padding: 0.7rem;
    font-size: 0.85rem;
  }

  /* ---- Calendar ---- */
  #calendar {
    height: auto;
    padding: 0.5rem;
  }

  .fc-toolbar-title {
    font-size: 1.2rem !important;
  }
}

/* ============================================================
   ??? RESPONSIVE EXTREMO (iPhone SE, pantallas muy chicas) ???
   ============================================================ */

@media (max-width: 400px) {
  .header h1 {
    font-size: 1.2rem;
  }

  .header nav {
    font-size: 0.9rem;
  }

  button {
    font-size: 0.9rem;
    padding: 0.7rem;
  }

  .card {
    padding: 0.8rem;
  }
}

/* ============================================================
   ? OPTIMIZACIÓN FULLCALENDAR ? SOLO CSS
   ============================================================ */

/* General */
.fc {
  font-family: inherit;
}

/* Encabezado: tamaño, separación, visibilidad */
@media (max-width: 900px) {

  /* Reduce el padding del header */
  .fc-header-toolbar {
    padding: 0.5rem;
  }

  .fc-toolbar-title {
    font-size: 1.3rem !important;
  }

  .fc-toolbar-chunk {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
  }

  /* Agranda botones para tocar en móvil */
  .fc-button {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.9rem !important;
    border-radius: 6px !important;
  }
}

/* Timeline + resources */
@media (max-width: 900px) {

  /* Altura automática para evitar scroll excesivo */
  #calendar .fc-timeline {
    height: auto !important;
  }

  /* Compacta los slots */
  .fc-timeline-slot {
    padding: 3px !important;
    font-size: 0.75rem !important;
  }

  /* Headers de recursos */
  .fc-resource-cell {
    font-size: 0.85rem !important;
    padding: 4px !important;
    white-space: normal !important;  /* Permite que los nombres se partan */
    line-height: 1.2;
  }

  /* Celdas del timeline */
  .fc-timeline-slot-cushion {
    font-size: 0.75rem !important;
    padding: 2px 4px !important;
  }
}

/* Eventos */
@media (max-width: 900px) {

  /* Eventos más altos y legibles */
  .fc-timeline-event {
    min-height: 28px !important;
    padding: 3px !important;
    border-radius: 6px !important;
    font-size: 0.80rem !important;
  }

  /* Texto del evento */
  .fc-event-title {
    white-space: normal !important;
    line-height: 1.2 !important;
  }
}

/* Scroll */
@media (max-width: 900px) {
  .fc-scroller {
    scrollbar-width: thin;
  }

  .fc-scroller::-webkit-scrollbar {
    height: 6px;
  }

  .fc-scroller::-webkit-scrollbar-thumb {
    background: #4a6b4c;
    border-radius: 10px;
  }
}

/* Vista muy pequeña (iPhone SE) */
@media (max-width: 500px) {

  .fc-toolbar-title {
    font-size: 1.1rem !important;
  }

  .fc-button {
    font-size: 0.8rem !important;
    padding: 0.25rem 0.45rem !important;
  }

  .fc-timeline-slot {
    font-size: 0.7rem !important;
  }

  .fc-resource-cell {
    font-size: 0.75rem !important;
  }

  .fc-event-title {
    font-size: 0.75rem !important;
  }
}

/* ? Evitar que FullCalendar haga flicker */
.fc table tbody tr:hover {
  transform: none !important;
  box-shadow: none !important;
  background: inherit !important;
}

.filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 1rem;
}

.filters label {
  font-weight: 600;
}

.filters input[type="month"] {
  padding: 6px;
}

.btn-primary.small,
.btn-secondary.small {
  padding: 6px 14px;
  height: 34px;
}




