.badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  justify-content: flex-start;
  align-items: stretch;
}

.badge-card {
  background: #ffffff;
  border: 1px solid #dedad4;
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
  min-width: 130px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  flex: 0 0 auto;
  cursor: pointer;
}

.badge-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #dc2626; /* Cambiado a rojo FraudeDigital */
}

.badge-img {
  max-width: 110px;
  max-height: 75px;
  object-fit: contain;
  margin-bottom: 12px;
  pointer-events: none;
}

.badge-name {
  font-size: 10px;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  pointer-events: none;
}

/* ── MODAL LIGHTBOX ── */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.modal-caption {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-family: 'Liberation Sans', Arial, sans-serif;
  font-size: 14px;
  background: rgba(0,0,0,0.7);
  padding: 8px 16px;
  width: fit-content;
  margin: 0 auto;
  border-radius: 4px;
  pointer-events: none;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10000;
}

.close-modal:hover { color: #dc2626; } /* Cambiado a rojo FraudeDigital */

/* ── HERO (sobre-mi) ── */
.hero-block {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.hero-foto { flex-shrink: 0; }
.hero-foto img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  display: block;
  border: 3px solid #dc2626; /* Cambiado a rojo FraudeDigital */
}
.hero-texto { flex: 1; }
.hero-exp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff5f5; /* Fondo rojo sutil */
  border: 1px solid #fee2e2;
  padding: 8px 18px;
  border-radius: 4px;
  margin-top: 20px;
}
.hero-exp-num {
  font-size: 26px;
  font-weight: 700;
  color: #dc2626; /* Cambiado a rojo FraudeDigital */
  line-height: 1;
}
.hero-exp-label {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
}

/* AREAS */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.area-card {
  background: #faf9f7;
  border: 1px solid #dedad4;
  padding: 18px 18px 16px;
  border-top: 3px solid #dc2626; /* Cambiado a rojo FraudeDigital */
}
.area-icon  { font-size: 20px; margin-bottom: 8px; }
.area-title { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 5px; }
.area-desc  { font-size: 13px; color: #666; line-height: 1.6; }

/* RESPONSABILIDADES */
.resp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.resp-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  padding: 10px 14px;
  background: #faf9f7;
  border: 1px solid #eae7e2;
}
.resp-dot {
  width: 6px;
  height: 6px;
  background: #dc2626; /* Cambiado a rojo FraudeDigital */
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

/* CERTIFICACIONES TEXTO */
.cert-grupos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 20px;
}
.cert-grupo-title {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #dc2626; /* Cambiado a rojo FraudeDigital */
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eae7e2;
}
.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 0;
}
.cert-list li {
  font-size: 13px;
  color: #444;
  padding-left: 14px;
  position: relative;
  line-height: 1.45;
}
.cert-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: #dc2626; /* Cambiado a rojo FraudeDigital */
  border-radius: 50%;
}
.cert-list li strong { color: #111; font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 620px) {
  .badges-grid { justify-content: center; gap: 14px; }
  .badge-card  { min-width: 110px; padding: 14px 10px; }
  .badge-img   { max-width: 85px; max-height: 60px; }
  .badge-name  { font-size: 9px; }
  .modal-caption { font-size: 11px; bottom: 20px; }
  .close-modal { top: 15px; right: 20px; font-size: 32px; }
  .hero-block  { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .hero-texto  { text-align: center; }
  .hero-exp    { justify-content: center; }
  .areas-grid  { grid-template-columns: 1fr; }
  .resp-grid   { grid-template-columns: 1fr; }
  .cert-grupos { grid-template-columns: 1fr; gap: 20px; }
}

.badge-verify {
    font-size: 11px;
    font-family: var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-top: 8px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.badge-card:hover .badge-verify {
    opacity: 1;
}