
:root {
  --bg-page: #f5f3f2;
  --bg-soft: #ffffff;
  --bg-soft-alt: #f0ebe9;
  --primary: #00c16a;
  --primary-soft: rgba(0, 193, 106, 0.12);
  --accent: #29a8ff;
  --danger: #ff5a5f;
  --warning: #f6a623;
  --text-main: #222222;
  --text-muted: #6b6b6b;
  --border-soft: #e1dfdd;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Logo completo */
.logo-img-full {
  /* height: 100px; */
  height: 60px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #ffffff 0, #f5f3f2 45%, #ede7e4 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font-family: inherit;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* Topbar / navbar */

.topbar {
  background: #15181f;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.75rem;
  min-height: 68px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}


.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid #ffd27f;
  background: radial-gradient(circle at 25% 15%, #ffe9b0 0, #ffb347 40%, #f58b1f 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #4a2500;
}


.system-name-short {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 600;
  color: #ffffff; 
  opacity: 0.95;
  letter-spacing: 0.4px;
}



.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

/* .nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
} */


.nav-link {
  font-size: 0.9rem;
  color: #f5f5f5;
  text-decoration: none;
  position: relative;
  padding-block: 0.25rem;
  opacity: 0.8;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  font-weight: 600;
  opacity: 1;
}

.nav-link.active::after {
  width: 100%;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  padding: 0.25rem 0.6rem 0.25rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-greeting {
  font-size: 0.8rem;
  color: #eaeaea;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 15%, #fef6ff 0, #c084fc 45%, #7e22ce 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Toggle móvil */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 60%;
  margin-inline: auto;
  border-radius: 99px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

.nav-toggle--open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  width: 70%;
}

.nav-toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 70%;
}

/* Hero */

.hero {
  padding: 2.75rem 0 1.5rem;
}

.hero-inner {
  text-align: center;
}

.hero-title {
  font-size: clamp(1.65rem, 2.4vw + 1rem, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1e1b4b;
  margin: 0;
}

.hero-subtitle {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.05rem;
  font-weight: 400;
  text-align: center;
}

.hero-subtitle strong {
  font-weight: 700;
}

/* Métricas */

.metrics-section {
  padding-bottom: 1.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.metric-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 1.4rem;
  background: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  
}

.metric-card:nth-child(2) .metric-icon {
  background: #e0f2fe;
}

.metric-card:nth-child(3) .metric-icon {
  background: #dcfce7;
}

.metric-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.metric-number {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.metric-number--yellow {
  color: var(--warning);
}

.metric-number--green {
  color: var(--primary);
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Panel evaluaciones */

.evaluaciones-section {
  padding: 1.5rem 0 2.5rem;
}

.panel {
  background: var(--bg-soft);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel-header {
  padding: 1.25rem 1.5rem 0.85rem;
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
  display: flex;
  justify-content: center;
}

.panel-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

.panel-body {
  padding: 1.4rem 1.5rem 1.25rem;
}

/* Filtros */

.filters-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) repeat(2, minmax(0, 1.4fr)) minmax(0, 1.8fr);
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.4rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.field-control {
  position: relative;
}

.input {
  width: 100%;
  border-radius: 8px; /* 🔥 igual que hallazgos */
  border: 1px solid var(--border-soft);
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  background: #faf8f7;
  text-align: left;
  text-transform: uppercase; /* Para convertir texto de los input a mayuscula */
}


.input:focus {
  background: #ffffff;
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.28);
}

.input::placeholder {
  color: #a3a3a3;
}

.filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn {
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--primary), #16a34a);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.25);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

/* Tabla */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible !important;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #fcfbfa;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 720px;
}

.table thead {
  background: #f6f4f3;
}

.table th,
.table td {
  padding: 0.65rem 0.9rem;
  text-align: center;
  border-bottom: 1px solid #ebe6e3;
  white-space: nowrap;
}

/* ========================================= */
/* Permitir wrap solo en Hallazgos y Aspectos */
/* ========================================= */

.evaluation-table td:nth-child(5),
.evaluation-table td:nth-child(6) {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  vertical-align: top;
}

.table th {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
}

.table tbody tr:hover {
  background: #f9fafb;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-info {
  background: #e0f2fe;
  color: #075985;
}

.table-action {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0.1rem 0.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pagination {
  display: inline-flex;
  gap: 0.2rem;
}

.page-btn {
  min-width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 0.75rem;
  cursor: pointer;
}

.page-btn--active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Proceso */

.proceso-section {
  padding: 1.5rem 0 2.5rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.6rem;
  color: #1f2937;
}

.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.proceso-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}

.proceso-icon {
  width: 44px;
  height: 44px;
  border-radius: 1.2rem;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.proceso-title {
  font-size: 0.98rem;
  margin: 0;
  font-weight: 600;
  text-align: center;
}

.proceso-text {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: justify;
}

/* Apoyo */

.apoyo-section {
  padding: 0.5rem 0 3rem;
}

.apoyo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.apoyo-card {
  min-height: 70px;
  border-radius: var(--radius-md);
  background: conic-gradient(from 180deg at 50% 50%, #f4f4f5, #e5e7eb, #f4f4f5);
  border: 1px dashed #d4d4d8;
}

/* Footer */

.site-footer {
  border-top: 1px solid #ded7d2;
  background: #171717;
  color: #d4d4d8;
  padding: 0.9rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
}

.footer-meta {
  opacity: 0.7;
}

.site-footer a {
  color: inherit !important;       /* hereda el color del footer */
  text-decoration: none !important;
}

.site-footer a:hover {
  color: #ffffff !important;       /* más brillante al pasar el mouse */
}


/* RESPONSIVE */

@media (max-width: 960px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proceso-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar {
    padding-block: 0.6rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #111827;
    flex-direction: column;
    padding: 0.7rem 1.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .nav-links--open {
    max-height: 280px;
    opacity: 1;
    pointer-events: auto;
  }

  .user-pill {
    display: none;
  }

  .metrics-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-header,
  .panel-body {
    padding-inline: 1.1rem;
  }

  .filters-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .filters-actions {
    justify-content: flex-start;
  }

  .proceso-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .apoyo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, 480px);
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .metric-card {
    padding-inline: 1rem;
  }

  .table-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* ==== ACTION DROPDOWN ==== */
.action-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.table-action {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  transition: background .15s ease, box-shadow .15s ease;
}
.table-action span {
  width: 3px; height: 3px;
  border-radius: 999px;
  background: #6b7280;
}
.table-action:hover {
  background: #f9fafb;
  box-shadow: 0 3px 9px rgba(0,0,0,.15);
}

.action-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  min-width: 230px;
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.25);
  box-shadow: 0 12px 35px rgba(15,23,42,.14);
  padding: .4rem 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: all .16s ease;
  z-index: 20;
}
.action-menu--open .action-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.action-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .48rem .9rem;
  font-size: .86rem;
  color: #111827;
  text-decoration: none;
  transition: background .13s ease;
}
.action-item:hover {
  background: #f3f4ff;
}

.action-icon {
  width: 20px; height: 20px;
  background-size: 18px;
  border-radius: 8px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ICON REFERENCES */
.icon-evaluacion { background-image: url("../images/icon-evaluacion.svg"); background-color:#ecfdf5; }
.icon-informe { background-image: url("../images/icon-informe.svg"); background-color:#eff6ff; }
.icon-estado { background-image: url("../images/icon-estado.svg"); background-color:#fff7ed; }


/* ==== METRIC CARD HOVER EFFECT ====  OPCIÓN 1 — Zoom + Sombra flotante */
.metric-card {
  transition: box-shadow .25s ease, transform .25s ease;
}

.metric-card:hover {
  transform: translateY(-6px);
}

.metric-card:nth-child(1):hover {
  box-shadow: 0 0 0 6px rgba(130, 128, 52, .18);
}

.metric-card:nth-child(2):hover {
  box-shadow: 0 0 0 6px rgba(255, 165, 0, .18);
}

.metric-card:nth-child(3):hover {
  box-shadow: 0 0 0 6px rgba(0, 180, 85, .18);
}


/* Hover moderno para tarjetas de métricas */
.metric-card {
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.metric-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 35px rgba(0, 0, 0, .14);
}


/* Hover moderno en tarjetas del proceso */
.proceso-card {
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.proceso-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 35px rgba(0, 0, 0, .14);
}

.proceso-icon {
  transition: transform .25s ease;
}

.proceso-card:hover .proceso-icon {
  transform: scale(1.12) rotate(2deg);
}

.litepicker {
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(15,23,42,.18) !important;
  border: 1px solid rgba(0,0,0,.05) !important;
  overflow: hidden;
}

.litepicker .month-item-header {
  background: #fdfdfd !important;
  font-weight: 600;
  color: #1e1b4b !important;
}

.litepicker .button-next, 
.litepicker .button-previous {
  background: transparent !important;
  border-radius: 8px !important;
}

.litepicker .is-start-date,
.litepicker .is-end-date,
.litepicker .is-in-range {
  background: rgba(37, 99, 235, 0.12) !important;
  color: #111 !important;
}

.litepicker .is-end-date,
.litepicker .is-start-date {
  background: #2563eb !important;
  color: white !important;
}

/* ==== SLIDER PATROCINADORES ==== */
.apoyo-section {
  margin-top: 70px;
  text-align: center;
}

.logos-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 25px 0;
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: slideLogos 12s linear infinite;
}

.logos-track img {
  height: 70px;
  filter: grayscale(0.2);
  opacity: 0.88;
  transition: transform .3s ease, opacity .3s ease, filter .3s ease;
}

.logos-track img:hover {
  transform: scale(1.08);
  opacity: 1;
  filter: grayscale(0);
}

@keyframes slideLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==== MENU DESPLEGABLE PARA EL USUARIO ==== */
/* ==== USER DROPDOWN ==== */
.user-menu-wrapper {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  transition: transform .2s ease;
}

.user-btn:hover .user-avatar {
  transform: scale(1.06);
}

.user-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  width: 240px;
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(0,0,0,.12);
  padding: 8px 0;
  display: none;
  z-index: 999;
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 18px;
  border-width: 0 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent white transparent;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: .88rem;
  text-decoration: none;
  color: #1e1e1e;
  transition: background .2s ease;
}

.user-item:hover {
  background: #eef2ff;
}

/* ==== MODAL DE LOGIN ==== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  backdrop-filter: blur(3px);
}

.modal-box {
  background: #fff;
  width: 420px;
  padding: 28px 32px;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  animation: modalShow .25s ease;
}

@keyframes modalShow {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e1e1e;
}

.modal-label {
  font-size: .9rem;
  margin-bottom: 5px;
  color: #333;
}

.modal-input {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: .9rem;
}

.modal-input:focus {
  border-color: #3b82f6;
  outline: none;
  background: #fff;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-aceptar,
.btn-cancelar {
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: .2s ease;
}

.btn-aceptar {
  background: #22c55e;
  color: #fff;
}

.btn-aceptar:hover {
  background: #16a34a;
}

.btn-cancelar {
  background: #dc2626;
  color: #fff;
}

.btn-cancelar:hover {
  background: #b91c1c;
}


/* ===== ICONO INFO ===== */
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  cursor: pointer;
  position: relative;
}

.info-svg {
  width: 18px;
  height: 18px;
  stroke: #6b7280;
  transition: .2s ease;
}

.tooltip-icon:hover .info-svg {
  stroke: #111;
  transform: scale(1.08);
}

/* ===== TOOLTIP ===== */
/* ===== ICONO ===== */
.tooltip-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  cursor: pointer;
}

.info-circle {
  width: 16px;
  height: 16px;
  transition: .18s ease;
}

.tooltip-icon:hover .info-circle {
  transform: scale(1.12);
  stroke: #111;
  fill: #111;
}

/* ===== Poner color claro el mensaje de bienvenida al usuario en el menu superior ===== */
.navbar-user-text {
    color: #ffffff !important;
    font-weight: 500;
}

/* ===== AVATAR USUARIO EN EL MENU SUPERIOR ===== */
.user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
}

.navbar-user-text {
  font-weight: 600;
  color: #fff;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a6aff, #a283ff);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #ffffff33;
  overflow: hidden;
  transition: transform .2s ease, background .2s ease;
}

.user-avatar:hover {
  transform: scale(1.07);
  background: linear-gradient(135deg, #8181ff, #b894ff);
}

.user-icon {
  width: 22px;
  height: 22px;
}


/* CENTRAR COLUMNAS (tabla de evaluaciones) */
.table tbody td:nth-child(3),
.table tbody td:nth-child(5),
.table tbody td:nth-child(6),
.table tbody td:nth-child(7),
.table tbody td:nth-child(8),
.table tbody td:nth-child(9),
.table tbody td:nth-child(10), /* Calidad y servicios */
.table tbody td:nth-child(11), /* Gestión de talento humano */
.table tbody td:nth-child(12)  /* Evaluación global */ {
  text-align: center !important;
}

/* CENTRAR ENCABEZADOS TAMBIÉN */
.table thead th:nth-child(3),
.table thead th:nth-child(5),
.table thead th:nth-child(6),
.table thead th:nth-child(7),
.table thead th:nth-child(8),
.table thead th:nth-child(9),
.table thead th:nth-child(10),
.table thead th:nth-child(11),
.table thead th:nth-child(12) {
  text-align: center !important;
}


/* ==== DESTACAR LA COLUMNA DE EVALUACIÓN GLOBAL ==== */
.table tbody td:nth-child(12) {
  font-weight: 800;
  text-align: center;
}

.table tbody td:nth-child(12) {
  position: relative;
}

.table tbody td:nth-child(12)::before {
  content: "";
  position: absolute;
  inset: 6px 10px;
  border-radius: 999px;
  background: rgba(72, 187, 120, 0.14);
  z-index: 0;
}

.table tbody td:nth-child(12) {
  z-index: 1;
}


/* Permite que los encabezados se comporten como contenedores */
th {
  position: relative;
}

/* Línea de arrastre */
th .resize-handle {
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
}


th {
    position: relative;
    display: table-cell !important; /* necesario */
    table-layout: auto !important;
}

.resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    width: 8px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
    z-index: 20;
}

/* ---------------------------------------------------------- */

/* TARJETAS GRANDES DE OPCIONES */
.opcion-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 40px 45px;
  width: 48%;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: transform 0.2s ease;
}

.opcion-card:hover {
  transform: translateY(-4px);
}

.opcion-card img {
  width: 70px;
  margin-bottom: 20px;
}

.opcion-card h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1f2937;
}

.opcion-card p {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 30px;
}

.opcion-card .btn-opcion {
  width: 200px;
  padding: 14px;
  border-radius: 30px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-opcion.verde {
  background: linear-gradient(90deg, #4CAF50, #3A8F3A);
  text-decoration: none;
  color: #fff;
}

.btn-opcion.azul {
  background: linear-gradient(90deg, #2979ff, #1e5ed8);
  text-decoration: none;
  color: #fff;
}

.btn-opcion:hover {
  transform: scale(1.03);
}

.opciones-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
}

/* ---------------------------------------------------------- */

/* Separación proporcional como en el index */
.opciones-grid {
    margin-top: 40px;
    margin-bottom: 40px;   /* Para la distancia con el footer */
}

.opcion-card {
    margin-bottom: 0; /* No ocupan margen extra */
}

/* ---------------------------------------------------------- */

/* Centrar únicamente el título principal del hero */
.hero .hero-title {
    text-align: center;
    width: 100%;
}
/* ---------------------------------------------------------- */
/* Centrar contenido de las tarjetas de opción */
.opcion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.opcion-btn {
    margin-top: 25px;
    align-self: center;
}

/* ---------------------------------------------------------- */
/* Ajustes para pantallas pequeñas */
/* Reduce el espacio entre el icono y el título */
.opcion-card img {
    margin-bottom: 10px !important;
}

/* Reduce espacio entre el título y la descripción */
.opcion-card h3 {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

/* Reduce espacio entre la descripción y el botón */
.opcion-card p {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

/* Ajustar padding interno de la tarjeta para que no quede gigante */
.opcion-card {
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}

/* ---------------------------------------------------------- */
/* === TARJETAS DE ÁREAS DE EVALUACIÓN (6 TARJETAS EN GRID) === */
/* ---------------------------------------------------------- */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    margin: 45px auto;
    max-width: 1200px;
}

.area-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform .22s ease, box-shadow .22s ease;
}

.area-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.area-card img {
    width: 72px;
    margin: 0 auto 16px;
}

.area-card h3 {
    font-size: 19px;
    font-weight: 800;
    color: #003b8e;
    margin-bottom: 12px;
}

.area-card p {
    font-size: 15px;
    line-height: 1.55;
    color: #4b4b4b;
    margin-bottom: 28px;
}

.area-card .btn-area {
    background: #0052cc;
    color: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.area-card .btn-area:hover {
    background: #003d99;
    transform: scale(1.04);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .areas-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Icono de área, oculto por defecto */
.area-icon {
  width: 72px;
  height: auto;
  margin: 0 auto 14px;
  display: none;
}

/* si hay icono, se muestra */
.area-icon[src] {
  display: block;
}


/* ============================= */
/*   TABS DE ESTÁNDARES          */
/* ============================= */

.estandar-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}

.estandar-tab {
  padding: 10px 22px;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  border: 1px solid #d5d5d5;
  transition: 0.2s;
  font-weight: 600;
}

.estandar-tab.active {
  background: #006eff;
  color: white;
  border-color: #006eff;
}

/* ============================= */
/*   CONTENIDO DE LOS TABS       */
/* ============================= */

.estandar-content {
  display: none;
}

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

/* ============================= */
/*   PANEL PRINCIPAL             */
/* ============================= */

.panel-evaluacion {
  padding: 30px;
  border-radius: 20px;
  background: white;
  margin-top: 10px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.06);
  }

/* ============================= */
/*   PROGRESS BAR POR ESTÁNDARES */
/* ============================= */

.progress-container {
  width: 100%;
  margin: 24px 0 18px;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

/* Relleno que avanza */
.progress-bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #00c16a);
  transition: width .3s ease;
}

/* Bolitas de cada estándar */
.progress-step {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #d1d5db;
  transform: translateY(-50%);
  box-shadow: 0 1px 3px rgba(15,23,42,.18);
}

/* Posiciones de las bolitas */
.progress-step[data-step="1"] { left: 0%;   transform: translateY(-50%); }
.progress-step[data-step="2"] { left: 50%; transform: translate(-50%, -50%); }
.progress-step[data-step="3"] { right: 0%; transform: translateY(-50%); }

/* Estado activo (las ya alcanzadas) */
.progress-step.active {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.18);
}

/* Texto debajo de la barra */
.progress-text {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #4b5563;
  text-align: center;
}





/* ============================= */
/*   CAMPOS SOLO LECTURA         */
/* ============================= */

.readonly-input {
  background: #f5f5f5 !important;
  cursor: not-allowed;
}

/* Centrar títulos de las columnas de la tabla */
.table thead th {
    text-align: center !important;
    vertical-align: middle;
}

/* Mantener el mismo ancho de columnas en los 3 estándares */
.evaluation-table {
  width: 100%;
  table-layout: fixed;       /* Fuerza que respete los anchos de las columnas */
  }

/**********************************/  
/* Anchos por columna */
/**********************************/
/* columna número */
.evaluation-table .col-no {
  width: 3%;
}

/* columna medio de verificación */
.evaluation-table .col-medio {
  width: 30%;
}

/* columna respuesta */
.evaluation-table .col-respuesta {
  width: 18%;
}

/* columna puntaje */
.evaluation-table .col-puntaje {
  width: 11%;
}

/* columna hallazgos */
.evaluation-table .col-hallazgos {
  width: 20%;
}

/* columna aspectos a mejorar */
.evaluation-table .col-aspectos {
  width: 20%;
}

/* ============================= */





/* Separación entre la tabla y el footer (como en otras pantallas) */
.panel-evaluacion {
    margin-bottom: 60px; /* Ajustalo a tu gusto: 40–80px */
}

/* para dar más espacio con el margen */
.estandar-content {
    margin-bottom: 40px; 
}

/* Permitir que el texto dentro de las celdas se ajuste y haga wrap */
.wrap-text {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    display: block;
    text-align: justify;
}


/* ============================= */
/*   ICONOS DE ADJUNTAR EN EVALUACIÓN         */
/* ============================= */
.adjunto-icon {
  width: 30px;
  height: 30px;
  opacity: 0.82;
  transition: .15s ease;
}

.table-action:hover .adjunto-icon {
  opacity: 1;
  transform: scale(1.08);
}


/* ============================= */
/* === CAJA DE TEXTO CUADRADA PARA HALLAZGOS Y ASPECTOS === */
/* ============================= */

.textarea-evaluacion {
  width: 100%;
  min-height: 90px;
  max-height: 260px;

  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #f5f5f5;

  padding: 10px 14px;

  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;

  resize: none;
  overflow-y: auto;

  white-space: pre-wrap;
  word-break: break-word;
}

.textarea-evaluacion:focus {
  background: #ffffff;
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.28);
  outline: none;
}


/* ==== Para alinear los botones al centro ==== */
/* === BOTONES DE EVALUACIÓN === */
.actions-footer {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 10px 0 10px 0;
}

/* Botón base */
.btn-eval {
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 30px;
  padding: 14px 32px;
  cursor: pointer;
  transition: .18s ease;
  border: none;
}

/* Azul */
.btn-primary-eval {
  background: #005FCC;
  color: #fff;
}
.btn-primary-eval:hover {
  background: #004fb1;
}

/* Gris oscuro */
.btn-dark-eval {
  background: #383838;
  color: #fff;
}
.btn-dark-eval:hover {
  background: #2f2f2f;
}

/* Blanco con borde azul */
.btn-outline-eval {
  background: #ffffff;
  border: 2px solid #005FCC;
  color: #005FCC;
  text-decoration: none;
}
.btn-outline-eval:hover {
  background: #eaf2ff;
}
/* Mismo tamaño entre los tres botones */
.actions-footer .btn-eval {
  min-width: 240px; /* ancho mínimo igual para todos */
  text-align: center;
}

/* hacer responsive las evaluaciones */
/* ===== RESPONSIVE ===== */

/* Scroll horizontal en tablet */
@media (max-width: 1100px) {
  .evaluation-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Tarjetas en celular */
@media (max-width: 850px) {
  .evaluation-table thead { display: none; }
  .evaluation-table,
  .evaluation-table tbody,
  .evaluation-table tr,
  .evaluation-table td { display: block; width: 100%; }

  .evaluation-table tr { margin-bottom: 28px; padding: 20px; background: #fff; border-radius: 16px; }
  .evaluation-table td { padding: 6px 0; text-align: left!important; }

  .evaluation-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
    display: block;
    margin-bottom: 4px;
  }
}


/* para hacer responsive los botones de acción */
@media (max-width: 850px) {
  .actions-footer {
    flex-direction: column;
    gap: 14px;
  }
  .btn-eval {
    width: 100% !important;
  }
}


/* Reducir espacio entre panel y footer */
.panel-evaluacion {
    margin-bottom: 16px;
}

.estandar-content {
    margin-bottom: 10px;
}

/* === BLOQUE DE RESULTADOS EN CADA ESTÁNDAR === */
.resultados-globales {
  margin: 22px 0 10px 0;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  text-align: center;
}

.resultado-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.resultado-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000000;
}

.resultado-input {
  width: 120px;
  text-align: center;
  font-weight: 600;
  background: #f0f0f0 !important;
}


.tooltip-btn:hover {
  background: #0f63d6;
}

/* Animación suave */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-45%); }
  to   { opacity: 1; transform: translateY(-50%); }
}


.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-card {
  position: absolute;
  top: 40px;               /* sale DEBAJO del icono */
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.15);
  font-size: 0.85rem;
  line-height: 1.3rem;
  color: #333;
  display: none;           /* oculto por defecto */
  z-index: 999;  
}

.tooltip-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 8px 10px 8px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
}

.tooltip-btn {
  margin-top: 10px;
  background: #1d7bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
  width: 100%;
  max-width: 160px;
  text-align: center; /* Para centrar el texto */
  text-decoration: none;

}

/*-- Mostrar tooltip al pasar el mouse */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-card {
  position: absolute;
  top: 40px;              
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.15);
  font-size: 0.85rem;
  line-height: 1.3rem;
  color: #333;
  display: none;
  z-index: 999;

  white-space: normal !important;   /* <—— ESTO ARREGLA EL TEXTO */
}


.tooltip-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 8px 10px 8px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
}

.tooltip-wrapper:hover .tooltip-card {
  display: block;
}

.tooltip-btn {
  margin-top: 10px;
  background: #1d7bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
}

/* ============================= */
/*   ESTILO BOTÓN ACCIÓN EN TABLA  */
/* ============================= */
.table-action {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.adjunto-icon {
  width: 28px;
  height: 28px;
  cursor: pointer;
}
/* SOLO limpiar botón adjuntar, sin afectar otros .table-action */
td .table-action img.adjunto-icon,
.tooltip-wrapper .table-action img.adjunto-icon {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
}

td .table-action,
.tooltip-wrapper .table-action {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* botón que envuelve el icono del tooltip */
.tooltip-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  cursor: pointer;
}

/* para que tenga el mismo hover que los otros */
.tooltip-trigger:hover .adjunto-icon {
  opacity: 1;
  transform: scale(1.08);
}

/* -----------------------------------------*/
/* Botón de adjunto deshabilitado */
.tooltip-trigger.adjunto-disabled,
.tooltip-trigger[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none; /* no se puede hacer clic */
}

/* --------------------------------- */
/* ==== MENU DESPLEGABLE DE LAS EVALUACIONES ==== */
/*  ================================= */
/* Botón de los tres puntitos con icono PNG */
.action-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.action-toggle-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Ítems del menú con icono + texto */
.action-item {
  display: flex;
  align-items: center;
  gap: 8px;              /* espacio entre icono y texto */
  text-decoration: none;
  color: #111827;
}

.action-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}


/* linea para separar la tabla de los resultados */
.linea {
  width: 100%;
  margin: 20px auto;
  border-top: 1px solid #cdcdcd;
}


/* ==== DAR COLORES A LOS RESULTADOS DE LOS ESTANDARES ==== */

/* Base opcional (si querés que se note parejo) */
.resultado-input {
  transition: all .15s ease;
}

/* 🔴 Bajo: < 60 */
.puntaje-bajo {
  border: 2px solid #e53935 !important;
  background: #ffebee !important;
  color: #b71c1c !important;
  font-weight: 700;
}

/* 🟡 Medio: 60 - 79.99 */
.puntaje-medio {
  border: 2px solid #f9a825 !important;
  background: #fff8e1 !important;
  color: #7a5a00 !important;
  font-weight: 700;
}

/* 🟢 Alto: >= 80 */
.puntaje-alto {
  border: 2px solid #43a047 !important;
  background: #e8f5e9 !important;
  color: #1b5e20 !important;
  font-weight: 700;
}

/*FIN DE DOLORES A ESTANDARES CSS*/




/* ============================= */
/* PARA LAS REVISIONES - CAMPOS SUPERIORES */
/* ============================= */

.requisitos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 14px auto 18px;
  max-width: 1200px;
}

/* En móvil: una sola columna */
@media (max-width: 900px) {
  .requisitos-grid {
    grid-template-columns: 1fr;
  }
}

/* Labels más bonitos SOLO aquí (sin afectar otros módulos) */
.requisitos-grid .field-label {
  text-transform: none;      /* adiós MAYÚSCULAS */
  letter-spacing: 0;         /* menos “corporativo raro” */
  font-size: 0.92rem;
  font-weight: 600;
  color: #374151;
}

/* Inputs readonly: se ven “bloqueados” pero elegantes */
.requisitos-grid .input[readonly] {
  background: #f6f4f3;       /* parecido a tu estética */
  border-color: #e5e7eb;
  color: #111827;
  cursor: default;           /* no “not-allowed” (eso se ve feo) */
}

/* Evitar el glow verde al hacer click */
.requisitos-grid .input[readonly]:focus {
  outline: none;
  box-shadow: none;
  border-color: #e5e7eb;
}

/* Si también querés readonly para textarea-evaluacion */
.textarea-evaluacion[readonly] {
  cursor: default;
  resize: none;
}

.textarea-evaluacion[readonly]:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--border-soft);
}

/* Solo lectura: look más pro */
.requisitos-grid .field-control {
  position: relative;
}

.requisitos-grid .input[readonly]{
  padding-right: 42px;  /* espacio para icono */
}

/* Iconito (candado suave) */
.requisitos-grid .field-control::after{
  content: "🔒";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .45;
  font-size: 14px;
  pointer-events: none;
}

.requisitos-header-card{
  background: rgba(255,255,255,.65);
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px 18px 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

/* ===============================
   CAMPOS SOLO LECTURA CON CANDADO
   (VERSIÓN FINAL – AMARILLO PRO)
   =============================== */

/* 1) INPUTS readonly (los que usan .readonly-input) */
.input.readonly-input{
  background-color: #f6f4f3 !important;
  border-color: #e5e7eb !important;
  color: #111827 !important;

  /* Candado amarillo */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%23FACC15' stroke='%23D97706' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px 16px !important;

  padding-right: 42px !important; /* espacio para el candado */
  cursor: default !important;     /* elegante, no disabled feo */
}

/* Evitar glow/borde raro al hacer focus */
.input.readonly-input:focus{
  outline: none !important;
  box-shadow: none !important;
  border-color: #e5e7eb !important;
}


/* 2) TEXTAREAS readonly (Hallazgos / Aspectos) */
.textarea-evaluacion[readonly]{
  background-color: #f6f4f3 !important;
  border-color: #e5e7eb !important;
  color: #111827 !important;

  /* Candado amarillo */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M9 11V7a3 3 0 0 1 6 0v4'/%3E%3C/svg%3E");

  background-repeat: no-repeat !important;
  background-position: right 12px top 12px !important;
  background-size: 16px 16px !important;

  padding-right: 42px !important;
  cursor: default !important;
  resize: none;
}

.textarea-evaluacion[readonly]:focus{
  outline: none !important;
  box-shadow: none !important;
  border-color: #e5e7eb !important;
}

/* =============================== */


/* ==== PARA PONERLE COLOR AL LAS EVALUACIONES DE LA TABLA PRINCIPAL ==== */
/* ===== Pill para "Evaluación global" en el listado ===== */
.score-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}

/* reutilizamos tus clases de semáforo pero adaptadas a la pill */
.score-pill.puntaje-bajo{
  border: 1px solid #e53935 !important;
  background: #ffebee !important;
  color: #b71c1c !important;
}

.score-pill.puntaje-medio{
  border: 1px solid #f9a825 !important;
  background: #fff8e1 !important;
  color: #7a5a00 !important;
}

.score-pill.puntaje-alto{
  border: 1px solid #43a047 !important;
  background: #e8f5e9 !important;
  color: #1b5e20 !important;
}


/* =========================
   RESUMEN + ACORDEÓN
========================= */

.resumen-evaluacion-header{
  margin: 18px 0 14px;
}

.resumen-titulo{
  text-align:center;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 800;
  color: #7a7a7a;
  margin: 16px 0 22px;
}

.resumen-card{
  background:#fff;
  border-radius: 14px;
  padding: 18px 18px 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  border: 1px solid #eee;
}

.resumen-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px 18px;
}

.resumen-field label{
  display:block;
  font-size: 13px;
  color:#666;
  margin: 0 0 6px;
}

.field-lock{
  position:relative;
}

.field-lock .input{
  width:100%;
  padding-right: 42px;
}

.lock-icon{
  position:absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity:.65;
}

/* ===== Accordion ===== */
.resumen-acordeon{
  margin: 16px 0 36px;
}

.acc-item{
  background:#fff;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  margin: 12px 0;
  overflow:hidden;
}

.acc-header{
  width:100%;
  background: transparent;
  border: none;
  padding: 14px 16px;
  cursor:pointer;
  text-align: left;
}

.acc-left{
  display:flex;
  align-items:center;
  gap: 12px;
}

.acc-title{
  font-weight: 800;
  letter-spacing: .2px;
  color:#2f2f2f;
  text-transform: uppercase;
  font-size: 13px;
  flex: 1;
}

.acc-icon{
  width: 22px;
  height: 22px;
  border: 2px solid #111;
  border-radius: 3px;
  position: relative;
  display:inline-block;
  flex: 0 0 22px;
}

.acc-icon::before,
.acc-icon::after{
  content:"";
  position:absolute;
  background:#111;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.acc-icon::before{ width: 12px; height: 2px; }
.acc-icon::after{ width: 2px; height: 12px; }

.acc-item.is-open .acc-icon::after{ display:none; } /* pasa de + a - */

.acc-panel{
  display:none;
  border-top: 1px solid #d6d6d6;
  background:#fff;
}

.acc-item.is-open .acc-panel{
  display:block;
}

.acc-panel-inner{
  padding: 14px 16px 18px;
}

/* ===== Pills (reusa tus clases puntaje-*) ===== */
.score-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 62px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

/* (Opcional) que se vean más suaves cuando son pills */
.score-pill.puntaje-bajo,
.score-pill.puntaje-medio,
.score-pill.puntaje-alto{
  border-width: 2px !important;
}

/* Tabla interna del resumen */
.resumen-table th{
  font-size: 13px;
}
.resumen-table td{
  vertical-align: top;
  font-size: 13px;
}
/*============================= */

/*************************************************/
/* Quebrar texto SOLO en la columna Descripción del Estándar */
/*************************************************/
.resumen-table td:first-child,
.resumen-table th:first-child {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  vertical-align: top;  
}
.resumen-table th:first-child {
  width: 45%;
}


/******************************************/
/* ==== PARA LOS BOTONES DE ÁREAS DE EVALUACIÓN ==== */
/******************************************/
.btn-area,
.btn-area:hover,
.btn-area:focus,
.btn-area:visited {
  text-decoration: none;
}

.btn-area {
  display: inline-block;
}
/*******************************************/



/****************************************/
/* === SEMÁFORO DE PUNTAJE === */
/****************************************/
.readonly-input.puntaje-bajo {
  background: #ffe5e5 !important;
  color: #991b1b;
  font-weight: 700;
}

.readonly-input.puntaje-medio {
  background: #fff7cc !important;
  color: #92400e;
  font-weight: 700;
}

.readonly-input.puntaje-alto {
  background: #dcfce7 !important;
  color: #166534;
  font-weight: 700;
}

/* Permitir que las cajas de puntaje respiren */
.evaluation-table td:nth-child(4) {
  white-space: normal !important;
}

.readonly-input {
  height: auto;
  padding: 6px 8px;
  min-height: 34px;
}

.readonly-input.puntaje-bajo,
.readonly-input.puntaje-medio,
.readonly-input.puntaje-alto {
  border-radius: 8px;
  text-align: center;  
}

/* ===== FIX PUNTAJE: centrado + no se corta ===== */
.evaluation-table td:nth-child(4){
  text-align: center !important;  
}

.evaluation-table td:nth-child(4) .input.readonly-input{
  display: inline-block;
  width: 80x;              /* suficiente para 100% */
  max-width: 92px;
  padding-right: 12px !important;  /* mata el padding del candado SOLO aquí */
  background-position: right 8px center !important;
  text-align: center !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



/* ===================================== */
/*  Resumen evaluación: Volver + Imprimir */
/* ===================================== */

.page-breadcrumb{
  margin: 18px 0 6px;
}

.back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  opacity: .85;
  transition: opacity .15s ease, transform .15s ease;
}

.back-link:hover{
  opacity: 1;
  transform: translateX(-2px);
}

.field-lock--actions .input{
  padding-right: 140px; /* espacio para botón + candado */
}

.btn-print-inline{
  position: absolute;
  right: 36px; /* deja espacio al candado */
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .55);
  background: rgba(255,255,255,.92);
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn-print-inline:hover{
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15,23,42,.12);
  transform: translateY(-50%) scale(1.02);
}

.btn-print-inline:active{
  box-shadow: 0 6px 14px rgba(15,23,42,.12);
  transform: translateY(-50%) scale(0.98);
}

.btn-print-icon{
  width: 16px;
  height: 16px;
  opacity: .85;
  text-decoration: none;
}

/* ===== Impresión ===== */
@media print {
  .topbar,
  .site-footer,
  .page-breadcrumb,
  .btn-print-inline{
    display: none !important;
    text-decoration: none;
  }

  body{
    background: #ffffff !important;
  }

  main.container{
    width: 100% !important;
    margin: 0 !important;
  }

  .hero{
    padding: 0.8rem 0 0.7rem !important;
  }

  .resumen-card,
  .acc-item{
    box-shadow: none !important;
  }

  /* Mostrar todo el contenido del acordeón al imprimir */
  .acc-panel{
    display: block !important;
  }

  /* Evitar cortes feos de cada bloque */
  .resumen-card,
  .acc-item,
  table{
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/****************************************/
/* variante de botón buscar y agregar nueva evaluacion */
/****************************************/
/* ===== Variante: 1 botón (sin columna extra, sin hueco) ===== */
.filters-grid--one-action{
  grid-template-columns:
    minmax(0, 2.3fr)
    repeat(2, minmax(0, 1.4fr))
    minmax(0, 160px); /* ancho justo para el botón */
}

.filters-grid--one-action .filters-actions{
  justify-content: flex-start; /* para que quede pegado al último input */
}

/* ===== Variante: 2 botones (sí necesita más espacio) ===== */
.filters-grid--two-actions{
  grid-template-columns:
    minmax(0, 2.3fr)
    repeat(2, minmax(0, 1.4fr))
    minmax(0, 340px); /* cabe Buscar + Nueva */
}

.filters-grid--two-actions .filters-actions{
  justify-content: flex-end;
}


/*******************************************/
/* Ícono verde cuando hay adjunto */
/*******************************************/
.icono-adjunto-ok {
  filter: hue-rotate(90deg) saturate(1.5);
}

/* Nombre del archivo */
.nombre-archivo {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #2e7d32;
  word-break: break-word;
}

/* Fila con adjunto */
.fila-con-adjunto {
  background-color: #f1fff4;
}


/******************************************************************/
/*Modal para mostrar los mensajes que hace falta adjuntar archivo */
/******************************************************************/

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.hidden {
  display: none;
}

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

.btn-modal-primary {
  background: #005FCC;            /* mismo azul del sistema */
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 999px;           /* igual que botones principales */
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease, box-shadow .12s ease;
}

.btn-modal-primary:hover {
  background: #004fb1;            /* hover consistente */
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 95, 204, .35);
}

.btn-modal-primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 95, 204, .25);
}



.modal-box {
  background: #ffffff;
  width: 420px;
  max-width: 90%;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-icon {
  font-size: 1.8rem;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #c62828;
}

.modal-body {
  margin-top: 10px;
}

.modal-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 14px;
}

.modal-list {
  background: #fbeaea;
  border-left: 4px solid #c62828;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #333;
}

/***********************************************/
/* Modal para ver la vista previa del documento*/
/***********************************************/
.modal-pdf {
  width: 90%;
  max-width: 900px;
  height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-body-pdf {
  flex: 1;
  overflow: hidden;
}

.modal-body-pdf iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}


/**********************************************/
/* Confirmar eliminar archivo adjunto**********/
/**********************************************/
.btn-modal-secondary {
  background: #e0e0e0;
  color: #333;
  border: none;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
}

.btn-modal-danger {
  background: #c62828;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
}


/******************************************************/
/* Centrar textos de los encabezados de los estandares*/
/******************************************************/

.center {
  text-align: center;
}

/* ================================= */
/*   LOGIN PARA EL SISTEMA           */
/* ================================= */

.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.login-card {
  width: 420px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.2rem 2.4rem;
  animation: fadeUp .35s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.login-logo {
  height: 78px;
  margin: 0 auto 0.6rem;
}

.login-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: #1f2937;
}

.login-header p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-btn {
  margin-top: 0.6rem;
  padding-block: 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.login-footer {
  margin-top: 1.2rem;
  text-align: center;
}

.login-footer a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

.login-page .input {
  text-transform: none;
}

.login-page .input::placeholder {
  text-transform: none;
  letter-spacing: normal;
}


/* ===============================
   FORMULARIO PERFIL DE USUARIO
=============================== */

.perfil-usuario-form .field-control {
  position: relative;
}

/* Campos readonly (con candado) */
.perfil-usuario-form .input[readonly] {
  background: #f6f4f3;
  border-color: #e5e7eb;
  color: #111827;
  cursor: default;
  padding-right: 42px;
}

/* Candado SOLO en readonly */
.perfil-usuario-form .input[readonly]::placeholder {
  color: #9ca3af;
}

.perfil-usuario-form .field-control .input[readonly] + .lock-icon {
  display: block;
}

/* Icono de candado */
.perfil-usuario-form .lock-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: .45;
  display: none;
  pointer-events: none;
}

/* Inputs editables (limpios, sin candado) */
.perfil-usuario-form .input:not([readonly]) {
  background: #ffffff;
}

/* ==============================
   PERFIL DE USUARIO (AISLADO)
   ============================== */

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

.perfil-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.perfil-title {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: #1f2937;
}

.perfil-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}

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

.perfil-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.perfil-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.perfil-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
  text-transform: uppercase;
  background: #ffffff;
}

.perfil-input::placeholder {
  color: #9ca3af;
}

.perfil-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,.25);
}

/* ===== SOLO LECTURA (CON CANDADO) ===== */
.perfil-locked {
  background: #f6f4f3;
  cursor: not-allowed;
  padding-right: 44px;

  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23FACC15' stroke='%23D97706' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); */
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%23FACC15' stroke='%23D97706' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); */
  
  
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M9 11V7a3 3 0 0 1 6 0v4'/%3E%3C/svg%3E");



  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}

.perfil-locked:focus {
  outline: none;
  box-shadow: none;
}

/* ===== ACCIONES ===== */
.perfil-actions {
  margin-top: 28px;
  text-align: center;
}

.perfil-btn {
  border: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.perfil-btn-primary {
  background: #4caf50;
  color: #ffffff;
}

.perfil-btn-primary:hover {
  background: #43a047;
}


/* ==============================
   MODAL CAMBIAR CONTRASEÑA (PURO)
   ============================== */

.pwd-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.pwd-modal.show {
  display: flex;
}

.pwd-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  border-radius: 14px;
}

.pwd-modal-title {
  text-align: center;
  margin-bottom: 18px;
}

.pwd-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.pwd-field input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

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

.pwd-btn-cancel {
  background: transparent;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.pwd-btn-ok {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

/* ==============================
   BOTÓN CAMBIAR CONTRASEÑA 
   ============================== */

.perfil-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  cursor: pointer;
  transition: all .2s ease;
  border: none;
}

/* Botón principal (Guardar cambios) */
.perfil-btn-primary {
  background: #63b35d;
  color: #ffffff;
}

.perfil-btn-primary:hover {
  background: #56a94f;
}

/* Botón secundario (Cambiar contraseña) */
.perfil-btn-secondary {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.perfil-btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

.perfil-btn-secondary .btn-icon {
  font-size: 1rem;
  opacity: 0.85;
}

/* ===== MOSTRAR / OCULTAR CONTRASEÑA ===== */

.pwd-input-wrapper {
  position: relative;
}

.pwd-input {
  width: 100%;
  padding: 10px 42px 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.pwd-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  opacity: 0.6;
}

.pwd-toggle:hover {
  opacity: 1;
}


/*******************************************************/
/*****************MENSAJE DE ALERTA DJANGO**************/
/*******************************************************/
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  min-width: 280px;
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(-10px);
  animation: slideIn 0.3s ease forwards, fadeOut 0.5s ease 4s forwards;
}

.toast-success {
  background: #1e9e5a;
}

.toast-error {
  background: #d93025;
}

.toast-warning {
  background: #f9a825;
  color: #2b2b2b;
}

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

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ============================= */
/* INDICADOR VISUAL DE GUARDADO */
/* ============================= */

.guardado{
  border-color:#22c55e !important;
  box-shadow:0 0 0 2px rgba(34,197,94,.25);
  transition: all .2s ease;
}


/* ============================= */
/* ALERTA CUANDO LA EVALUACIÓN YA NO ES BORRADOR */
/* ============================= */
.alerta-evaluacion{
background:#fff3cd;
border:1px solid #ffeeba;
color:#856404;
padding:12px 16px;
border-radius:8px;
margin-bottom:20px;
font-size:0.9rem;
text-align: center;
font-size: medium;
font-weight: bold;
}

/*Ver el bot[on adjunto*/
.tooltip-btn-view{
background:#22c55e;
margin-top:8px;
display:inline-block;
}

.login-error{
  background:#fce8e6;
  color:#b3261e;
  padding:10px;
  border-radius:6px;
  margin-bottom:15px;
  text-align:center;
}

/* ============================= */
/* BOTÓN ADJUNTAR EVIDENCIA */
/* ============================= */

.btn-adjuntar-evidencia{
  background: #16a34a;
  color: #ffffff;
  border: none;
}

.btn-adjuntar-evidencia:hover{
  background: #15803d;
}

.ultima-evaluacion-box{
    margin:20px auto 25px auto;
    padding:14px 20px;
    max-width:520px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    background:#eef3ff;
    border:1px solid #cdd9ff;
    border-radius:8px;

    font-size:15px;
    color:#1f2a5a;

    box-shadow:0 2px 6px rgba(0,0,0,0.05);
}

.ultima-evaluacion-icon{
    font-size:18px;
}

.ultima-evaluacion-texto strong{
    color:#1a237e;
}

/* =========================
   INFO TABLA (USUARIO FINAL)
========================= */

.tabla-info {
  background: #fafafa;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
  padding: 12px 16px;
  transition: all 0.2s ease;
  max-width: 1075px;
  margin: 0 auto 20px auto;
}

.tabla-info:hover {
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

.tabla-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
}

.tabla-info-icon {
  font-size: 16px;
}

.tabla-info-title {
  font-size: 0.95rem;
  text-align: center;
}

.tabla-info-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 6px 0;
  line-height: 1.5;

}

/* Leyenda de colores */
.tabla-leyenda {
  display: flex;
  gap: 16px;
  margin: 12px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.leyenda-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #444;
}

.tabla-nota {
  font-size: 0.78rem;
  color: #666;
  margin-top: 6px;
}