/* ── INTEGRITY-AI Deliverables — Public Styles ───────────────────────── */

/* ── Sección principal ───────────────────────────────────────── */
.ie-section {
  padding: 5rem 2rem;
  background: #ffffff;
  font-family: 'LinearGrotest', 'Helvetica Neue', Arial, sans-serif;
}
.ie-container { max-width: 1080px; margin: 0 auto; }

/* ── Encabezado ──────────────────────────────────────────────── */
.ie-label {
  display: inline-flex; align-items: center; gap: .7rem;
  margin-bottom: 1rem;
}
.ie-label::before {
  content: ''; width: 24px; height: 2px;
  background: #D49500; flex-shrink: 0;
}
.ie-label span {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #D49500;
}
.ie-h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 700; line-height: 1.15;
  color: #0B3D55; margin-bottom: 1rem;
}
.ie-intro {
  font-size: .93rem; color: #4D4D4D;
  line-height: 1.75; margin-bottom: .8rem;
  max-width: 780px;
}
.ie-intro strong { color: #0B3D55; font-weight: 700; }

/* ── Licencia CC ─────────────────────────────────────────────── */
.ie-license-block {
  display: flex; align-items: flex-start; gap: 1.2rem;
  background: #F7F4EF;
  border: 1.5px solid rgba(11,61,85,.1);
  border-left: 4px solid #D49500;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 3.5rem;
  max-width: 680px;
}
@media(max-width:480px){ .ie-license-block{ flex-direction:column; gap:.8rem; } }
.ie-license-badge img { display:block; height:auto; width:120px; max-width:100%; border-radius:4px; object-fit:contain; }
.ie-license-code { font-size:.7rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#D49500; margin-bottom:.25rem; }
.ie-license-name { font-size:.9rem; font-weight:700; color:#0B3D55; line-height:1.3; margin-bottom:.2rem; }
.ie-license-desc { font-size:.78rem; color:#4D4D4D; line-height:1.5; }

/* ── Separador de sección ────────────────────────────────────── */
.ie-divider { border: none; border-top: 1px solid rgba(11,61,85,.1); margin: 0 0 2.5rem; }

/* ── Language group ──────────────────────────────────────────── */
.ie-lang-group { margin-bottom: 3rem; }
.ie-lang-group:last-child { margin-bottom: 0; }

.ie-section-title {
  font-size: 1.15rem; font-weight: 700;
  color: #0B3D55; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}
.ie-section-title::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(11,61,85,.12);
}
.ie-lang-flag {
  display: inline-flex; align-items: center; gap: .5rem;
}
.ie-lang-flag::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  background: #D49500;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Grid de tarjetas ────────────────────────────────────────── */
.ie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.ie-grid.iai-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ie-grid.iai-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ie-grid.iai-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 600px) {
  .ie-grid { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
  .ie-grid.iai-cols-3,
  .ie-grid.iai-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .ie-grid { grid-template-columns: 1fr; }
}

/* ── Flip card ───────────────────────────────────────────────── */
.ie-card-wrap {
  perspective: 900px;
  height: 240px;
  cursor: pointer;
}
.ie-card {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  border-radius: 12px;
}
.ie-card-wrap:hover .ie-card,
.ie-card-wrap.ie-flipped .ie-card {
  transform: rotateY(180deg);
}

/* Caras */
.ie-face {
  position: absolute; inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* ── Frente ── */
.ie-front {
  background: #ffffff;
  border: 1.5px solid rgba(11,61,85,.12);
  display: flex; flex-direction: column;
  padding: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.ie-card-wrap:hover .ie-front {
  border-color: #6BAAAF;
  box-shadow: 0 6px 24px rgba(11,61,85,.1);
}

.ie-front-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: .75rem;
}
.ie-pdf-icon {
  width: 36px; height: 36px;
  background: #fff0f0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ie-pdf-icon svg { width: 20px; height: 20px; }

.ie-code {
  font-size: .78rem; font-weight: 700;
  color: #0B3D55; letter-spacing: .04em;
  background: #E3DAC9;
  border-radius: 6px; padding: .2rem .5rem;
}

.ie-front-body {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
}
.ie-card-title {
  font-size: .82rem; font-weight: 500;
  color: #4D4D4D; line-height: 1.55;
  text-align: center;
  margin: 0;
}

.ie-front-bottom {
  display: flex; justify-content: flex-end; margin-top: .5rem;
}
.ie-lang {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #0B3D55;
  background: #F7F4EF;
  border-radius: 5px; padding: .2rem .5rem;
}

/* ── Dorso ── */
.ie-back {
  background: #0B3D55;
  transform: rotateY(180deg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .75rem; padding: 1.25rem;
  text-align: center;
}
.ie-back-code {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #D49500;
}
.ie-back-title {
  font-size: .82rem; color: rgba(255,255,255,.8);
  line-height: 1.5; margin: 0;
}
.ie-download-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #D49500;
  color: #ffffff;
  font-family: inherit;
  font-size: .78rem; font-weight: 700;
  text-decoration: none;
  border: none; cursor: pointer;
  border-radius: 8px; padding: .55rem 1.1rem;
  transition: background .2s, transform .2s;
  margin-top: .2rem;
}
.ie-download-btn:hover {
  background: #BC5C05;
  transform: translateY(-2px);
  color: #ffffff;
}
.ie-download-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Loading state */
.ie-download-btn.iai-loading {
  opacity: .7;
  cursor: wait;
  pointer-events: none;
}

.ie-coming-soon {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  font-style: italic;
  border: 1px dashed rgba(255,255,255,.25);
  padding: .4rem .9rem;
  border-radius: 20px;
}

.ie-dl-count {
  font-size: .68rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .06em;
}

/* ── Estado vacío ────────────────────────────────────────────── */
.ie-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  background: #F7F4EF;
  border: 1.5px dashed rgba(11,61,85,.2);
  border-radius: 12px;
  padding: 3.5rem 2rem;
  text-align: center;
}
.ie-empty-icon {
  width: 52px; height: 52px;
  background: #E3DAC9; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ie-empty-icon svg { width: 24px; height: 24px; }
.ie-empty-title { font-size: 1rem; font-weight: 700; color: #0B3D55; margin: 0; }
.ie-empty-sub { font-size: .85rem; color: #4D4D4D; margin: 0; }

/* ── Reveal animations ───────────────────────────────────────── */
.ie-reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
