
/* ============================================================================
   BLOQUES EXTENDIDOS · Parte 2 (27 al 40)
   version: 1.0
   Complementa a ie-blocks.css
   Compatible con estilos1.css y estilos2.css
   ============================================================================ */

/* ============================================================
   27. STATS / CONTADORES ANIMADOS
   ============================================================ */
.ie-stats-counters {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .ie-stats-counters { grid-template-columns: repeat(4, 1fr); }
}
.ie-stat-counter {
  text-align: center;
  padding: 28px 16px;
  background: var(--ie-surface);
  border: 1px solid var(--ie-line);
  border-radius: var(--ie-radius-15);
  transition: transform .3s var(--ie-ease), box-shadow .3s var(--ie-ease);
}
.ie-stat-counter:hover { transform: translateY(-4px); box-shadow: var(--ie-shadow-md); }
.ie-stat-counter b {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ie-accent);
  line-height: 1;
}
.ie-stat-counter span {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ie-muted);
  margin-top: 8px;
}

/* ============================================================
   28. PROGRESS BARS
   ============================================================ */
.ie-progress { display: flex; flex-direction: column; gap: 8px; }
.ie-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ie-ink-soft);
}
.ie-progress-header b { color: var(--ie-accent); font-weight: 800; }
.ie-progress-track {
  height: 10px;
  background: var(--ie-line);
  border-radius: 999px;
  overflow: hidden;
}
.ie-progress-fill {
  height: 100%;
  width: var(--value, 0%);
  background: linear-gradient(90deg, var(--ie-accent), var(--ie-accent-dark));
  border-radius: 999px;
  transition: width 1.2s var(--ie-ease);
}

/* ============================================================
   29. TIMELINE
   ============================================================ */
.ie-timeline {
  position: relative;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  list-style: none;
}
.ie-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--ie-line);
}
.ie-timeline-item { position: relative; }
.ie-timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ie-surface);
  border: 2px solid var(--ie-accent);
  display: grid;
  place-items: center;
}
.ie-timeline-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ie-accent);
}
.ie-timeline-date {
  display: inline-block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ie-accent);
  margin-bottom: 4px;
}
.ie-timeline-content h4 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.ie-timeline-content p { font-size: .88rem; color: var(--ie-muted); line-height: 1.55; }

/* ============================================================
   30. TEAM CARDS
   ============================================================ */
.ie-team-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ie-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .ie-team-grid { grid-template-columns: repeat(4, 1fr); } }

.ie-team-card {
  background: var(--ie-surface);
  border: 1px solid var(--ie-line);
  border-radius: var(--ie-radius-15);
  padding: 24px;
  text-align: center;
  transition: transform .3s var(--ie-ease), box-shadow .3s var(--ie-ease);
}
.ie-team-card:hover { transform: translateY(-4px); box-shadow: var(--ie-shadow-md); }
.ie-team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: var(--ie-accent-soft);
}
.ie-team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ie-team-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.ie-team-role { font-size: .82rem; color: var(--ie-muted); font-weight: 600; margin-bottom: 14px; }
.ie-team-socials { display: flex; justify-content: center; gap: 8px; }
.ie-team-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ie-accent-soft);
  color: var(--ie-accent);
  display: grid;
  place-items: center;
  transition: background .2s, color .2s;
}
.ie-team-socials a:hover { background: var(--ie-accent); color: #fff; }

/* ============================================================
   31. BLOG CARDS
   ============================================================ */
.ie-blog-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ie-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ie-blog-grid { grid-template-columns: repeat(3, 1fr); } }

.ie-blog-card {
  background: var(--ie-surface);
  border: 1px solid var(--ie-line);
  border-radius: var(--ie-radius-15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ie-ease), box-shadow .3s var(--ie-ease);
}
.ie-blog-card:hover { transform: translateY(-4px); box-shadow: var(--ie-shadow-md); }
.ie-blog-media { aspect-ratio: 16/10; overflow: hidden; }
.ie-blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ie-ease); }
.ie-blog-card:hover .ie-blog-media img { transform: scale(1.06); }
.ie-blog-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ie-blog-cat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ie-accent);
  background: var(--ie-accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.ie-blog-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ie-blog-excerpt {
  font-size: .88rem;
  color: var(--ie-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ie-blog-more {
  margin-top: auto;
  font-weight: 700;
  font-size: .85rem;
  color: var(--ie-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   32. BREADCRUMBS
   ============================================================ */
.ie-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .85rem;
}
.ie-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ie-muted);
}
.ie-breadcrumbs li:not(:last-child)::after {
  content: "›";
  color: var(--ie-muted);
  opacity: .5;
}
.ie-breadcrumbs a { color: var(--ie-ink-soft); font-weight: 600; transition: color .2s; }
.ie-breadcrumbs a:hover { color: var(--ie-accent); }
.ie-breadcrumbs [aria-current="page"] { color: var(--ie-ink); font-weight: 700; }

/* ============================================================
   33. PAGINATION
   ============================================================ */
.ie-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}
.ie-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--ie-line);
  background: var(--ie-surface);
  font-weight: 700;
  font-size: .88rem;
  color: var(--ie-ink-soft);
  transition: background .2s, color .2s, border-color .2s;
}
.ie-page-btn:hover { background: var(--ie-accent-soft); color: var(--ie-accent); border-color: var(--ie-accent); }
.ie-page-btn[aria-current="page"] { background: var(--ie-accent); color: #fff; border-color: var(--ie-accent); }
.ie-page-ellipsis { color: var(--ie-muted); padding: 0 6px; }

/* ============================================================
   34. MODAL / LIGHTBOX (usando <dialog> nativo)
   ============================================================ */
.ie-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(560px, 92vw);
  max-height: 90vh;
}
.ie-modal::backdrop {
  background: rgba(11,18,32,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ie-modal-content {
  background: var(--ie-surface);
  border-radius: var(--ie-radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: var(--ie-shadow-lg);
}
.ie-modal-content h3 { font-size: 1.3rem; margin-bottom: 12px; }
.ie-modal-content p { color: var(--ie-ink-soft); line-height: 1.6; margin-bottom: 20px; }
.ie-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--ie-paper);
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* ============================================================
   35. SIDEBAR FILTERS
   ============================================================ */
.ie-sidebar-filters {
  background: var(--ie-surface);
  border: 1px solid var(--ie-line);
  border-radius: var(--ie-radius-15);
  padding: 20px;
}
.ie-filter-group { border-bottom: 1px solid var(--ie-line); padding: 12px 0; }
.ie-filter-group:first-child { padding-top: 0; }
.ie-filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.ie-filter-group details summary {
  list-style: none;
  font-weight: 800;
  font-size: .92rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.ie-filter-group details summary::-webkit-details-marker { display: none; }
.ie-filter-group details summary::after {
  content: "+";
  color: var(--ie-accent);
  font-size: 1.2rem;
  font-weight: 400;
}
.ie-filter-group details[open] summary::after { content: "−"; }
.ie-filter-body { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.ie-filter-check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .88rem;
  color: var(--ie-ink-soft);
  cursor: pointer;
  padding: 4px 0;
}
.ie-filter-check input[type="checkbox"] {
  accent-color: var(--ie-accent);
  width: 16px;
  height: 16px;
}

/* ============================================================
   36. SALES CARDS (tarjeta premium de venta)
   ============================================================ */
.ie-sale-card {
  background: linear-gradient(145deg, #0B1220, #1E293B);
  border: 1px solid rgba(200,161,90,.28);
  border-radius: var(--ie-radius-lg);
  padding: 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.ie-sale-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(200,161,90,.25), transparent 65%);
  pointer-events: none;
}
.ie-sale-card h3 { color: #fff; font-size: 1.25rem; letter-spacing: -.02em; position: relative; }
.ie-sale-card p { color: rgba(255,255,255,.72); font-size: .92rem; line-height: 1.6; position: relative; }
.ie-sale-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ie-gold);
}
.ie-sale-price small { font-size: .8rem; color: rgba(255,255,255,.55); font-weight: 600; margin-left: 4px; }
.ie-sale-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; position: relative; }

/* ============================================================
   37. CTA BUTTON BOXES (caja compacta con botones)
   ============================================================ */
.ie-cta-btn-box {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: var(--ie-accent-soft);
  border: 1px solid var(--ie-accent);
  border-radius: var(--ie-radius-15);
}
.ie-cta-btn-box-text h3 { font-size: 1.05rem; font-weight: 800; color: var(--ie-ink); margin-bottom: 4px; }
.ie-cta-btn-box-text p { font-size: .88rem; color: var(--ie-ink-soft); }
.ie-cta-btn-box-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   38. ALERT ACCORDION · Estilo "Evita Fraudes"
   Al abrir → cambia color de fondo y borde
   ============================================================ */
.ie-alert-accordion { display: flex; flex-direction: column; gap: 12px; }
.ie-alert-accordion details {
  background: var(--ie-surface);
  border: 1px solid var(--ie-line);
  border-left: 4px solid #F59E0B;
  border-radius: var(--ie-radius-15);
  overflow: hidden;
  transition: background .4s ease, border-color .4s ease;
}
.ie-alert-accordion details[open] {
  background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
  border-left-color: #DC2626;
  border-color: #FED7AA;
}
.ie-alert-accordion summary {
  list-style: none;
  padding: 18px 20px;
  font-weight: 800;
  font-size: .98rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #92400E;
  transition: color .3s ease;
}
.ie-alert-accordion summary::-webkit-details-marker { display: none; }
.ie-alert-accordion summary::after {
  content: "▸";
  font-size: 1.2rem;
  color: #DC2626;
  transition: transform .3s ease;
}
.ie-alert-accordion details[open] summary {
  color: #991B1B;
  border-bottom: 1px solid #FED7AA;
}
.ie-alert-accordion details[open] summary::after { transform: rotate(90deg); }
.ie-alert-accordion-body {
  padding: 16px 20px 20px;
  color: #7C2D12;
  font-size: .92rem;
  line-height: 1.65;
}
.ie-alert-accordion-body ul { padding-left: 20px; margin-top: 8px; }
.ie-alert-accordion-body li { margin-bottom: 6px; }

/* ============================================================
   39. VARIANTES DE ACORDEÓN (gold premium)
   ============================================================ */
.ie-accordion--gold details[open] { background: var(--ie-gold-soft); border-color: var(--ie-gold); }
.ie-accordion--gold details[open] summary { color: var(--ie-ink); }
.ie-accordion--gold details[open] summary::after { color: var(--ie-gold); }

/* ============================================================
   40. UTILIDADES DE LAYOUT CON SIDEBAR
   ============================================================ */
.ie-split-sidebar { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 980px) {
  .ie-split-sidebar { grid-template-columns: 1fr 320px; align-items: start; }
}
.ie-split-sidebar--reverse { grid-template-columns: 1fr; }
@media (min-width: 980px) {
  .ie-split-sidebar--reverse { grid-template-columns: 320px 1fr; align-items: start; }
}