/* Paleta luminosa de los 7 criterios SEAES (acentos + versiones translúcidas para blur) */
.tema-amarillo      { --c1: #e69500; --c2: #facc15; --c1-glass: rgba(230, 149, 0, 0.84); --c2-glass: rgba(250, 204, 21, 0.80); --glow: rgba(230, 149, 0, 0.30); }
.tema-naranja       { --c1: #ea580c; --c2: #fb923c; --c1-glass: rgba(234, 88, 12, 0.84); --c2-glass: rgba(251, 146, 60, 0.80); --glow: rgba(234, 88, 12, 0.30); }
.tema-magenta       { --c1: #db2777; --c2: #f472b6; --c1-glass: rgba(219, 39, 119, 0.84); --c2-glass: rgba(244, 114, 182, 0.80); --glow: rgba(219, 39, 119, 0.30); }
.tema-verde         { --c1: #2b9a22; --c2: #4ade80; --c1-glass: rgba(43, 154, 34, 0.84); --c2-glass: rgba(74, 222, 128, 0.80); --glow: rgba(43, 154, 34, 0.30); }
.tema-azul          { --c1: #1d6ce0; --c2: #60a5fa; --c1-glass: rgba(29, 108, 224, 0.84); --c2-glass: rgba(96, 165, 250, 0.80); --glow: rgba(29, 108, 224, 0.30); }
.tema-morado        { --c1: #7c3aed; --c2: #a78bfa; --c1-glass: rgba(124, 58, 237, 0.84); --c2-glass: rgba(167, 139, 250, 0.80); --glow: rgba(124, 58, 237, 0.30); }
.tema-turquesa      { --c1: #0d9488; --c2: #2dd4bf; --c1-glass: rgba(13, 148, 136, 0.84); --c2-glass: rgba(45, 212, 191, 0.80); --glow: rgba(13, 148, 136, 0.30); }
.tema-institucional { --c1: #0e7490; --c2: #2dd4bf; --c1-glass: rgba(14, 116, 144, 0.84); --c2-glass: rgba(45, 212, 191, 0.80); --glow: rgba(14, 116, 144, 0.30); }

/* ==================== VISTA INTERIOR: ACORDEÓN 100VH COMPLETO SIN SCROLL ==================== */
.seccion-criterios-interior {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.deck-acordeon {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  height: 100%;
}

.tarjeta-criterio {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px 10px;
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(18px) saturate(185%);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  border: 1.5px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px rgba(24, 30, 34, 0.11);
  cursor: pointer;
  outline: none;
  transition:
    flex-grow 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.34s ease,
    border-color 0.28s ease,
    box-shadow 0.34s ease;
}

.tarjeta-criterio::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}

.tarjeta-criterio:focus-visible {
  box-shadow: 0 0 0 2.5px var(--c1), 0 18px 34px var(--glow);
}

.tarjeta-criterio.expandida {
  flex-grow: 5.2;
  padding: 36px 40px;
  background: linear-gradient(145deg, var(--c1-glass), var(--c2-glass));
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 48px var(--glow);
}

.criterio-top-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.tarjeta-criterio.expandida .criterio-top-glass {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.num-criterio {
  font-family: var(--fuente-display);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--c1);
}

.orbe-icono {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #ffffff;
  transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1), height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.tarjeta-criterio.expandida .orbe-icono {
  width: 94px;
  height: 94px;
  padding: 20px;
}

.orbe-icono svg {
  width: 100%;
  height: 100%;
  display: block;
}

.criterio-centro {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: 18px;
  overflow: hidden;
}

.etiqueta-comprimida {
  position: absolute;
  inset: 0;
  padding: 14px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

/* Textos verticales grandes y legibles aprovechando todo el 100vh */
.etiqueta-comprimida span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--fuente-display);
  font-size: clamp(1.32rem, 1.7vw, 1.74rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #161a1d;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.15;
  max-height: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tarjeta-criterio.expandida .etiqueta-comprimida {
  opacity: 0;
}

.contenido-expandido {
  position: absolute;
  inset: 10px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 16px;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.24s ease;
}

.tarjeta-criterio.expandida .contenido-expandido {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  transition: opacity 0.32s ease 0.14s, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.contenido-expandido h3 {
  margin: 0;
  font-family: var(--fuente-display);
  font-size: clamp(2.1rem, 3vw, 2.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(10, 16, 22, 0.28);
  line-height: 1.1;
}

.linea-luminosa {
  display: block;
  width: 86px;
  height: 5px;
  border-radius: 3px;
  background: #ffffff;
  margin: 18px 0 20px;
}

.contenido-expandido p {
  margin: 0;
  font-size: clamp(1.3rem, 1.65vw, 1.62rem);
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(10, 16, 22, 0.24);
  line-height: 1.5;
  max-width: 42ch;
}

.criterio-pie-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  opacity: 0.35;
  pointer-events: none;
}

.aviso-config {
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--aviso-bg);
  color: var(--aviso);
  font-size: 1rem;
}

/* Responsivo */
@media (max-width: 1100px) {
  .deck-acordeon { flex-direction: column; height: auto; gap: 12px; }
  .tarjeta-criterio { flex: none; height: 90px; flex-direction: row; align-items: center; padding: 14px 18px; }
  .tarjeta-criterio.expandida { flex-direction: column; align-items: stretch; height: auto; min-height: 290px; padding: 26px; }
  .criterio-top-glass { flex-direction: row; gap: 14px; }
  .orbe-icono { width: 52px; height: 52px; padding: 11px; }
  .criterio-centro { margin-top: 0; margin-left: 14px; }
  .tarjeta-criterio.expandida .criterio-centro { margin-left: 0; margin-top: 14px; }
  .etiqueta-comprimida { position: static; justify-content: flex-start; padding: 0; }
  .etiqueta-comprimida span { writing-mode: horizontal-tb; transform: none; text-align: left; font-size: 1.32rem; }
  .tarjeta-criterio.expandida .etiqueta-comprimida { display: none; }
  .contenido-expandido { position: static; display: none; padding-bottom: 0; }
  .tarjeta-criterio.expandida .contenido-expandido { display: flex; }
}
