body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 20px;
  color: #2b2d42;
}

h1 {
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 20px auto;
  gap: 10px;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

input, button {
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #8d99ae;
}

button {
  background-color: #2b2d42;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #1a1c2e;
}

.view-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

table {
  width: 100%;
  max-width: 600px;
  margin: 30px auto;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

th, td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #8d99ae;
  color: white;
}

#calendar {
  width: 100%;
  max-width: 1400px;
  margin: 40px auto;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  height: auto;
}

/* 🔧 Fix para que el calendario no tenga scroll vertical */
.fc .fc-scrollgrid,
.fc-scroller-harness,
.fc-scroller,
.fc-scrollgrid-sync-table,
.fc-daygrid-body {
  max-height: none !important;
  overflow: visible !important;
  height: auto !important;
}

.fc-toolbar-title {
  font-size: 1.5rem;
  color: #2b2d42;
}

/* Forzar a que FullCalendar use todo el ancho disponible */
.fc .fc-scrollgrid,
.fc .fc-daygrid-body,
.fc .fc-daygrid-day-frame {
  width: 100% !important;
}

.fc .fc-daygrid-day {
  flex: 1 1 auto !important;
}

.fc-daygrid-day-top {
  width: 100%;
}

.fc-scrollgrid-sync-table {
  table-layout: fixed !important;
  width: 100% !important;
}

.site-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* para que se acomode en móviles */
  text-align: center;
  margin-bottom: 20px;
}

.logo-container img {
  height: 50px;
}

.titulo-central {
  font-size: 1.8rem;
  margin: 0;
  color: #2b2d42;
  flex: 1 1 100%; /* para que el texto se centre en móviles */
}

/* =========================
   Modal de ayuda / glosario
   ========================= */
.modal {
  display: none; /* se controla desde JS */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  padding: 20px;
}

.modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: 100%;
  max-width: 860px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  position: relative;
  padding: 32px 30px 26px;
}

.modal-content h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: #2b2d42;
}

.modal-body p {
  margin: 0 0 10px;
  line-height: 1.45;
  font-size: 0.8rem;
}

.modal-example {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  gap: 10px;
}

.modal-primary {
  background-color: #2b2d42;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.modal-primary:hover {
  background-color: #1a1c2e;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f1f3f5;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #2b2d42;
}

.modal-close:hover {
  background: #e9ecef;
}


/* Botón flotante informativo */
.info-icon {
  position: fixed;
  right: 18px;
  bottom: 72px; /* queda arriba del ? */
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #f1c40f;
  color: #2b2d42;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  z-index: 9998;
}

.info-icon:hover {
  background: #d4ac0d;
}

/* Botón flotante de ayuda */
.help-icon {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #d90404;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  z-index: 9998;
}

.help-icon:hover {
  background: #780303;
}

@media (max-width: 420px) {
  .modal-content {
    padding: 18px 16px 14px;
  }
}

.btn-mail {
  display: inline-block;
  padding: 10px 16px;
  background-color: #d90404;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn-mail:hover {
  background-color: #084298;
}

.pmf-sugerencia {
  max-width: 720px;
  margin: 25px auto 0;
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  font-size: 0.95rem;
  line-height: 1.45;
}

.pmf-sugerencia h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #2b2d42;
}

.pmf-sugerencia p {
  margin: 4px 0;
}

.pmf-sugerencia .pmf-destacado {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}

.pmf-sugerencia .pmf-ejemplos {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #444;
}

.pmf-sugerencia .pmf-ejemplos span {
  display: block;
  margin-top: 4px;
}