/* ═══════════════════════════════════════════════════════════════
   Portal HSE IntegraPro — founders.css v1.0
   Estilos exclusivos del bloque Founders 60.
   No modifica main.css; importable por carrito.html, index.html, etc.
═══════════════════════════════════════════════════════════════ */

:root {
  /* Tokens Founders 60 (no colisionan con --brand del sistema) */
  --f-gold:    #fcd34d;
  --f-gold-2:  #fbbf24;
  --f-amber:   #f59e0b;
  --f-deep:    #78350f;
  --f-deep-2:  #451a03;
  --f-gold-dim: rgba(252, 211, 77, 0.14);
  --f-gold-soft: rgba(252, 211, 77, 0.06);
  --f-success: #10b981;
}

/* ============================================================
   FOUNDER BLOCK (carrito) — versión completa con counter
   ============================================================ */

.founder-block {
  background: linear-gradient(180deg,
    rgba(252, 211, 77, 0.05) 0%,
    var(--bg-2) 60%);
  border: 1px solid rgba(252, 211, 77, 0.25);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 8px 24px -8px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(252, 211, 77, 0.06);
  animation: founderSlideIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes founderSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Decorativo: gradient sutil en esquina */
.founder-block::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--f-gold-dim) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Ribbon superior ─────────────────────────────────── */

.founder-ribbon {
  background: linear-gradient(90deg, var(--f-deep) 0%, var(--f-amber) 100%);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--f-gold);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.founder-ribbon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(252, 211, 77, 0.04) 12px,
    rgba(252, 211, 77, 0.04) 13px
  );
}

.founder-ribbon-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.founder-emblem-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--f-gold), var(--f-amber) 60%, var(--f-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.founder-emblem-num {
  font-family: 'Syne', serif;
  font-style: italic;
  font-weight: 800;
  font-size: 13px;
  color: var(--f-deep-2);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.founder-cohort-badge {
  background: rgba(252, 211, 77, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(252, 211, 77, 0.35);
  position: relative;
  z-index: 1;
  font-size: 10px;
}

/* ─── Body principal ──────────────────────────────────── */

.founder-body {
  padding: 28px 26px;
  position: relative;
  z-index: 1;
}

.founder-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text);
}

.founder-title em {
  font-style: italic;
  color: var(--f-gold);
  font-weight: 600;
}

.founder-lead {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 24px;
}

.founder-lead strong {
  color: var(--f-gold);
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.founder-lead em {
  font-style: italic;
  color: var(--text);
}

.founder-strike {
  display: inline-block;
  margin-left: 8px;
  font-size: 13px;
  color: var(--text-3);
}

.founder-strike s {
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.7);
  text-decoration-thickness: 1.5px;
}

/* ─── Counter de cupos ────────────────────────────────── */

.founder-counter {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 20px;
}

.founder-counter-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.founder-counter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--f-gold) 0%, var(--f-amber) 100%);
  border-radius: 100px;
  box-shadow: 0 0 8px rgba(252, 211, 77, 0.4);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.founder-counter-fill.warning {
  background: linear-gradient(90deg, var(--f-amber) 0%, #ef4444 100%);
}

.founder-counter-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 8px;
}

.founder-counter-meta strong {
  color: var(--f-gold);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.founder-counter-next {
  font-size: 11px;
  font-style: italic;
  color: var(--text-3);
}

/* ─── Promesas (4 pills) ──────────────────────────────── */

.founder-promises {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
}

@media (max-width: 600px) {
  .founder-promises { grid-template-columns: 1fr; }
}

.founder-promises li {
  font-size: 12px;
  color: var(--text-2);
  padding: 8px 12px;
  background: var(--f-gold-soft);
  border: 1px solid rgba(252, 211, 77, 0.12);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.founder-promises li span {
  font-size: 14px;
  flex-shrink: 0;
}

/* ─── Disclaimer ──────────────────────────────────────── */

.founder-disclaimer {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.founder-disclaimer a {
  color: var(--f-gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--f-gold-dim);
}

.founder-disclaimer a:hover {
  border-bottom-style: solid;
}

/* ============================================================
   FOUNDER PRICE BADGE (resumen lateral)
   Cuando hay cohorte activa, mostramos en el summary el strike-through.
   ============================================================ */

.summary-row.founder-savings {
  color: var(--f-success);
  font-size: 12px;
  font-style: italic;
}

.summary-row.founder-savings strong {
  color: var(--f-success);
  font-weight: 600;
}

/* Total con descuento */
.summary-row.total .v.founder-active {
  color: var(--f-gold);
}

.summary-row.total .v-old {
  display: inline-block;
  font-size: 13px;
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.6);
  margin-right: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

/* ============================================================
   BANNER COMPACTO (para landing /cuenta/index.html)
   Versión más pequeña que solo invita a entrar al carrito
   ============================================================ */

.founder-banner {
  background: linear-gradient(90deg,
    rgba(252, 211, 77, 0.08) 0%,
    rgba(245, 158, 11, 0.04) 100%);
  border: 1px solid rgba(252, 211, 77, 0.25);
  border-radius: var(--r-md);
  padding: 18px 24px;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.founder-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--f-gold), var(--f-amber) 60%, var(--f-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(252, 211, 77, 0.2);
}

.founder-banner-icon span {
  font-family: 'Syne', serif;
  font-style: italic;
  font-weight: 800;
  font-size: 16px;
  color: var(--f-deep-2);
}

.founder-banner-content {
  flex: 1;
  min-width: 240px;
}

.founder-banner-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.founder-banner-title em {
  color: var(--f-gold);
  font-style: italic;
}

.founder-banner-sub {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}

.founder-banner-sub strong {
  color: var(--f-gold);
  font-weight: 600;
}

.founder-banner-cta {
  background: linear-gradient(135deg, var(--f-gold) 0%, var(--f-amber) 100%);
  color: var(--f-deep-2);
  border: 0;
  padding: 10px 18px;
  border-radius: var(--r);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.founder-banner-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -4px rgba(252, 211, 77, 0.5);
}

/* Responsive: en móvil, CTA full-width */
@media (max-width: 600px) {
  .founder-banner { flex-direction: column; align-items: stretch; }
  .founder-banner-cta { justify-content: center; }
}

/* ============================================================
   PROMO BADGE (pequeño badge para tarjetas de catálogo)
   ============================================================ */

.founder-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: linear-gradient(90deg, var(--f-gold) 0%, var(--f-amber) 100%);
  color: var(--f-deep-2);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .founder-block {
    animation: none;
  }
  .founder-counter-fill {
    transition: none;
  }
}
