/* ============================================
   HH-UI — Estilos compartidos de componentes
   institucionales (cards, listas, pdf viewer)
   ============================================ */

:root {
  --hh-primary:    #2c3e50;
  --hh-mid:        #34495e;
  --hh-light:      #5dade2;
  --hh-bg:         #f4f7f9;
  --hh-bg2:        #ebf2f6;
  --hh-text-muted: #546e7a;
  --hh-border:     #cfd8dc;
}

/* ---- CARDS ---- */
.hh-card {
  background: white;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  border-top: 5px solid var(--hh-primary);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}
.hh-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 45px rgba(44,62,80,0.15);
}
.hh-accent {
  width: 55px;
  height: 6px;
  background: var(--hh-primary);
  border-radius: 10px;
  margin-bottom: 25px;
}

/* ---- LISTAS ---- */
.hh-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.hh-list-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #ffffff;
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.04);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-left: 5px solid var(--hh-border);
}
.hh-list-item:hover {
  transform: translateX(8px);
  background: var(--hh-bg);
  border-left-color: var(--hh-primary);
  box-shadow: 0 8px 25px rgba(44,62,80,0.08);
}
.hh-list-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--hh-primary), var(--hh-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(44,62,80,0.2);
}
.hh-list-icon .material-icons { font-size: 18px; }
.hh-list-text {
  font-size: 15.5px;
  color: #4a4040;
  line-height: 1.7;
}

/* ---- HISTORIAL / ARCHIVO ---- */
.archive-list {
  list-style: none;
  padding: 0;
}
.archive-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  margin-bottom: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
  border-left: 4px solid #dee2e6;
}
.archive-item:hover {
  background: #e9ecef;
  border-left-color: var(--hh-primary);
  transform: translateX(5px);
  color: var(--hh-primary);
}
.archive-item .material-icons {
  margin-right: 12px;
  color: var(--hh-text-muted);
}

/* ---- GRID 3 COLUMNAS ---- */
.cta-grid-3 {
  display: flex;
  flex-wrap: wrap !important;
  gap: 15px;
  justify-content: center;
}
.cta-grid-3 .cta-col-item {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
  max-width: calc(33.333% - 20px);
  margin-bottom: 10px;
}
@media (max-width: 1200px) {
  .cta-grid-3 .cta-col-item {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}
@media (max-width: 768px) {
  .cta-grid-3 .cta-col-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ---- PDF VIEWER ---- */
#pdf-viewer-section {
  display: none;
  margin-top: 40px;
  animation: fadeInDown 0.5s ease;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pdf-viewer-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 45px rgba(0,0,0,0.1);
  border-top: 6px solid var(--hh-primary);
}
.pdf-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.pdf-viewer-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hh-primary);
}

/* ---- MODO CONTRASTE ---- */
body.contraste .hh-card,
body.contraste .hh-list-item {
  background: #2a2a2a;
  border-color: #5dade2;
  color: white;
}
