/* ====== Mantenimiento: ancho completo del panel central ====== */
#sectionContent.is-mantenimiento {
  max-width: 100%;
}

#sectionContent.is-mantenimiento .section-card,
#sectionContent.is-mantenimiento .section-modal {
  width: 100%;
  max-width: none;
}

#sectionContent.is-mantenimiento .section-card {
  padding: 24px 28px;
}

/* Grid de 2 columnas (opcional) */
#sectionContent.is-mantenimiento .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

#sectionContent.is-mantenimiento .form-row.full,
#sectionContent.is-mantenimiento .actions.full,
#sectionContent.is-mantenimiento .muted.full {
  grid-column: 1 / -1;
}

#sectionContent.is-mantenimiento input[type="text"],
#sectionContent.is-mantenimiento input[type="email"],
#sectionContent.is-mantenimiento input[type="file"],
#sectionContent.is-mantenimiento select,
#sectionContent.is-mantenimiento textarea,
#sectionContent.is-mantenimiento button,
#sectionContent.is-mantenimiento .btn {
  width: 100%;
}

#sectionContent.is-mantenimiento .btn-ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
  #sectionContent.is-mantenimiento .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Pequeños refinamientos visuales */
#sectionContent.is-mantenimiento label {
  font-weight: 600;
}

#sectionContent.is-mantenimiento .req {
  color: #e11d48;
}

#sectionContent.is-mantenimiento .muted {
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.95rem;
}

/* ====== MANTENIMIENTO: ancho completo ====== */
#sectionContent.is-mantenimiento {
  max-width: 100%;
}

/* Si el formulario vive dentro de una "card" o grid de cards,
   bórrale el ancho fijo y haz que ocupe todo */
#sectionContent.is-mantenimiento .card,
#sectionContent.is-mantenimiento .cards-grid,
#sectionContent.is-mantenimiento .mant-card {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}

/* Formulario con layout fluido (2 columnas en desktop) */
#sectionContent.is-mantenimiento .mant-form {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

/* Utilidades para campos */
#sectionContent.is-mantenimiento .field--full {
  grid-column: 1 / -1;
}

#sectionContent.is-mantenimiento .field--half {
  grid-column: span 6;
}

/* Inputs a 100% del contenedor */
#sectionContent.is-mantenimiento input[type="text"],
#sectionContent.is-mantenimiento input[type="email"],
#sectionContent.is-mantenimiento select,
#sectionContent.is-mantenimiento textarea {
  width: 100%;
}

/* Mobile: una sola columna */
@media (max-width: 1024px) {
  #sectionContent.is-mantenimiento .mant-form {
    grid-template-columns: 1fr;
  }

  #sectionContent.is-mantenimiento .field--half {
    grid-column: 1 / -1;
  }
}

/* === Full-width para el contenedor dinámico y form de Mantenimiento === */

/* El grid dinámico (insertado por nav-router) debe ocupar las 2 columnas del área central */
#section-root .content #dynamic-grid {
  grid-column: 1 / -1;
}

/* Tarjeta de formulario bonita, centrada y ancha */
#section-root .card-form {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 16px 40px rgba(2, 6, 23, .08);
  color: #0f172a;
}

#section-root .card-form .form-header h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

#section-root .card-form .form-header p {
  margin: 0 0 18px;
  color: #64748b;
}

/* Grid del formulario (12 columnas fluidas) */
#section-root .form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px 18px;
}

#section-root .form-grid .field {
  grid-column: span 6;
  display: grid;
  gap: 6px;
}

#section-root .form-grid .field-full {
  grid-column: 1 / -1;
}

/* Inputs bonitos */
#section-root .form-grid input,
#section-root .form-grid select,
#section-root .form-grid textarea {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  background: #fff;
  color: #0f172a;
}

/* Acciones del form */
#section-root .form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 6px;
}

#section-root .btn-primary {
  background: linear-gradient(90deg, var(--banner-left), var(--banner-right));
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  color: #fff;
  font-weight: 800;
}

#section-root .btn-secondary {
  background: #e2e8f0;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  color: #0f172a;
  font-weight: 800;
}

/* Responsive: una columna en móviles */
@media (max-width: 900px) {
  #section-root .form-grid {
    grid-template-columns: 1fr;
  }

  #section-root .form-grid .field {
    grid-column: 1 / -1;
  }
}

/* Centrar botones del formulario de Mantenimiento */
#section-root .card-form .form-actions {
  justify-content: center;
}

/* Opcional: mejor experiencia en móviles */
@media (max-width: 520px) {
  #section-root .card-form .form-actions {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  #section-root .card-form .form-actions .btn-primary,
  #section-root .card-form .form-actions .btn-secondary {
    width: 100%;
    max-width: 320px;
  }

  /* FIX · Incapacidades (mobile) */
  #section-root .form-grid .field {
    min-width: 0;
  }

  #section-root .card-form {
    overflow: hidden;
  }

  #section-root .form-grid input[type="file"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Botón "Seleccionar archivo" más compacto */
  #section-root .form-grid input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 800;
    cursor: pointer;
  }

  /* Safari viejo */
  #section-root .form-grid input[type="file"]::-webkit-file-upload-button {
    margin-right: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 800;
    cursor: pointer;
  }
}

/* Centrar y espaciar los botones del formulario de Mantenimiento */
#section-root .form-actions,
#section-root .card-form .form-actions,
#maintenance-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Opcional: mismo alto visual si uno tiene dos líneas */
#section-root .form-actions .btn {
  min-height: 44px;
}

/* === Mantenimiento: ancho completo + botones centrados === */

/* Fuerza el bloque de mantenimiento a ocupar toda la columna central */
.section-wide {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
}

/* Tarjeta contenedora del formulario */
.mto-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(2, 36, 70, 0.06);
  padding: 24px 28px;
}

/* Grid del formulario (2 columnas en desktop) */
.mto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 980px) {
  .mto-grid {
    grid-template-columns: 1fr;
  }
}

/* Campos que deben ocupar toda la fila */
.mto-grid .span-2 {
  grid-column: 1 / -1;
}

/* Acciones centradas */
.mto-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 24px auto 8px;
  width: 100%;
}

.mto-actions>* {
  float: none !important;
}

/* === Mantenimiento: centrar botones === */
#maintenance-form-actions {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px;
  margin-top: 20px;
}

/* Botones consistentes con el estilo general */
#maintenance-form-actions .btn-primary,
#maintenance-form-actions .btn-secondary {
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease;
}

#maintenance-form-actions .btn-primary {
  background: #64C8FF;
  color: #fff;
  box-shadow: 0 8px 20px rgba(14, 120, 255, .15);
}

#maintenance-form-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(14, 120, 255, .22);
}

#maintenance-form-actions .btn-secondary {
  background: #ECF5FF;
  color: #0A57FF;
}

#maintenance-form-actions .btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(10, 87, 255, .08);
}

/* Responsivo: en móviles uno bajo el otro */
@media (max-width: 768px) {
  #maintenance-form-actions {
    flex-direction: column;
  }

  #maintenance-form-actions .btn-primary,
  #maintenance-form-actions .btn-secondary {
    width: 100%;
    max-width: 280px;
  }
}

/* === Mantenimiento · Botón único centrado === */
.section--mantenimiento .mtto-actions,
#sectionContent.is-mantenimiento .mtto-actions {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

.section--mantenimiento .mtto-btn-send,
#sectionContent.is-mantenimiento .mtto-btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding-inline: 1.25rem;
  float: none !important;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {

  .section--mantenimiento .mtto-btn-send,
  #sectionContent.is-mantenimiento .mtto-btn-send {
    width: 100%;
  }
}

/* === FIX QUIRÚRGICO (v4): acciones del formulario de Mantenimiento ocupan toda la fila === */
#section-root .card-form .form-grid .form-actions {
  grid-column: 1 / -1;
}

#section-root .card-form .form-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {

  #section-root .card-form .form-actions .btn-primary,
  #section-root .card-form .form-actions .btn-secondary {
    width: 100%;
    max-width: 320px;
  }
}

/* === Mantenimiento: Modal de gracias (scopeado) === */
#section-root .mtto-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .35);
  z-index: 9999;
  padding: 16px;
}

#section-root .mtto-modal.open {
  display: flex;
}

#section-root .mtto-modal__box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

#section-root .mtto-modal__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

#section-root .mtto-modal__msg {
  margin: 0 0 16px;
}


/* =============================================================
   CTH · Prestamos · DESIGN PLUS (CSS-only enhancement)
   ============================================================= */

/* Palette tune */
.cth-prestamos {
  --cth-ok: #16a34a;
  --cth-ok-50: #ecfdf5;
  --cth-ok-200: #bbf7d0;
  --cth-ok-900: #065f46;
  --cth-busy: #ef4444;
  --cth-busy-50: #fef2f2;
  --cth-busy-200: #fecaca;
  --cth-busy-900: #991b1b;
  --cth-ink: #0f172a;
  --cth-muted: #64748b;
  --cth-surface: #ffffff;
  --cth-panel: #f7fafc;
  --cth-border: #e6eef8;
  --cth-focus: #38bdf8;
}

/* Backdrop con blur suave */
.cth-prestamos .cth-modal-backdrop {
  background: rgba(2, 6, 23, .55);
}

/* Modal con más presencia visual */
.cth-prestamos .cth-modal {
  background: linear-gradient(180deg, var(--cth-surface) 0%, #fbfdff 100%);
  border-radius: 22px;
  border: 1px solid rgba(230, 238, 248, .9);
  box-shadow:
    0 30px 60px rgba(2, 6, 23, .25),
    0 2px 0 rgba(255, 255, 255, .8) inset;
  padding: 20px 20px 16px;
}

/* Header más definido */
.cth-prestamos .cth-modal-header {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(230, 238, 248, .9);
}

.cth-prestamos .cth-modal-header h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .2px;
}

/* Botones de acción */
.cth-prestamos .cth-icon-btn {
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, .08);
  transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease;
}

.cth-prestamos .cth-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2, 6, 23, .12);
  opacity: .98;
}

.cth-prestamos .cth-icon-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(2, 6, 23, .10);
}

/* Toolbar sticky */
.cth-prestamos .cth-toolbar {
  margin-top: 6px;
  background: linear-gradient(180deg, var(--cth-panel), #fff 120%);
  border: 1px solid var(--cth-border);
  border-radius: 14px;
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(2, 6, 23, .05);
}

.cth-prestamos .cth-field input,
.cth-prestamos .cth-field select {
  background: #fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.cth-prestamos .cth-field input:focus,
.cth-prestamos .cth-field select:focus {
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .20);
  border-color: var(--cth-focus);
  outline: none;
}

/* Leyenda */
.cth-prestamos .cth-legend {
  margin: 12px 2px 8px;
  color: var(--cth-muted);
  font-size: 14px;
}

.cth-prestamos .cth-dot {
  width: 12px;
  height: 12px;
  border-radius: 12px;
}

.cth-prestamos .cth-dot.ok {
  background: var(--cth-ok);
}

.cth-prestamos .cth-dot.busy {
  background: var(--cth-busy);
}

/* Grid con respiración extra */
.cth-prestamos .cth-grid {
  gap: 12px;
}

/* Tarjetas (slots) */
.cth-prestamos .cth-slot {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--cth-border);
  transition: transform .08s ease, box-shadow .2s ease, outline-color .2s ease, border-color .2s ease, background-color .2s ease;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .8) inset, 0 1px 0 rgba(2, 6, 23, .03) inset;
}

.cth-prestamos .cth-slot .num {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .3px;
}

.cth-prestamos .cth-slot small {
  opacity: .9;
  font-weight: 700;
  letter-spacing: .2px;
}

/* Estados */
.cth-prestamos .cth-slot.free {
  background: var(--cth-ok-50);
  border-color: var(--cth-ok-200);
  color: var(--cth-ok-900);
}

.cth-prestamos .cth-slot.free:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 185, 129, .12);
}

.cth-prestamos .cth-slot.busy {
  background: var(--cth-busy-50);
  border-color: var(--cth-busy-200);
  color: var(--cth-busy-900);
}

.cth-prestamos .cth-slot.busy:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(239, 68, 68, .12);
}

/* Footer */
.cth-prestamos .cth-footer {
  margin-top: 14px;
  color: var(--cth-muted);
  font-size: 13px;
}

/* Foco accesible */
.cth-prestamos .cth-slot:focus {
  outline: 3px solid var(--cth-focus);
  outline-offset: 2px;
}

/* Motion-friendly */
@media (prefers-reduced-motion: reduce) {

  .cth-prestamos .cth-slot,
  .cth-prestamos .cth-icon-btn {
    transition: none !important;
  }
}

/* Icono laptop */
.cth-prestamos .cth-slot .num {
  position: relative;
  display: inline-block;
  padding-left: 22px;
}

.cth-prestamos .cth-slot .num::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  <rect x='4' y='5' width='16' height='11' rx='2' ry='2'/>\
  <path d='M2 18h20v2H2z'/>\
</svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  <rect x='4' y='5' width='16' height='11' rx='2' ry='2'/>\
  <path d='M2 18h20v2H2z'/>\
</svg>") no-repeat center / contain;
  opacity: .95;
}

/* Fallback sin mask: emoji 💻 */
@supports not (-webkit-mask: url("")) {
  .cth-prestamos .cth-slot .num::before {
    content: "💻";
    width: auto;
    height: auto;
    background: none;
    mask: none;
    -webkit-mask: none;
    font-size: 15px;
    line-height: 1;
    transform: translateY(-52%);
  }
}

/* =============================================================
   Hojas de Vida - Modal de Candidatos
   ============================================================= */
.modal-hojas-vida {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
}

.modal-hojas-vida[aria-hidden="false"] {
  display: flex;
}

.modal-hojas-vida__box {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  width: min(900px, 95vw);
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(2, 6, 23, 0.25);
  border: 1px solid #e2e8f0;
}

.modal-hojas-vida__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  color: white;
}

.modal-hojas-vida__header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.btn-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s ease;
}

.btn-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-hojas-vida__content {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

/* ========== BARRA DE BÚSQUEDA ========== */
.search-container {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: var(--banner-left);
  box-shadow: 0 0 0 3px rgba(var(--banner-left-rgb, 99, 102, 241), 0.1);
}

.search-input::placeholder {
  color: #94a3b8;
}

.clear-search-btn {
  position: absolute;
  right: 8px;
  background: #94a3b8;
  color: white;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.clear-search-btn:hover {
  background: #ef4444;
  transform: scale(1.1);
}

.search-results-info {
  background: #f1f5f9;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
}

.search-results-info.filtered {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
}

.search-tips {
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
  font-style: italic;
}

.search-tips small {
  display: inline-block;
}

/* Mensaje cuando no hay resultados */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
  grid-column: 1 / -1;
}

.no-results h3 {
  margin: 0 0 12px 0;
  color: #475569;
  font-size: 1.3rem;
}

.no-results p {
  margin: 0;
  font-size: 0.95rem;
}
/* ========== FIN BARRA DE BÚSQUEDA ========== */

.candidatos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.candidato-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.05);
}

.candidato-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 6, 23, 0.15);
  border-color: var(--banner-left);
}

.candidato-card__nombre {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.candidato-card__cargo {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.candidato-card__fecha {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

.candidato-card__badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--banner-left), var(--banner-right));
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
}

.cargando {
  text-align: center;
  padding: 40px;
  color: #64748b;
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

.modal-hojas-vida__footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.modal-hojas-vida__footer p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

/* Estilos adicionales para la información de contacto */
.candidato-card__meta {
  margin: 12px 0;
}

.candidato-card__email,
.candidato-card__telefono {
  font-size: 0.8rem;
  color: #64748b;
  margin: 4px 0;
}

.candidato-card__email {
  word-break: break-all;
}

/* Responsive */
@media (max-width: 768px) {
  .candidatos-grid {
    grid-template-columns: 1fr;
  }

  .modal-hojas-vida__box {
    width: 95vw;
    max-height: 90vh;
  }

  .modal-hojas-vida__header {
    padding: 16px 20px;
  }

  .modal-hojas-vida__header h3 {
    font-size: 1.3rem;
  }

  /* Búsqueda responsive */
  .search-box {
    flex-direction: column;
    gap: 10px;
  }

  .search-input {
    font-size: 0.9rem;
  }

  .search-results-info {
    width: 100%;
    white-space: normal;
  }

  .search-tips {
    font-size: 0.75rem;
  }
}

.biblioteca-iframe-wrapper,
.phidias-iframe-wrapper {
  width: 100%;
  max-width: 1400px;
  height: calc(100vh - 260px);
  margin: 0 auto 24px;
}

/* ==========================
   MODAL GENÉRICO (Hojas de Vida)
   ========================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal__content {
  width: min(1100px, 96vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(2, 6, 23, 0.08);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: linear-gradient(90deg, var(--banner-left, #0ea5e9), var(--banner-right, #7dd3fc));
  color: #fff;
}

.modal__header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.modal__close {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 26px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, background 0.12s ease;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.03);
}

.modal__close:active {
  transform: scale(0.98);
}

.modal__body {
  padding: 18px 22px 22px;
  overflow: auto;
  max-height: calc(90vh - 76px);
  background: #fff;
}

/* === Mobile banner avatar fix === */
@media (max-width: 768px) {
  .welcome {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-right: 20px;
  }

  .welcome .avatar-hero {
    display: flex;
    justify-content: center;
    margin-top: 12px;
  }

  .welcome .avatar-hero img {
    width: 120px;
    height: auto;
  }
}

/* =============================================================
   CARDS CLICKEABLES PARA TODA LA INTRANET (SIN FLECHITAS)
   ============================================================= */
.clickable-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
}

/* Efecto de elevación y sombra para TODAS las cards clickeables */
.clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.15);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.03), rgba(125, 211, 252, 0.03));
  border-color: rgba(14, 165, 233, 0.2);
}

/* Color del título en hover */
.clickable-card h3,
.clickable-card h4 {
  transition: color 0.2s ease;
}

.clickable-card:hover h3,
.clickable-card:hover h4 {
  color: var(--banner-left, #0ea5e9);
}

/* Animación del ícono */
.clickable-card .icon,
.clickable-card img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.clickable-card:hover .icon,
.clickable-card:hover img {
  transform: scale(1.05);
}

/* Para las cards de Docentes con estructura especial */
.docentes-app.clickable-card,
.docentes-tool-item.clickable-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.docentes-app.clickable-card:hover,
.docentes-tool-item.clickable-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
}

/* Asegurar que los botones dentro de cards no interfieran */
.clickable-card .btn {
  pointer-events: none;
}

/* =============================
   HOME · GRID FINAL (2 filas)
   - Fila 2: Izq Cumpleaños | Der Evento (carrusel)
   - Fila 3: Izq Nuevo personal | Der Boletín
   ============================= */
.cth-dashboard .home-card-birthdays {
  grid-column: 1;
  grid-row: 2;
}

.cth-dashboard .home-card-event-top {
  grid-column: 2;
  grid-row: 2;
}

.cth-dashboard .home-card-newstaff {
  grid-column: 1;
  grid-row: 3;
}

.cth-dashboard .home-card-bulletin {
  grid-column: 2;
  grid-row: 3;
}

/* Ya no usamos el evento inferior */
.cth-dashboard .home-card-event-bottom {
  display: none;
}


/* =============================
   HOME · NUEVO PERSONAL (sin confeti)
   ============================= */
.cth-dashboard .newstaff-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
}


/* =============================
   HOME · EVENTO CARRUSEL (dentro del card)
   ============================= */
.cth-dashboard .event-carousel {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 12px;
}

.cth-dashboard .event-viewport {
  grid-column: 2;
  overflow: hidden;
  border-radius: 18px;
}

.cth-dashboard .event-track {
  display: flex;
  transition: transform 260ms ease;
  will-change: transform;
}

.cth-dashboard .event-slide {
  flex: 0 0 100%;
  margin: 0;
}

.cth-dashboard .event-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .10);
  cursor: pointer;
  font-size: 26px;
  line-height: 0;
  display: grid;
  place-items: center;
}

.cth-dashboard .event-prev {
  grid-column: 1;
}

.cth-dashboard .event-next {
  grid-column: 3;
}

.cth-dashboard .event-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 6px;
}

.cth-dashboard .event-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
}

.cth-dashboard .event-dot.is-active {
  background: linear-gradient(90deg, var(--banner-left), var(--banner-right));
}

/* Mobile: botones más compactos */
@media (max-width: 520px) {
  .cth-dashboard .event-carousel {
    grid-template-columns: 36px 1fr 36px;
  }

  .cth-dashboard .event-nav {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}



/* =============================================================
   HOME · Ajustes visuales (Boletín + Carrusel + Alturas)
   ============================================================= */

/* 1) Boletín: imagen grande arriba, luego botón, texto más pequeño */
.cth-dashboard .home-card-bulletin .home-card-body {
  display: grid;
  gap: 12px;
}

.cth-dashboard .home-bulletin-hero {
  width: 100%;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(230, 238, 248, .9);
  padding: 12px;
  display: grid;
  place-items: center;
}

.cth-dashboard .home-bulletin-hero img {
  width: 100%;
  max-width: 520px;
  height: 220px;
  object-fit: contain;
  border-radius: 14px;
}

/* Botón ancho (se ve más “hero”) */
.cth-dashboard .home-bulletin-button {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 16px;
  border-radius: 999px;
}

/* Texto más pequeño y menos pesado */
.cth-dashboard .home-bulletin-text.small {
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(2, 6, 23, .62);
  margin: 0;
}

.cth-dashboard .home-bulletin-note {
  font-size: 0.9rem;
  color: rgba(2, 6, 23, .45);
  margin: 0;
}

/* 2) Carrusel: padding superior */
.cth-dashboard .home-card-event-top .home-card-body {
  padding-top: 10px;
}

/* Flechas menos “pesadas” visualmente */
.cth-dashboard .event-nav {
  border-color: rgba(2, 6, 23, .10);
  box-shadow: 0 8px 18px rgba(2, 6, 23, .08);
}

/* 3) Alturas: Cumpleaños mantiene min-height, Nuevo Personal fluye natural */
.cth-dashboard .home-card-birthdays {
  min-height: 260px;
}

.cth-dashboard .home-card-newstaff {
  min-height: unset;
}

.cth-dashboard .home-card-newstaff .home-card-body {
  min-height: 0;
}

/* Mobile */
@media (max-width: 520px) {
  .cth-dashboard .event-viewport {
    height: 190px;
  }

  .cth-dashboard .event-slide img {
    height: 190px;
  }

  .cth-dashboard .home-bulletin-hero img {
    height: 180px;
  }
}



/* =============================================================
   HOME · BOLETÍN COMPACTO (baja altura)
   ============================================================= */
.cth-dashboard .home-bulletin-compact {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 16px;
}

.cth-dashboard .home-bulletin-thumb {
  margin: 0;
  width: 110px;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(230, 238, 248, .9);
  background: #f8fbff;
}

.cth-dashboard .home-bulletin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cth-dashboard .home-bulletin-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--banner-left), var(--banner-right));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  width: max-content;
}

/* Mobile: apilar */
@media (max-width: 520px) {
  .cth-dashboard .home-bulletin-compact {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }
}



/* =============================================================
   HOME · EVENTO CARRUSEL (sin flechas, imagen a full ancho)
   ============================================================= */
.cth-dashboard .event-carousel {
  position: relative;
  width: 100%;
  display: block;
  /* sin columnas para flechas */
}

.cth-dashboard .event-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  height: 230px;
}

.cth-dashboard .event-track {
  display: flex;
  transition: transform 260ms ease;
  will-change: transform;
}

.cth-dashboard .event-slide {
  flex: 0 0 100%;
  margin: 0;
}

.cth-dashboard .event-slide img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

/* dots abajo centrados */
.cth-dashboard .event-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 10px;
}

.cth-dashboard .event-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
}

.cth-dashboard .event-dot.is-active {
  background: linear-gradient(90deg, var(--banner-left), var(--banner-right));
}

@media (max-width: 520px) {
  .cth-dashboard .event-viewport {
    height: 190px;
  }

  .cth-dashboard .event-slide img {
    height: 190px;
  }
}



/* =============================================================
   FIX · EVENTO DEL MES: imagen ocupa todo el alto del card
   (Usa flex:1 en toda la cadena en vez de height:100%
    porque el card tiene min-height, no height)
   ============================================================= */

/* Card como columna flex para que el body pueda crecer */
.cth-dashboard .home-card.home-card-event {
  display: flex;
  flex-direction: column;
}

/* Body se estira para llenar el espacio restante del card */
.cth-dashboard .home-card-event .home-card-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 8px 12px 14px !important;
  min-height: 0;
}

/* Carrusel llena el body (flex: 1) */
.cth-dashboard .home-card-event .event-carousel {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0;
  /* override: quitar el grid con flechas */
  grid-template-columns: unset !important;
  grid-template-rows: unset !important;
}

/* Viewport: crece con flex:1, min-height como seguro */
.cth-dashboard .home-card-event .event-viewport {
  flex: 1 !important;
  height: auto !important;
  min-height: 220px;
  overflow: hidden;
  border-radius: 14px;
  background: #f8fafc;
}

/* Track llena el alto del viewport */
.cth-dashboard .home-card-event .event-track {
  height: 100%;
}

/* Cada slide llena el track */
.cth-dashboard .home-card-event .event-slide {
  height: 100%;
}

/* Imagen: contiene el flyer completo sin recorte */
.cth-dashboard .home-card-event .event-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #f8fafc !important;
  border-radius: 14px !important;
  display: block !important;
}

/* Dots debajo del viewport */
.cth-dashboard .home-card-event .event-dots {
  flex-shrink: 0;
  padding-top: 10px;
}

/* Mobile */
@media (max-width: 520px) {
  .cth-dashboard .home-card-event .event-viewport {
    min-height: 170px;
  }
}

/* =============================================================
   HOME · NUEVO PERSONAL - Diseño centrado (foto/initials) con fondo blanco
   ============================================================= */

/* Contenedor: grid uniforme para alineación perfecta */
.newstaff-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 900px;
  margin: 0 auto;
  gap: 32px 24px;
  min-height: 140px;
  padding: 12px 0;
}

/* Item: foto centrada pero textos alineados a la izquierda */
.newstaff-item,
.newstaff-more {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

/* Foto centrada horizontalmente */
.newstaff-photo {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
  align-self: center;
}

/* Foto */
.newstaff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Iniciales o contador +N */
.newstaff-photo span {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #64748b;
}

/* Nombre (alineado a la izquierda) */
.newstaff-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  width: 100%;
  word-break: break-word;
  hyphens: auto;
  text-align: left;
}

/* Cargo (alineado a la izquierda) */
.newstaff-role {
  margin-top: -4px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  width: 100%;
  text-align: left;
}

/* Hover sutil */
.newstaff-item:hover .newstaff-photo,
.newstaff-more:hover .newstaff-photo {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.09);
}

/* Si antes tenías tooltip CSS basado en ::after, lo apagamos */
.newstaff-item::after {
  content: none !important;
}

/* Responsive */
@media (max-width: 768px) {

  .newstaff-item,
  .newstaff-more {
    width: 180px;
  }

  .newstaff-name {
    font-size: 18px;
    max-width: 180px;
  }

  .newstaff-photo {
    width: 84px;
    height: 84px;
  }

  .newstaff-photo span {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .newstaff-strip {
    gap: 16px;
  }

  .newstaff-item,
  .newstaff-more {
    width: 150px;
  }

  .newstaff-name {
    font-size: 16px;
    max-width: 150px;
  }

  .newstaff-photo {
    width: 76px;
    height: 76px;
  }

  .newstaff-photo span {
    font-size: 26px;
  }
}

/* =============================================================
   HOME · NUEVO PERSONAL (informativo, centrado, 3 columnas)
   ============================================================= */

.newstaff-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  justify-items: center;
  padding: 20px 0;
}

.newstaff-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 260px;
}

.newstaff-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.newstaff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newstaff-photo span {
  font-size: 28px;
  font-weight: 700;
  color: #64748b;
}

.newstaff-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.newstaff-role {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  .newstaff-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .newstaff-strip {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   HOME · NUEVO PERSONAL - Diseño limpio sin recuadros
   ============================================================= */

.newstaff-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  padding: 0;
}

.newstaff-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  padding: 8px 4px;
  transition: all 0.2s ease;
}

.newstaff-item:hover {
  transform: translateY(-2px);
}

.newstaff-item:hover .newstaff-name {
  color: var(--banner-left, #0ea5e9);
}

.newstaff-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 2px;
}

.newstaff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newstaff-photo span {
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
}

.newstaff-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newstaff-name {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

.newstaff-role {
  font-size: 10px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  opacity: 0.8;
}

/* Estilos para el botón "Ver todos" */
.newstaff-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: center;
  padding: 8px 4px;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  transition: all 0.2s ease;
}

.newstaff-more:hover {
  transform: translateY(-2px);
}

.newstaff-more:hover .newstaff-name {
  color: var(--banner-left, #0ea5e9);
}

.newstaff-more .newstaff-photo {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.newstaff-more .newstaff-photo span {
  color: #0ea5e9;
  font-size: 16px;
  font-weight: 800;
}

.newstaff-more .newstaff-name {
  color: #0ea5e9;
  font-weight: 700;
}

.newstaff-more .newstaff-role {
  color: #0ea5e9;
  opacity: 0.7;
}

/* Modal de nuevo personal */
.newstaff-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
}

.newstaff-modal-overlay[aria-hidden="false"] {
  display: flex;
}

.newstaff-modal {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  width: min(500px, 95vw);
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.25);
  border: 1px solid #e2e8f0;
}

.newstaff-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(90deg, var(--banner-left), var(--banner-right));
  color: white;
}

.newstaff-modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.newstaff-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.newstaff-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.newstaff-modal-content {
  padding: 16px 20px;
  max-height: 55vh;
  overflow-y: auto;
}

.newstaff-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 10px 0;
}

.newstaff-modal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 10px 6px;
  border-bottom: 1px solid #f1f5f9;
}

.newstaff-modal-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f8fbff;
  border: 1px solid #e6eef8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 2px;
}

.newstaff-modal-name {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 1px 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.newstaff-modal-role {
  font-size: 10px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  opacity: 0.8;
}

.newstaff-modal-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.newstaff-modal-footer p {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
}

/* Estado vacío */
.newstaff-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 20px;
  color: #64748b;
  font-size: 0.9rem;
}

/* Loading state */
.newstaff-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 20px;
  color: #64748b;
  font-size: 0.9rem;
}

/* Evitar scroll en el body cuando el modal está abierto */
body.newstaff-modal-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {

  .newstaff-strip,
  .newstaff-modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newstaff-modal {
    width: 90vw;
    max-height: 85vh;
  }
}

@media (max-width: 480px) {

  .newstaff-strip,
  .newstaff-modal-grid {
    grid-template-columns: 1fr;
  }

  .newstaff-item,
  .newstaff-modal-item {
    flex-direction: row;
    text-align: left;
    gap: 10px;
    padding: 8px 0;
    align-items: center;
  }

  .newstaff-info,
  .newstaff-modal-info {
    align-items: flex-start;
    text-align: left;
  }

  .newstaff-name,
  .newstaff-role,
  .newstaff-modal-name,
  .newstaff-modal-role {
    text-align: left;
  }

  .newstaff-photo,
  .newstaff-modal-photo {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* =============================================================
   HOME · NUEVO PERSONAL - Tamaño aumentado, sin recuadros
   ============================================================= */

/* DESKTOP: Sin recuadros, tamaño aumentado */
.newstaff-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  padding: 12px 0;
}

.newstaff-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
  width: 100%;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  padding: 12px 8px;
  border-radius: 10px;
}

.newstaff-item:hover {
  transform: translateY(-2px);
  background: rgba(14, 165, 233, 0.04);
}

.newstaff-item:hover .newstaff-name {
  color: var(--banner-left, #0ea5e9);
}

.newstaff-photo {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  /* Agrega o modifica esto: */
  margin-bottom: -4px;
  /* ← Esto sube la foto hacia el nombre */
}

.newstaff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newstaff-photo span {
  font-size: 22px;
  font-weight: 700;
  color: #64748b;
}

.newstaff-info {
  flex: 1;
  min-width: 0;
}

.newstaff-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.3;
  word-break: break-word;
}

.newstaff-role {
  font-size: 14px;
  color: #64748b;
  margin: -3px 0 0 0;
  font-weight: 500;
  line-height: 1.2;
}

/* Estilos para el botón "Ver todos" */
.newstaff-more {
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  transition: all 0.2s ease;
}

.newstaff-more:hover {
  background: rgba(14, 165, 233, 0.07);
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.newstaff-more:hover .newstaff-name {
  color: var(--banner-left, #0ea5e9);
}

.newstaff-more .newstaff-photo {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
}

.newstaff-more .newstaff-photo span {
  color: #0ea5e9;
  font-size: 24px;
  font-weight: 800;
}

.newstaff-more .newstaff-name {
  color: #0ea5e9;
  font-weight: 800;
  font-size: 16px;
}

.newstaff-more .newstaff-role {
  color: #0ea5e9;
  opacity: 0.8;
  font-size: 14px;
}

/* Modal de nuevo personal - Tamaño aumentado */
.newstaff-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
}

.newstaff-modal-overlay[aria-hidden="false"] {
  display: flex;
}

.newstaff-modal {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  width: min(1000px, 95vw);
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(2, 6, 23, 0.25);
  border: 1px solid #e2e8f0;
}

.newstaff-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(90deg, var(--banner-left), var(--banner-right));
  color: white;
}

.newstaff-modal-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
}

.newstaff-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  color: white;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background 0.2s ease;
}

.newstaff-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.newstaff-modal-content {
  padding: 28px;
  max-height: 60vh;
  overflow-y: auto;
}

.newstaff-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px 0;
}

.newstaff-modal-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 0;
}

.newstaff-modal-photo {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #f8fbff;
  border: 1px solid #e6eef8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.newstaff-modal-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.newstaff-modal-role {
  font-size: 14px;
  color: #64748b;
  margin: -3px 0 0 0;
  font-weight: 500;
}

.newstaff-modal-footer {
  padding: 20px 28px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.newstaff-modal-footer p {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
}

/* Estado vacío */
.newstaff-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: #64748b;
  font-size: 1.1rem;
}

/* Loading state */
.newstaff-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: #64748b;
  font-size: 1.1rem;
}

/* Evitar scroll en el body cuando el modal está abierto */
body.newstaff-modal-open {
  overflow: hidden;
}

/* MOBILE: Versión compacta pero también aumentada */
@media (max-width: 768px) {
  .newstaff-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .newstaff-item,
  .newstaff-more {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    padding: 14px 12px;
  }

  .newstaff-info {
    align-items: flex-start;
    text-align: left;
  }

  .newstaff-name {
    font-size: 15px;
    text-align: left;
    margin-bottom: 3px;
  }

  .newstaff-role {
    font-size: 13px;
    text-align: left;
  }

  .newstaff-photo {
    width: 58px;
    height: 58px;
  }

  .newstaff-photo span {
    font-size: 20px;
  }

  .newstaff-more .newstaff-photo span {
    font-size: 22px;
  }

  .newstaff-more {
    border: 2px dashed #cbd5e1;
  }

  /* Modal en mobile */
  .newstaff-modal {
    width: 95vw;
    max-height: 90vh;
  }

  .newstaff-modal-header {
    padding: 20px 24px;
  }

  .newstaff-modal-title {
    font-size: 1.4rem;
  }

  .newstaff-modal-content {
    padding: 20px;
  }

  .newstaff-modal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .newstaff-modal-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .newstaff-modal-photo {
    width: 58px;
    height: 58px;
  }

  .newstaff-modal-name {
    font-size: 15px;
    text-align: left;
  }

  .newstaff-modal-role {
    font-size: 13px;
    text-align: left;
  }
}

/* MOBILE muy pequeño */
@media (max-width: 480px) {
  .newstaff-strip {
    gap: 14px;
  }

  .newstaff-item,
  .newstaff-more {
    padding: 12px 10px;
    gap: 12px;
  }

  .newstaff-photo {
    width: 54px;
    height: 54px;
  }

  .newstaff-name {
    font-size: 14px;
  }

  .newstaff-role {
    font-size: 12px;
  }

  .newstaff-modal-grid {
    gap: 14px;
  }
}

/* =============================================================
   HOME · CUMPLEAÑOS - Diseño automático
   ============================================================= */

.home-card-birthdays .home-card-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  padding: 20px 0;
}

.birthday-strip {
  width: 100%;
  text-align: center;
}

.birthday-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.birthday-icon {
  font-size: 48px;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.birthday-message h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #0f172a;
  font-weight: 700;
}

.birthday-message p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

/* Cuando hay cumpleañeros */
.birthday-item {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

.birthday-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 140, 0, 0.15);
  border-color: rgba(255, 140, 0, 0.3);
}

.birthday-content {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.birthday-photo {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: white;
  border: 2px solid #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.birthday-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.birthday-photo span {
  font-size: 24px;
  font-weight: 700;
  color: #ff8c00;
}

.birthday-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.birthday-info {
  flex: 1;
}

.birthday-name {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.birthday-role {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.birthday-wish {
  display: inline-block;
  background: linear-gradient(90deg, #ff8c00, #ffd700);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Mobile */
@media (max-width: 768px) {
  .birthday-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .birthday-photo {
    width: 60px;
    height: 60px;
  }

  .birthday-photo span {
    font-size: 20px;
  }

  .birthday-badge {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .birthday-name {
    font-size: 15px;
  }

  .birthday-wish {
    padding: 5px 10px;
    font-size: 11px;
  }
}

/* Cuando hay múltiples cumpleañeros */
.birthday-strip:has(.birthday-item) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 10px 0;
}

@media (max-width: 480px) {
  .birthday-strip:has(.birthday-item) {
    grid-template-columns: 1fr;
  }
}

/* Añade esto a tu CSS de cumpleaños */
.birthday-empty .birthday-icon {
  font-size: 48px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

/* Asegúrate que la torta SOLO aparezca cuando no hay cumpleaños */
.birthday-strip:has(.birthday-item) .birthday-empty {
  display: none;
}

/* =============================================================
   HOME · CARD DE CUMPLEAÑOS COMPLETA CON FONDO ESPECIAL
   ============================================================= */

/* Fondo especial para toda la card de cumpleaños */
.home-card-birthdays {
  background: linear-gradient(135deg,
      rgba(255, 248, 225, 0.95) 0%,
      rgba(255, 241, 200, 0.95) 50%,
      rgba(255, 233, 175, 0.95) 100%) !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  box-shadow: 0 8px 32px rgba(255, 140, 0, 0.08) !important;
  position: relative;
  overflow: hidden;
}

/* Efecto decorativo sutil */
.home-card-birthdays::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      #ff8c00,
      #ffd700,
      #ff8c00);
  z-index: 1;
}

/* Header con fondo más claro */
.home-card-birthdays .home-card-header {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 250, 230, 0.9) 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  margin: -1px -1px 0 -1px;
  border-radius: 16px 16px 0 0;
  padding: 20px 24px;
}

/* El tag "Cumpleaños de hoy" */
.home-card-birthdays .home-tag {
  background: linear-gradient(90deg, #ff8c00, #ffd700) !important;
  color: white !important;
  font-weight: 700 !important;
  border: none !important;
}

/* Título hebreo */
.home-card-birthdays h2 {
  color: #8b4513 !important;
  /* Marrón dorado oscuro */
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

/* Body de la card */
.home-card-birthdays .home-card-body {
  background: transparent !important;
  padding: 20px 24px 24px !important;
}

/* Estado vacío (torta) dentro de la card especial */
.home-card-birthdays .birthday-empty {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 30px;
  border: 1px dashed rgba(255, 140, 0, 0.3);
}

/* Cuando hay cumpleañeros */
.home-card-birthdays .birthday-item {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 250, 240, 0.85) 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1);
}

.home-card-birthdays .birthday-item:hover {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 252, 245, 0.95) 100%);
  border-color: rgba(255, 140, 0, 0.4);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.15);
}

/* Ajustar los elementos dentro para contraste */
.home-card-birthdays .birthday-name {
  color: #8b4513 !important;
}

.home-card-birthdays .birthday-role {
  color: #a0522d !important;
}

.home-card-birthdays .birthday-wish {
  background: linear-gradient(90deg, #ff8c00, #ffd700);
  color: white;
  font-weight: 700;
}

/* Mobile */
@media (max-width: 768px) {
  .home-card-birthdays .home-card-header {
    padding: 16px 20px;
  }

  .home-card-birthdays .home-card-body {
    padding: 16px 20px 20px !important;
  }

  .home-card-birthdays .birthday-empty {
    padding: 24px 20px;
  }
}

/* =============================================================
   HOME · CARD DE CUMPLEAÑOS - FONDO COMPLETAMENTE UNIFORME
   ============================================================= */

/* Fondo especial para TODA la card de cumpleaños */
.home-card-birthdays {
  background: linear-gradient(135deg,
      rgba(255, 248, 225, 0.95) 0%,
      rgba(255, 241, 200, 0.95) 50%,
      rgba(255, 233, 175, 0.95) 100%) !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  box-shadow: 0 8px 32px rgba(255, 140, 0, 0.08) !important;
  position: relative;
  overflow: hidden;
}

/* ELIMINAR EL FONDO DIFERENTE DEL HEADER */
.home-card-birthdays .home-card-header {
  background: transparent !important;
  /* ← ESTO ES CLAVE */
  border-bottom: 1px solid rgba(255, 215, 0, 0.2) !important;
  margin: 0 !important;
  border-radius: 0 !important;
  padding: 20px 24px 12px 24px !important;
}

/* Efecto decorativo sutil en la parte superior */
.home-card-birthdays::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      #ff8c00,
      #ffd700,
      #ff8c00);
  z-index: 1;
}

/* El tag "Cumpleaños de hoy" */
.home-card-birthdays .home-tag {
  background: linear-gradient(90deg, #ff8c00, #ffd700) !important;
  color: white !important;
  font-weight: 700 !important;
  border: none !important;
  margin-bottom: 4px !important;
}

/* Título hebreo */
.home-card-birthdays h2 {
  color: #8b4513 !important;
  /* Marrón dorado oscuro */
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  margin: 0 !important;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
}

/* Body de la card */
.home-card-birthdays .home-card-body {
  background: transparent !important;
  padding: 0 24px 24px !important;
  min-height: 140px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Estado vacío (torta) dentro de la card especial */
.home-card-birthdays .birthday-empty {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 30px;
  border: 1px dashed rgba(255, 140, 0, 0.3);
  width: 100%;
  text-align: center;
}

/* Loading state - debe ser invisible inicialmente */
.home-card-birthdays .birthday-loading {
  display: none !important;
  /* ← Esto arregla el problema de carga */
}

/* Cuando hay cumpleañeros */
.home-card-birthdays .birthday-item {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 250, 240, 0.85) 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1);
  border-radius: 16px;
  padding: 20px;
  width: 100%;
}

.home-card-birthdays .birthday-item:hover {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 252, 245, 0.95) 100%);
  border-color: rgba(255, 140, 0, 0.4);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.15);
}

/* Ajustar los elementos dentro para contraste */
.home-card-birthdays .birthday-name {
  color: #8b4513 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
}

.home-card-birthdays .birthday-role {
  color: #a0522d !important;
  font-size: 0.9rem !important;
  margin: 4px 0 8px 0 !important;
}

.home-card-birthdays .birthday-wish {
  background: linear-gradient(90deg, #ff8c00, #ffd700);
  color: white;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-block;
}

/* Mobile */
@media (max-width: 768px) {
  .home-card-birthdays .home-card-header {
    padding: 16px 20px 8px 20px !important;
  }

  .home-card-birthdays .home-card-body {
    padding: 0 20px 20px !important;
  }

  .home-card-birthdays .birthday-empty {
    padding: 24px 20px;
  }

  .home-card-birthdays h2 {
    font-size: 1.5rem !important;
  }
}

/* =============================================================
   FIX CRÍTICO: PREVENIR DOBLE RENDER EN CUMPLEAÑOS
   ============================================================= */

/* HEADER: Fondo uniforme para eliminar franja */
.home-card-birthdays .home-card-header {
  background: linear-gradient(135deg,
      rgba(255, 248, 225, 0.95) 0%,
      rgba(255, 241, 200, 0.95) 50%,
      rgba(255, 233, 175, 0.95) 100%) !important;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3) !important;
  padding: 20px 24px 12px !important;
  margin: -1px -1px 0 -1px !important;
  border-radius: 16px 16px 0 0 !important;
}

/* Card completo con fondo uniforme */
.home-card-birthdays {
  background: linear-gradient(135deg,
      rgba(255, 248, 225, 0.95) 0%,
      rgba(255, 241, 200, 0.95) 50%,
      rgba(255, 233, 175, 0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  overflow: hidden;
  position: relative;
}

/* Borde decorativo superior */
.home-card-birthdays::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff8c00, #ffd700, #ff8c00);
  z-index: 1;
}

/* Estado vacío (tortita) */
.birthday-empty {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 30px;
  border: 1px dashed rgba(255, 140, 0, 0.3);
  text-align: center;
  animation: fadeInSlideUp 0.5s ease-out;
}

@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cuando SÍ hay cumpleaños */
.birthday-item {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 250, 240, 0.85) 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  animation: fadeInSlideUp 0.5s ease-out;
}

/* Animación de la tortita */
.birthday-icon {
  font-size: 48px;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .home-card-birthdays .home-card-header {
    padding: 16px 20px 8px !important;
  }

  .birthday-empty {
    padding: 24px 20px;
  }
}

/* =============================================================
   FIX: ELIMINAR FRANJAS DE COLOR EN CUMPLEAÑOS
   ============================================================= */

/* 1. ELIMINAR CUALQUIER FONDO/BORDE DEL ITEM */
.birthday-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
}

/* 2. El contenido dentro del item también transparente */
.birthday-content {
  background: transparent !important;
  border: none !important;
}

/* 3. Foto con borde sutil (opcional, puedes quitarlo también) */
.birthday-photo {
  background: white !important;
  /* Si quieres mantener el círculo blanco */
  border: 2px solid rgba(255, 215, 0, 0.5) !important;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.15) !important;
}

/* 4. Info también transparente */
.birthday-info {
  background: transparent !important;
}

/* 5. Textos con colores que contrasten con el fondo dorado */
.birthday-name {
  color: #8b4513 !important;
  /* Marrón dorado oscuro */
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

.birthday-role {
  color: #a0522d !important;
  /* Marrón más claro */
}

/* 6. ELIMINAR cualquier gradiente o fondo adicional */
.birthday-wish {
  background: linear-gradient(90deg, #ff8c00, #ffd700) !important;
  color: white !important;
  border: none !important;
}

/* 7. Si hay hover effects, hacerlos más sutiles */
.birthday-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* 8. Estado vacío también transparente */
.birthday-empty {
  background: rgba(255, 255, 255, 0.3) !important;
  border: 1px dashed rgba(255, 140, 0, 0.3) !important;
  backdrop-filter: blur(2px);
}

/* 9. Asegurar que el contenedor principal sea transparente */
.birthday-strip {
  background: transparent !important;
}

/* 10. HEADER - Fondo uniforme con el resto del card */
.home-card-birthdays .home-card-header {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  backdrop-filter: none !important;
}

/* 11. Todo el card con fondo uniforme */
.home-card-birthdays {
  background: linear-gradient(135deg,
      rgba(255, 248, 225, 0.95) 0%,
      rgba(255, 241, 200, 0.95) 50%,
      rgba(255, 233, 175, 0.95) 100%) !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  overflow: hidden;
}

/* 12. Si hay múltiples cumpleañeros, ajustar grid */
.birthday-strip:has(.birthday-item) {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .birthday-strip:has(.birthday-item:nth-child(2)) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

/* SOLUCIÓN DIRECTA PARA SUBIR CONTENIDO */
.home-card-birthdays .home-card-body {
  margin-top: -24px !important;
  /* Esto sube todo el contenido */
  padding-top: 0 !important;
}

/* Reducir espacio debajo del título */
.home-card-birthdays .home-card-header {
  padding-bottom: 4px !important;
}

/* Ajustar posición de elementos dentro */
.birthday-strip {
  padding-top: 0 !important;
}

.birthday-item:first-child {
  margin-top: -8px !important;
}

/* SOLUCIÓN RÁPIDA - OCULTAR PASTILLA "FELIZ CUMPLEAÑOS" */
.birthday-wish {
  display: none !important;
}

/* Ajustar márgenes para que no quede espacio vacío */
.birthday-role {
  margin-bottom: 0 !important;
}

.birthday-item {
  padding-bottom: 15px !important;
}

/* SOLUCIÓN RÁPIDA - ELIMINAR AIRE DEBAJO */
.home-card-birthdays .home-card-body {
  padding-bottom: 8px !important;
  /* Muy poco espacio abajo */
  margin-bottom: -8px !important;
  /* Comprime hacia arriba */
}

.birthday-item {
  margin-bottom: 0 !important;
  padding-bottom: 4px !important;
}

/* Ajustar el contenedor del dashboard si es necesario */
.cth-dashboard .home-card-birthdays {
  min-height: 160px !important;
  /* Altura más compacta */
}

/* SOLUCIÓN RÁPIDA - CENTRAR Y COMPACTAR */
.birthday-strip {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  /* Espacio reducido entre cumpleañeros */
  margin: 0 auto !important;
  width: 100% !important;
}

.birthday-item {
  width: 90% !important;
  /* Ocupar casi todo el ancho pero centrado */
  max-width: 300px !important;
  margin: 0 auto !important;
  padding: 12px !important;
}

.birthday-content {
  justify-content: center !important;
  text-align: center !important;
  gap: 15px !important;
}

/* =============================================================
   AJUSTES FINALES CUMPLEAÑOS: BAJAR Y COMPACTAR
   ============================================================= */

/* 1. BAJAR LOS CUMPLEAÑEROS (más espacio debajo del título) */
.home-card-birthdays .home-card-body {
  margin-top: -8px !important;
  /* Antes era -24px o -16px */
  padding-top: 8px !important;
}

/* 2. JUNTAR MÁS EL NOMBRE CON EL CARGO */
.birthday-name {
  margin-bottom: 2px !important;
  /* Antes era 6px-8px */
  line-height: 1.1 !important;
}

.birthday-role {
  margin-top: -4px !important;
  /* Antes era -2px o -3px */
  margin-bottom: 0 !important;
  line-height: 1.2 !important;
  font-size: 0.9rem !important;
}

/* 3. COMPACTAR TODO EL ITEM */
.birthday-item {
  padding-top: 8px !important;
  /* Antes era 12px-16px */
  padding-bottom: 8px !important;
}

/* 4. REDUCIR ESPACIO VERTICAL ENTRE CUMPLEAÑEROS */
.birthday-strip {
  gap: 10px !important;
  /* Antes era 16px-20px */
  margin-top: 4px !important;
}

/* Desktop/tablet: cuando hay 2+ cumpleañeros, ponerlos lado a lado centrados */
@media (min-width: 600px) {
  .birthday-strip:has(.birthday-card:nth-child(2)) {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
  }
  .birthday-strip:has(.birthday-card:nth-child(2)) .birthday-card {
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }
}

/* 5. SI HAY CLASE ESPECÍFICA DEL DASHBOARD */
.cth-dashboard .home-card-birthdays .home-card-body {
  margin-top: -4px !important;
}

/* === Confeti SOLO cuando hay cumpleaños === */
.home-card-birthdays.cth-has-birthday {
  position: relative;
  overflow: hidden;
}

.home-card-birthdays.cth-has-birthday::before,
.home-card-birthdays.cth-has-birthday::after {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  pointer-events: none;
  opacity: .55;
  background:
    radial-gradient(circle at 10% 10%, #ff5a5f 0 6px, transparent 7px),
    radial-gradient(circle at 30% 20%, #ffd166 0 6px, transparent 7px),
    radial-gradient(circle at 55% 15%, #06d6a0 0 6px, transparent 7px),
    radial-gradient(circle at 75% 25%, #4dabf7 0 6px, transparent 7px),
    radial-gradient(circle at 90% 12%, #b197fc 0 6px, transparent 7px);
  filter: blur(.2px);
  animation: cth-confetti-fall 2.6s linear infinite;
}

.home-card-birthdays.cth-has-birthday::after {
  opacity: .35;
  animation-duration: 3.4s;
  transform: translateY(-20px);
}

@keyframes cth-confetti-fall {
  from {
    transform: translateY(-35%) rotate(0deg);
  }

  to {
    transform: translateY(25%) rotate(10deg);
  }
}

/* Respeta usuarios con reduced motion */
@media (prefers-reduced-motion: reduce) {

  .home-card-birthdays.cth-has-birthday::before,
  .home-card-birthdays.cth-has-birthday::after {
    animation: none !important;
  }
}

/* HOME · NUEVO PERSONAL — sin hover, sin tooltip look, sin interacción visual */
.home-card-newstaff .newstaff-item,
.home-card-newstaff .newstaff-more {
  cursor: default !important;
}

.home-card-newstaff .newstaff-item:hover,
.home-card-newstaff .newstaff-more:hover {
  transform: none !important;
  background: transparent !important;
}

.home-card-newstaff .newstaff-item:hover .newstaff-name,
.home-card-newstaff .newstaff-more:hover .newstaff-name {
  color: inherit !important;
}

/* Nuevo personal: totalmente estático (sin hover en la foto ni en el item) */
.home-card-newstaff .newstaff-item,
.home-card-newstaff .newstaff-photo,
.home-card-newstaff .newstaff-photo img {
  transition: none !important;
}

.home-card-newstaff .newstaff-item:hover {
  transform: none !important;
  background: transparent !important;
}

.home-card-newstaff .newstaff-item:hover .newstaff-name {
  color: inherit !important;
}

/* NUEVO PERSONAL — quitar completamente el "saltico" al hover */
.home-card-newstaff .newstaff-item {
  transition: none !important;
}

.home-card-newstaff .newstaff-item:hover {
  transform: none !important;
  background: transparent !important;
}

.home-card-newstaff .newstaff-photo,
.home-card-newstaff .newstaff-photo img {
  transition: none !important;
  transform: none !important;
}

/* Carrusel eventos — dots circulares */
.cth-dashboard .event-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cth-dashboard .event-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background-color: #cfd8e3;
  /* gris suave */
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.cth-dashboard .event-dot.is-active {
  background-color: #2b7cff;
  /* azul institucional */
  transform: scale(1.15);
}

/* =========================
   NUEVO PERSONAL — SKELETON
   ========================= */

.cth-dashboard .newstaff-skeleton {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 10px 0;
}

.cth-dashboard .newstaff-skeleton .sk-item {
  height: 140px;
  border-radius: 20px;
  background: linear-gradient(90deg,
      rgba(220, 225, 235, .35),
      rgba(235, 240, 248, .7),
      rgba(220, 225, 235, .35));
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* BOLETÍN — layout tipo “módulo superior”: arriba, simétrico, sin aire raro */
.cth-dashboard .home-card-bulletin .home-card-body.home-bulletin-compact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* 👈 clave: NO centrar */
  align-items: center;
  gap: 14px;
  /* menos separación */
  padding-top: 8px;
  /* pega más al título */
  padding-bottom: 18px;
  min-height: unset;
  /* 👈 evita forzar altura extra */
}

/* Cover más cercano al título y un poco más protagonista */
.cth-dashboard .home-card-bulletin .home-bulletin-thumb {
  width: min(440px, 78%);
  margin-top: 6px;
  /* cerca del header */
}

/* Botón abajo pero sin exagerar el espacio */
.cth-dashboard .home-card-bulletin .home-bulletin-cta {
  margin-top: 10px;
  /* separa sin crear vacío */
  width: min(520px, 82%);
  padding: 12px 22px;
  border-radius: 14px;
  /* menos “cápsula” */
}

/* =========================================
   BOLETÍN — como Nuevo personal (sin cajita)
   ========================================= */

/* Que el cuerpo reparta mejor el alto del card (sin aire raro):
   la card se estira igual que su vecino (Nuevo Personal), y el body
   llena ese alto sobrante y centra su contenido verticalmente,
   en vez de quedar pegado arriba/abajo dejando un hueco. */
.cth-dashboard .home-card.home-card-bulletin .home-card-body.home-bulletin-compact {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  padding-top: 8px !important;
  padding-bottom: 22px !important;
}

/* Quitar COMPLETAMENTE el look de “módulo dentro del módulo” */
.cth-dashboard .home-card.home-card-bulletin .home-bulletin-thumb {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;

  width: min(520px, 78%) !important;
  /* más grande */
  height: auto !important;
  margin: 6px auto 0 !important;
}

/* La imagen es la que tiene el radio, no el contenedor */
.cth-dashboard .home-card.home-card-bulletin .home-bulletin-thumb img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 18px !important;
  /* como el lenguaje del dashboard */
}

/* Ocultar título h2 del boletín en todas las pantallas (la imagen lo dice) */
.cth-dashboard .home-card-bulletin .home-card-header h2 {
  display: none !important;
}

/* Desktop: recortar imagen mostrando solo el encabezado THEO TEAM NEWS */
@media (min-width: 1101px) {
  .cth-dashboard .home-card.home-card-bulletin .home-bulletin-thumb img {
    max-height: unset !important;
    object-position: top !important;
    border-radius: 18px !important;
  }

  /* Ocultar el título h2 del boletín en desktop (la imagen ya lo dice) */
  .cth-dashboard .home-card-bulletin .home-card-header h2 {
    display: none !important;
  }

  /* Botón más angosto y compacto */
  .cth-dashboard .home-card.home-card-bulletin .home-bulletin-cta {
    width: auto !important;
    padding: 10px 32px !important;
    font-size: 0.9rem !important;
  }

  /* Cuerpo del boletín: miniatura arriba, botón abajo, todo centrado */
  .cth-dashboard .home-card.home-card-bulletin .home-card-body.home-bulletin-compact {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    padding-top: 4px !important;
    padding-bottom: 8px !important;
  }

  /* Compactar la card misma (menos padding vertical) */
  .cth-dashboard .home-card.home-card-bulletin {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    justify-content: flex-start !important;
    min-height: unset !important;
  }

  /* Nuevo Personal también sin min-height forzado */
  .cth-dashboard .home-card.home-card-newstaff {
    min-height: unset !important;
  }

  /* Miniatura centrada arriba */
  .cth-dashboard .home-card.home-card-bulletin .home-bulletin-thumb {
    margin: 0 auto !important;
    width: min(440px, 78%) !important;
    flex-shrink: 0 !important;
  }

  .cth-dashboard .home-card.home-card-bulletin .home-bulletin-thumb img {
    max-height: unset !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 14px !important;
    object-position: top !important;
  }

  /* Botón angosto, centrado, justo debajo de la imagen */
  .cth-dashboard .home-card.home-card-bulletin .home-bulletin-cta {
    flex: none !important;
    width: min(320px, 70%) !important;
    margin-top: 0 !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    align-self: center !important;
  }
}

/* Botón: menos ancho + más abajo */
.cth-dashboard .home-card.home-card-bulletin .home-bulletin-cta {
  width: min(360px, 70%) !important;
  /* menos ancho */
  margin-top: 18px !important;
  /* más abajo */
  padding: 12px 18px !important;
  border-radius: 14px !important;
  /* menos pronunciado */
}

/* En pantallas medianas/pequeñas, que todo se vea proporcionado */
@media (max-width: 900px) {
  .cth-dashboard .home-card.home-card-bulletin .home-bulletin-thumb {
    width: min(520px, 92%) !important;
  }

  .cth-dashboard .home-card.home-card-bulletin .home-bulletin-cta {
    width: min(420px, 92%) !important;
  }
}

/* =========================================
   HOME — alturas consistentes por breakpoint
   ========================================= */

/* Desktop grande: cards más altas y parejas */
@media (min-width: 1200px) {
  .cth-dashboard .home-card-newstaff {
    min-height: unset;
  }

  .cth-dashboard .home-card-bulletin {
    min-height: 410px;
  }

  .cth-dashboard .home-card-event-top {
    min-height: 340px;
  }

  .cth-dashboard .home-card-event-bottom {
    min-height: 340px;
  }

  .cth-dashboard .home-card-birthdays {
    min-height: 320px;
  }
}

/* Laptop / tablet horizontal */
@media (min-width: 900px) and (max-width: 1199px) {
  .cth-dashboard .home-card-newstaff {
    min-height: unset;
  }

  .cth-dashboard .home-card-bulletin {
    min-height: 500px;
  }

  .cth-dashboard .home-card-event-top {
    min-height: 320px;
  }

  .cth-dashboard .home-card-event-bottom {
    min-height: 320px;
  }

  .cth-dashboard .home-card-birthdays {
    min-height: 300px;
  }
}

/* Tablet vertical / móvil: que fluya, sin forzar alturas */
@media (max-width: 899px) {

  .cth-dashboard .home-card-newstaff,
  .cth-dashboard .home-card-bulletin,
  .cth-dashboard .home-card-event-top,
  .cth-dashboard .home-card-event-bottom,
  .cth-dashboard .home-card-birthdays {
    min-height: unset;
  }
}

/* =========================================
   CUMPLEAÑOS + EVENTO — misma presencia visual
   ========================================= */

/* Desktop grande */
@media (min-width: 1200px) {
  .cth-dashboard .home-card-birthdays {
    min-height: 340px;
    padding-bottom: 24px;
  }

  .cth-dashboard .home-card-event-top {
    min-height: 340px;
  }
}

/* Laptop / tablet horizontal */
@media (min-width: 900px) and (max-width: 1199px) {
  .cth-dashboard .home-card-birthdays {
    min-height: 320px;
    padding-bottom: 22px;
  }

  .cth-dashboard .home-card-event-top {
    min-height: 320px;
  }
}

/* En móvil: que fluya natural */
@media (max-width: 899px) {

  .cth-dashboard .home-card-birthdays,
  .cth-dashboard .home-card-event-top {
    min-height: unset;
  }
}

/* Cumpleaños: menos aire abajo */
.cth-dashboard .home-card-birthdays {
  min-height: unset !important;
  /* deja de forzar altura */
}

@media (min-width: 900px) {
  .cth-dashboard .home-card-birthdays {
    min-height: 300px !important;
    /* ajusta a un valor más compacto */
  }

  .cth-dashboard .home-card-birthdays .home-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centra el bloque de contenido dentro */
    padding-top: 10px;
    padding-bottom: 10px;
    /* reduce el “aire” */
  }
}

/* Evento: menos aire abajo */
.cth-dashboard .home-card-event-top {
  min-height: unset !important;
}

@media (min-width: 900px) {
  .cth-dashboard .home-card-event-top {
    min-height: 300px !important;
  }

  /* Ajusta el carrusel para que ocupe el alto y no deje hueco */
  .cth-dashboard .home-card-event-top .home-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .cth-dashboard .home-card-event-top .event-viewport {
    flex: 1;
    display: flex;
    align-items: center;
  }
}

/* BANNER PRINCIPAL — sin borde ni sombra */
.cth-dashboard .home-card-banner {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Nuevo personal — mejor encuadre dentro del círculo */
.cth-dashboard .newstaff-photo img {
  object-fit: cover;
  object-position: center top;
  /* 👈 clave */
}

/* =========================
   NUEVO PERSONAL — acento azul sutil
   ========================= */

.cth-dashboard .home-card-newstaff {
  background: linear-gradient(180deg,
      #e9f3ff 0%,
      #deecff 100%);
  border: 1px solid rgba(120, 170, 255, .35);
}

/* Asegura que el contenido quede arriba */
.cth-dashboard .home-card-newstaff {
  position: relative;
}

/* === FIX MOBILE · Select "Tipo de daño" se desborda === */
@media (max-width: 520px) {

  /* El grid del formulario debe permitir encogerse */
  #section-root .form-grid {
    grid-template-columns: 1fr;
  }

  /* Cada campo ocupa toda la fila */
  #section-root .form-grid .field,
  #section-root .form-grid .field-full {
    grid-column: 1 / -1;
    min-width: 0;
  }

  /* Inputs y selects nunca se salen */
  #section-root .form-grid select,
  #section-root .form-grid input,
  #section-root .form-grid textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Safari iOS fix específico para <select> */
  #section-root .form-grid select {
    appearance: none;
    -webkit-appearance: none;
  }
}

/* ===========================
   FIX iOS: cards titilando
   (Safari toca/scroll activa :hover)
   =========================== */

/* 1) No uses transition: all (provoca repaints feos en mobile) */
.clickable-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  will-change: transform;
}

/* 2) Hover SOLO cuando exista hover real (mouse/trackpad) */
@media (hover: hover) and (pointer: fine) {
  .clickable-card:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.15);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03), rgba(125, 211, 252, 0.03));
    border-color: rgba(14, 165, 233, 0.2);
  }
}

/* 3) En pantallas touch: NO hover (evita el titileo) */
@media (hover: none) and (pointer: coarse) {
  .clickable-card:hover {
    transform: none;
    box-shadow: none;
    background: inherit;
    border-color: none;
    /* <-- mantiene el borde normal */
  }

  /* y por si Safari se “queda pegado” en hover */
  .clickable-card:active {
    transform: none;
    box-shadow: none;
  }
}

/* ===== NUEVO PERSONAL: layout responsivo ===== */

/* Laptop / tablet: 2 columnas */
@media (min-width: 641px) and (max-width: 1100px) {
  .home-card-newstaff .newstaff-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px;
    align-items: start;
  }

  .home-card-newstaff .newstaff-item {
    width: auto !important;
    min-width: 0 !important;
  }
}

/* Pantallas grandes: 2 columnas (diseño con imagen deco) */
@media (min-width: 1101px) {
  .home-card-newstaff .newstaff-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 16px;
    align-items: start;
  }
}

/* Móvil: 1 columna */
@media (max-width: 640px) {
  .home-card-newstaff .newstaff-strip {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    justify-items: center;
  }

  .home-card-newstaff .newstaff-item {
    width: 100%;
    max-width: 240px;
    justify-content: flex-start;
  }

  .home-card-newstaff .newstaff-photo {
    width: 54px !important;
    height: 54px !important;
    flex-shrink: 0 !important;
  }
}

/* MacBook 13” y laptops similares */
@media (min-width: 1100px) and (max-width: 1440px) and (max-height: 900px) {
  .home-card-newstaff .newstaff-name {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  .home-card-newstaff .newstaff-role {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
}

@media (min-width: 641px) and (max-width: 1400px) {
  .home-card-newstaff .newstaff-name {
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    white-space: normal;
    hyphens: none !important;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: visible;
    text-overflow: clip;
    max-width: calc(100% - 8px);
  }

  .home-card-newstaff .newstaff-role {
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    opacity: 0.85;
    hyphens: none !important;
  }

  /* Dar espacio a la derecha para que el carnet no tape */
  .home-card-newstaff .newstaff-strip {
    padding-right: 66px !important;
  }
}

/* ====== Calendario + Agenda más compactos SOLO en laptops ====== */
@media (min-width: 768px) and (max-height: 900px) {

  /* Contenedor derecho (calendario + agenda) */
  .cth-dashboard .right-column,
  .cth-dashboard .calendar-column {
    transform: scale(0.92);
    transform-origin: top right;
  }

  /* Tarjetas */
  .cth-dashboard .calendar-card,
  .cth-dashboard .agenda-card {
    padding: 12px !important;
  }

  /* Títulos */
  .cth-dashboard .calendar-card h3,
  .cth-dashboard .agenda-card h3 {
    font-size: 0.95rem !important;
    margin-bottom: 6px;
  }

  /* Texto de agenda */
  .cth-dashboard .agenda-card li,
  .cth-dashboard .agenda-card p {
    font-size: 0.85rem !important;
    line-height: 1.3;
  }

  /* Botón "Tu agenda" */
  .cth-dashboard .agenda-card .btn,
  .cth-dashboard .agenda-card button {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }
}

/* ====== SOLO laptops: achicar panel derecho (Calendario + Agenda) ====== */
@media (min-width: 768px) and (max-height: 900px) {
  .cth-dashboard .sidebar-right {
    zoom: 0.90;
    /* Chrome/Edge: funciona muy bien para “encoger” UI */
  }
}



/* Phidias SSO Fallback Styles */
.phidias-iframe-wrapper {
  position: relative;
  width: 100%;
  height: 80vh;
  /* Adjust height for dashboard */
}

.phidias-fallback-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  color: #991b1b;
  font-size: 0.9rem;
}

.phidias-fallback-banner p {
  margin: 0;
  font-weight: 500;
}

.phidias-btn-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #06a9ff;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.phidias-btn-open:hover {
  background: #008fdb;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .phidias-fallback-banner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* === Premium HR Icons Styling === */
.grid-actions .icon-premium {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.grid-actions .action:hover .icon-premium {
  filter: drop-shadow(0 6px 16px rgba(59, 130, 246, 0.2));
  transform: scale(1.05);
}

/* Tamaño más grande para los iconos */
.grid-actions .action .icon {
  width: 150px;
  height: 150px;
}

/* === Premium HR Icons Styling (Sin animaciones) === */
.grid-actions .icon-premium {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  transition: all 0.3s ease;
}

.grid-actions .action:hover .icon-premium {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.12));
  transform: scale(1.05);
}

/* Aumentar tamaño del contenedor del ícono */
.grid-actions .action .icon {
  width: 80px;
  height: 80px;
}
/* ==============================================
   NUEVO PERSONAL — contenido centrado verticalmente
   cuando la card se estira por la columna del Boletín
   ============================================== */
@media (min-width: 1100px) {
  .cth-dashboard .home-card-newstaff {
    display: flex;
    flex-direction: column;
  }
  .cth-dashboard .home-card-newstaff .home-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

/* Imagen decorativa esquina superior derecha */
.home-card-newstaff {
  position: relative;
  overflow: visible;
}

.newstaff-deco {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 70px;
  height: auto;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  border-radius: 0 24px 0 0;
}

@media (max-width: 768px) {
  .newstaff-deco {
    width: 58px;
    top: 6px;
    right: 10px;
  }
}

/* ==============================================
   NUEVO PERSONAL en home — mismo look que cumpleaños:
   fila horizontal, foto + nombre al lado, centrado
   ============================================== */
.home-card-newstaff .newstaff-strip {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px 24px !important;
  position: relative;
  z-index: 1;
  padding-right: 0 !important;
  align-items: center;
}

.home-card-newstaff .newstaff-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  text-align: left !important;
  overflow: hidden;
}

.home-card-newstaff .newstaff-item .newstaff-info {
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden;
}

/* header y body por encima de la imagen deco */
.home-card-newstaff .home-card-header,
.home-card-newstaff .home-card-body {
  position: relative;
  z-index: 1;
}

.home-card-newstaff .newstaff-photo {
  width: 54px !important;
  height: 54px !important;
  flex-shrink: 0 !important;
}

.home-card-newstaff .newstaff-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  margin: 0 0 2px 0 !important;
  text-align: left !important;
  line-height: 1.3 !important;
  hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

.home-card-newstaff .newstaff-role {
  font-size: 11px !important;
  margin-top: 0 !important;
  text-align: left !important;
  line-height: 1.35 !important;
  color: #64748b !important;
  hyphens: none !important;
  word-break: normal !important;
  white-space: normal !important;
}

/* ==============================================
   NUEVO PERSONAL — evitar truncado de texto
   ============================================== */
.home-card-newstaff .newstaff-name,
.home-card-newstaff .newstaff-role {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  max-width: none !important;
  hyphens: none !important;
}


/* ==============================================
   iMAC RETINA 24" — 2240px o más
   Restaura alturas y tamaños similares a laptop
   ============================================== */
@media (min-width: 2240px) {
  /* ── Card Nuevo Personal ─────────────────────────── */
  .cth-dashboard .home-card-newstaff {
    min-height: 340px;
  }

  .cth-dashboard .home-card-newstaff .home-card-body {
    min-height: 240px;
    gap: 20px;
    align-content: center;
    padding-top: 32px;
  }

  /* Fotos más grandes */
  .home-card-newstaff .newstaff-photo,
  .home-card-newstaff .newstaff-photo img {
    width: 96px !important;
    height: 96px !important;
    border-radius: 50% !important;
  }

  /* Separación entre cada persona */
  .home-card-newstaff .newstaff-item {
    gap: 14px !important;
  }

  .home-card-newstaff .newstaff-name {
    font-size: 1.1rem !important;
  }

  .home-card-newstaff .newstaff-role {
    font-size: 0.95rem !important;
  }

  /* ── Card Boletín ────────────────────────────────── */
  .cth-dashboard .home-card-bulletin {
    min-height: 340px;
  }

  /* Título del boletín más visible */
  .cth-dashboard .home-card-bulletin .home-card-title,
  .cth-dashboard .home-card-bulletin h2,
  .cth-dashboard .home-card-bulletin h3 {
    font-size: 1.25rem !important;
    margin-bottom: 10px !important;
  }

  /* body = mismo div que home-bulletin-compact: columna, centrado, botón abajo */
  .cth-dashboard .home-card.home-card-bulletin .home-card-body.home-bulletin-compact {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    padding: 24px !important;
    gap: 10px !important;
  }

  /* Miniatura centrada al 60% */
  .cth-dashboard .home-card.home-card-bulletin .home-bulletin-thumb {
    width: 60% !important;
    height: auto !important;
    max-height: 220px !important;
    margin: 0 auto !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  .cth-dashboard .home-card.home-card-bulletin .home-bulletin-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-height: unset !important;
    object-fit: cover !important;
    object-position: top !important;
    border-radius: 10px !important;
    display: block !important;
  }

  /* Botón angosto, centrado, pegado justo debajo de la imagen */
  .cth-dashboard .home-card.home-card-bulletin .home-bulletin-cta {
    width: min(360px, 70%) !important;
    height: 52px !important;
    font-size: 1.1rem !important;
    padding: 0 32px !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
    align-self: center !important;
  }

  .cth-dashboard .home-bulletin-text.small {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .cth-dashboard .home-bulletin-note {
    font-size: 1rem;
  }
}

/* =============================================================
   TABLET 820px–1024px · Carrusel + Avatar
   ============================================================= */
@media (min-width: 820px) and (max-width: 1024px) {

  /* Carrusel: contenedor no se desborda */
  .cth-dashboard .event-carousel {
    width: 100% !important;
    overflow: hidden !important;
  }

  .cth-dashboard .event-viewport {
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    height: 160px !important;
  }

  .cth-dashboard .event-track {
    display: flex !important;
    width: 100% !important;
  }

  .cth-dashboard .event-slide {
    flex: 0 0 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .cth-dashboard .event-slide img {
    width: 100% !important;
    height: 160px !important;
    object-fit: contain !important;
    border-radius: 14px !important;
    display: block !important;
    background: #fff !important;
  }

  /* Avatar del banner: circular y contenido dentro */
  .cth-dashboard .avatar-hero {
    border-radius: 9999px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    width: 90px !important;
    height: 90px !important;
    flex: 0 0 90px !important;
  }

  .cth-dashboard .avatar-hero .badge-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 9999px !important;
    object-fit: contain !important;
  }
}
