body {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #173D62; 
}

/* PÃ¡rrafos y texto normal */
p, li, span {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;   
    color: #173D62; 
}

.text-gold {
    font-family: 'Nunito', sans-serif;
    color: #E0AE13 !important;
}

.bg-dark-blue {
    background-color: #122941 !important;
}

.bg-dark-blue .navbar-nav .nav-link,
.bg-dark-blue .navbar-brand {
    color: #fff !important;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: #173D62;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    position: fixed;
    top: 0;
    bottom: 0;
}

.sidebar-header {
    background-color: #fbfbfc; 
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sidebar-header img {
    max-width: 100px;
    height: auto;
}

.nav-link {
    color: white;
    padding: 10px 20px;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidebar-footer {
    padding: 15px;
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.sidebar-footer a {
    color: white;
}

.sidebar-footer a:hover {
    color: #f8f9fa;
}

/* Main content */
.main-content {
    margin-left: 240px;
    flex: 1;
    padding: 20px;
    background-color: #f8f8f8;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    border-radius: 12px;
    padding: 15px;
    line-height: 1.5;
}

textarea.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40,167,69,.25);
}

.comentario-form-wrapper {
  border: 1px solid #e3e6ea;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.comentario-form-wrapper:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.comentario-form-wrapper label {
  font-weight: 600;
  color: #344767;
  margin-bottom: 0.4rem;
}

.comentario-form-wrapper input,
.comentario-form-wrapper textarea,
.comentario-form-wrapper select {
  border-radius: 0.5rem;
  border: 1px solid #d0d5dd;
  padding: 0.6rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comentario-form-wrapper input:focus,
.comentario-form-wrapper textarea:focus,
.comentario-form-wrapper select:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 0.2rem rgba(74,144,226,0.25);
}

@media (max-width: 768px) {
    body {
        display: block; /* rompe el flex, sidebar ya no ocupa columna */
    }

    .sidebar {
        position: relative;   /* deja de estar fija */
        width: 100%;          /* ocupa arriba todo el ancho */
        height: auto;         /* no ocupa toda la altura */
    }

    .main-content {
        margin-left: 0 !important;  /* quita espacio reservado */
        width: 100% !important;     /* ocupa todo el ancho */
        padding: 15px !important;
    }

    .sidebar-footer {
        position: relative;
        bottom: 0;
        width: 100%;
    }
}

/* responsive-tables.css */

/* PequeÃ±os detalles visuales */
.table-wrapper {
  width: 100%;
  overflow: hidden;
}

/* Small avatar/icon para columna tÃ­tulo */
.icon-avatar {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

/* Desktop (por defecto) mantiene tu tabla con scroll si es necesaria */
.table-responsive {
  overflow-x: auto;
}

/* ===== Movil: convertir cada fila en 'card' apilada ===== */
@media (max-width: 880px) {

  /* ocultamos encabezado para presentar "cards" */
  .table-responsive table thead {
    display: none;
  }

  /* cada fila se comporta como tarjeta */
  .table-responsive table tbody,
  .table-responsive table tbody tr,
  .table-responsive table tbody td {
    display: block;
    width: 100%;
  }

  .table-responsive table tbody tr {
    margin-bottom: 0.9rem;
    background: #ffffff;
    border-radius: 10px;
    padding: 0.8rem;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
    border: 1px solid rgba(0,0,0,0.04);
  }

  .table-responsive table tbody td {
    padding: 0.35rem 0.6rem;
    text-align: left;
    border: none;
    position: relative;
  }

  /* la etiqueta (data-label) aparece antes del valor */
  .table-responsive table tbody td::before {
    content: attr(data-label) ":";
    font-weight: 700;
    display: inline-block;
    width: 45%;
    color: #495057;
  }

  /* ajustar estilos para badges y botones dentro de las "cards" */
  .table-responsive table tbody td .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.5em;
  }

  .table-responsive table tbody td .btn {
    width: 100%;
    padding: 0.375rem 0.5rem;
  }

  /* reducir tamaÃ±o de texto global en mÃ³vil (ligero) */
  .table-responsive table tbody td,
  .table-responsive table tbody td .small,
  .table-responsive table tbody td .text-muted {
    font-size: 0.9rem;
  }
}

/* ademÃ¡s, para pantallas muy pequeÃ±as, asegurar que el contenedor principal tiene padding correcto */
@media (max-width: 420px) {
  .table-responsive table tbody tr {
    padding: 0.6rem;
  }
}

/* clase reutilizable para el icono */
.icon-people-yellow {
  color: #E0AE13 !important;
  font-size: 28px !important;
  width: 36px;
  height: 36px;
  vertical-align: middle;
  margin: 0 6px 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-people-yellow svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}


/* =========================
   AGENDA PERSONAL – CORPORATIVO
========================= */

/* Accordion */
.accordion {
  --bs-accordion-border-radius: 12px;
  --bs-accordion-border-color: rgba(23, 61, 98, 0.15);
}

/* Item */
.accordion-item {
  border-radius: 12px;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(23, 61, 98, 0.15);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.accordion-item:hover {
  box-shadow: 0 8px 24px rgba(23, 61, 98, 0.12);
  transform: translateY(-2px);
}

/* Header */
.accordion-button {
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: #173D62;
  background-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(23, 61, 98, 0.08);
  color: #173D62;
  box-shadow: inset 0 -1px 0 rgba(23, 61, 98, 0.15);
}

.accordion-button::after {
  transform: scale(0.85);
}

/* Fecha pequeña en header */
.accordion-button span {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 600;
}

/* Body */
.accordion-body {
  padding: 0.9rem;
  font-size: 0.82rem;
  font-family: 'Nunito', sans-serif;
  background-color: #ffffff;
}

/* Bloque fechas */
.accordion-body > div:first-child {
  background: rgba(23, 61, 98, 0.05);
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
}

/* Descripción */
.agenda-descripcion {
  padding: 0.6rem 0.7rem;
  background-color: #fbfbfc;
  border-left: 4px solid #E0AE13;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #173D62;
}

/* Estado vacío */
#agendaUsuario small.text-muted {
  display: block;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.8rem;
  color: #6c757d;
}

/* =========================
   CALENDARIO (FullCalendar)
========================= */

#calendar {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
}

/* Título calendario */
.fc-toolbar-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #173D62;
}

/* Botones */
.fc-button {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.75rem !important;
  border-radius: 8px !important;
  background-color: #173D62 !important;
  border-color: #173D62 !important;
}

.fc-button:hover {
  background-color: #122941 !important;
  border-color: #122941 !important;
}

.fc-button:disabled {
  opacity: 0.6;
}

/* Eventos */
.fc-event {
  border-radius: 8px !important;
  padding: 3px 5px;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
}

/* Hover evento */
.fc-event:hover {
  opacity: 0.92;
}

/* Día actual */
.fc-day-today {
  background-color: rgba(224, 174, 19, 0.08) !important;
}

/* =========================
   MODAL DE CITA
========================= */

.modal-content {
  border-radius: 14px;
  border: none;
}

.modal-header {
  background-color: #173D62;
  color: #ffffff;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.modal-body label {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #173D62;
}

.modal-body .form-control,
.modal-body .form-select {
  border-radius: 10px;
  font-size: 0.85rem;
}

/* Botones modal */
.modal-footer .btn-primary {
  background-color: #173D62;
  border-color: #173D62;
}

.modal-footer .btn-primary:hover {
  background-color: #122941;
  border-color: #122941;
}

.modal-footer .btn-danger {
  border-radius: 10px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
  #calendar {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .accordion-button {
    font-size: 0.8rem;
  }

  .accordion-body {
    font-size: 0.78rem;
  }

  .fc-toolbar-title {
    font-size: 1rem;
  }
}
