/* ── ACCREDITATIONS ───────────────────────────────────────────── */

#acreditaciones {
  position: relative;
  overflow: hidden;
  padding: 120px 72px;
  background:
    radial-gradient(circle at 14% 10%, rgba(232, 196, 104, 0.14), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(168, 133, 47, 0.16), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(232, 196, 104, 0.08), transparent 42%),
    linear-gradient(180deg, #08080a 0%, #111114 52%, #08080a 100%);
  color: var(--blanco);
}

/* Contención interna */
#acreditaciones > .container,
#acreditaciones > .section-inner,
#acreditaciones > .reveal,
#acreditaciones > .accred-grid,
#acreditaciones > .accred-row-bottom {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* Cabecera */
#acreditaciones .reveal {
  text-align: left;
  margin-bottom: 58px;
}

#acreditaciones .section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
   color: #ffffff;
  margin-bottom: 14px;
}

#acreditaciones .section-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 6.4rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.06em;
   color: #ffffff;
  margin: 0 0 18px;
}

#acreditaciones .section-title em {
  color: var(--oro);
  font-style: italic;
}

#acreditaciones .section-lead {
  max-width: 920px;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.32rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.66);
  margin: 0;
}

/* Grid */
#acreditaciones .accred-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 0;
}

/* Tarjeta base */
#acreditaciones .accred-card {
  position: relative;
  min-height: 255px;
  padding: 28px 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(21, 21, 26, 0.94), rgba(9, 9, 11, 0.98));
  border: 1px solid rgba(245, 241, 232, 0.12);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  gap: 10px;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

/* brillo dorado interno */
#acreditaciones .accred-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 196, 104, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(232, 196, 104, 0.07), transparent 58%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* línea dorada inferior */
#acreditaciones .accred-card::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--oro-oscuro), var(--oro), var(--oro-claro));
  opacity: 0.78;
  border-radius: 0 0 22px 22px;
}

#acreditaciones .accred-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 196, 104, 0.46);
  box-shadow:
    0 30px 86px rgba(0, 0, 0, 0.52),
    0 0 44px rgba(232, 196, 104, 0.14),
    inset 0 0 0 1px rgba(232, 196, 104, 0.06);
}

#acreditaciones .accred-card:hover::before {
  opacity: 1;
}

/* Imagen real */
#acreditaciones .accred-card-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 230px;
  height: 94px;
  object-fit: contain;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(245, 241, 232, 0.07), rgba(245, 241, 232, 0.035));
  border: 1px solid rgba(245, 241, 232, 0.10);
  padding: 10px;
  display: block;
  flex-shrink: 0;
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

#acreditaciones .accred-card:hover .accred-card-img {
  transform: scale(1.04);
  background: rgba(232, 196, 104, 0.08);
  border-color: rgba(232, 196, 104, 0.24);
  box-shadow: 0 0 28px rgba(232, 196, 104, 0.08);
}

/* Placeholder */
#acreditaciones .accred-card-img-ph {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 230px;
  height: 94px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(232, 196, 104, 0.11), rgba(232, 196, 104, 0.045));
  border: 1px solid rgba(232, 196, 104, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--oro);
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  flex-shrink: 0;
     color: #ffffff;

}

/* Texto tarjeta */
#acreditaciones .accred-card-iso {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--blanco);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-top: 8px;
     color: #ffffff;

}

#acreditaciones .accred-card-iso--big {
  font-size: 2rem;
  color: var(--oro);
}

#acreditaciones .accred-card-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(245, 241, 232, 0.42);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
     color: #ffffff;

}

#acreditaciones .accred-card-extra-desc {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(245, 241, 232, 0.58);
  line-height: 1.55;
  
}

/* Badge de estado */
#acreditaciones .accred-entity {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
   color: #ffffff;
  padding: 7px 13px;
  background: rgba(232, 196, 104, 0.10);
  border: 1px solid rgba(232, 196, 104, 0.28);
  border-radius: 100px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
}

#acreditaciones .accred-entity--avail {
  color: rgba(245, 241, 232, 0.48);
  background: rgba(245, 241, 232, 0.05);
  border-color: rgba(245, 241, 232, 0.12);
}

/* Tarjeta especial "+12" */
#acreditaciones .accred-card--more {
  border-color: rgba(232, 196, 104, 0.30);
  background:
    radial-gradient(circle at top, rgba(232, 196, 104, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(32, 27, 16, 0.94), rgba(10, 10, 12, 0.98));
}

#acreditaciones .accred-card--more .accred-card-img-ph {
  background: rgba(232, 196, 104, 0.12);
  border-color: rgba(232, 196, 104, 0.34);
}

/* Lista expandible */
#acreditaciones .accred-more-list {
  display: none;
  grid-column: 1 / -1;
}

#acreditaciones .accred-more-list.open {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 4px;
  animation: accredFadeUp 0.35s ease;
}

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

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

/* ── Fila de reconocimiento: 4 tarjetas iguales ──
   Reemplaza al .accred-row-bottom / .iqnet-badge original, que usaba
   `justify-content: space-between` con un solo hijo — al no tener nada
   con quien "repartir" el espacio, la tarjeta quedaba pegada a la
   izquierda y dejaba todo el resto de la fila vacío. */
#acreditaciones .accred-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid rgba(245, 241, 232, 0.10);
}

#acreditaciones .accred-trust-card {
  position: relative;
  min-height: 190px;
  padding: 26px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(21, 21, 26, 0.86), rgba(10, 10, 12, 0.94));
  border: 1px solid rgba(245, 241, 232, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#acreditaciones .accred-trust-card::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--oro-oscuro), var(--oro), var(--oro-claro));
  opacity: 0.7;
  border-radius: 0 0 18px 18px;
}

#acreditaciones .accred-trust-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 196, 104, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), 0 0 30px rgba(232, 196, 104, 0.1);
}

#acreditaciones .accred-trust-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

#acreditaciones .accred-trust-logo span {
  color: var(--oro);
  font-style: italic;
}

#acreditaciones .accred-trust-desc {
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: rgba(245, 241, 232, 0.56);
  line-height: 1.55;
}

/* ── MODAL ───────────────────────────────────────────── */

#accred-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: accredFadeBg 0.22s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
       color: #ffffff;

}

#accred-modal-overlay.open {
  display: flex;
}

@keyframes accredFadeBg {
  from { opacity: 0; }
  to { opacity: 1; }
}

#accred-modal {
  background:
    radial-gradient(circle at top left, rgba(232, 196, 104, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(21, 21, 26, 0.98), rgba(8, 8, 10, 0.98));
  border: 1px solid rgba(232, 196, 104, 0.30);
  border-radius: 24px;
  padding: 38px;
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: accredPopIn 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow:
    0 0 42px rgba(232, 196, 104, 0.13),
    0 28px 74px rgba(0, 0, 0, 0.64);
  overflow: hidden;
}

#accred-modal::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--oro-oscuro), var(--oro), var(--oro-claro));
}

@keyframes accredPopIn {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(12px);
  }

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

.accred-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(245, 241, 232, 0.04);
  border: 1px solid rgba(245, 241, 232, 0.10);
  border-radius: 999px;
  cursor: pointer;
  color: rgba(245, 241, 232, 0.54);
  font-size: 1.1rem;
  line-height: 1;
  width: 34px;
  height: 34px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.accred-modal-close:hover {
  color: var(--oro);
  border-color: rgba(232, 196, 104, 0.32);
  background: rgba(232, 196, 104, 0.10);
}

.accred-modal-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.accred-modal-img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  background: rgba(245, 241, 232, 0.06);
  border: 1px solid rgba(245, 241, 232, 0.10);
  border-radius: 18px;
  padding: 10px;
  flex-shrink: 0;
}

.accred-modal-img-ph {
  width: 108px;
  height: 108px;
  border-radius: 18px;
  background: rgba(232, 196, 104, 0.10);
  border: 1px solid rgba(232, 196, 104, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--oro);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.4;
}

.accred-modal-iso {
  font-size: 1.7rem;
  font-weight: 700;
   color: #ffffff;
  font-family: var(--font-display);
  letter-spacing: -0.035em;
}

.accred-modal-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blanco);
  margin-top: 4px;
  line-height: 1.4;
}

.accred-modal-code {
  font-size: 0.7rem;
  color: rgba(245, 241, 232, 0.36);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-top: 6px;
}

.accred-modal-divider {
  height: 1px;
  background: rgba(245, 241, 232, 0.10);
  margin: 0 0 24px;
}

.accred-modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
     color: #ffffff;

}

.accred-modal-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 6px;
}

.accred-modal-value {
  font-size: 0.9rem;
  color: rgba(245, 241, 232, 0.72);
  line-height: 1.65;
}

.accred-modal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
}

.accred-modal-status--acred {
  background: rgba(232, 196, 104, 0.10);
  border: 1px solid rgba(232, 196, 104, 0.30);
  color: var(--oro);
}

.accred-modal-status--avail {
  background: rgba(245, 241, 232, 0.05);
  border: 1px solid rgba(245, 241, 232, 0.14);
  color: rgba(245, 241, 232, 0.48);
}

/* Responsive */
@media (max-width: 1100px) {
  #acreditaciones .accred-grid,
  #acreditaciones .accred-more-list.open,
  #acreditaciones .accred-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #acreditaciones {
    padding: 96px 28px;
  }

  #acreditaciones .accred-grid,
  #acreditaciones .accred-more-list.open,
  #acreditaciones .accred-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #acreditaciones {
    padding: 82px 20px;
  }

  #acreditaciones .section-title {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  #acreditaciones .section-lead {
    font-size: 1rem;
  }

  #acreditaciones .accred-grid,
  #acreditaciones .accred-more-list.open,
  #acreditaciones .accred-trust-grid {
    grid-template-columns: 1fr;
  }

  .accred-modal-head {
    flex-direction: column;
    align-items: flex-start;
  }

  #accred-modal {
    padding: 32px 24px;
  }
}