/* ============================================================
   SIMU — Components
   Clases reutilizables: layout, nav, botones, badges,
   tarjetas, formularios y acordeón.
   ============================================================ */

/* ---- Layout ---- */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-gap) 0;
  position: relative;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
}

.nav-link:hover { color: var(--navy); }
.nav-link.active { color: var(--green-deep); }

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 18px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-navy);
}

.btn-green {
  background: var(--green);
  color: var(--black);
  box-shadow: var(--shadow-green);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-dark);
}

.btn-sm {
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 100px;
}

/* ---- Eyebrow / Badge mono ---- */
.eyebrow-mono {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(7, 45, 98, 0.06);
  border: 1px solid rgba(7, 45, 98, 0.15);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.eyebrow-mono .ping {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-deep);
  flex-shrink: 0;
}

.eyebrow-mono.on-dark {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ---- Section head ---- */
.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section-head h2 .accent { color: var(--green-deep); }
.section-head.on-dark h2 { color: var(--white); }

/* ---- Tarjeta terminal (Hero) ---- */
.term-card {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 100px -20px rgba(62, 240, 158, 0.4);
}

.term-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(62, 240, 158, 0.4), transparent 70%);
  filter: blur(20px);
}

.term-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.term-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.term-row:last-child { border-bottom: none; }

.term-row .num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green);
  width: 24px;
  flex-shrink: 0;
}

.term-row .label {
  color: var(--white);
  font-weight: 600;
  font-size: 0.96rem;
  flex: 1;
}

.term-row .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(62, 240, 158, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.term-row .check svg {
  width: 11px;
  height: 11px;
  color: var(--green);
}

/* ---- Dark band (CTA y fracaso) ---- */
.dark-band {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 54px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dark-band::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(62, 240, 158, 0.3), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.dark-band-inner { position: relative; z-index: 1; }

/* ---- Tarjeta genérica ---- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

/* ---- Chips de casos ---- */
.case-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-chip {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
}

.case-chip strong { color: var(--green-deep); }

/* ---- Plataforma chips ---- */
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft, var(--gray));
  transition: border-color 0.15s ease, color 0.15s ease;
}

.platform-chip:hover {
  border-color: var(--teal, var(--green-deep));
  color: var(--green-deep);
}

/* ---- Formulario newsletter ---- */
.news-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.news-form input {
  flex: 1;
  min-width: 220px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 0.96rem;
  color: var(--navy);
}

.news-form input:focus {
  outline: none;
  border-color: var(--green-deep);
}

.news-form button {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 16px 26px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease;
}

.news-form button:hover { transform: translateY(-1px); }

/* ---- Acordeón FAQ ---- */
.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  padding: 24px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--navy);
  gap: 16px;
}

.faq-q .plus {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease, border-color 0.2s ease;
}

.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--navy);
  transition: transform 0.2s ease;
}

.faq-q .plus::before { width: 10px; height: 1.5px; }
.faq-q .plus::after  { width: 1.5px; height: 10px; }

.faq-item.open .plus { border-color: var(--green-deep); }
.faq-item.open .plus::after { transform: scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner {
  padding: 0 4px 24px;
  font-size: 0.96rem;
  color: var(--gray);
  max-width: 680px;
}

.faq-item.open .faq-a { max-height: 300px; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 45, 98, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

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

.modal-box {
  background: var(--white);
  border-radius: 18px;
  max-width: 540px;
  width: 100%;
  padding: 40px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--gray);
}

.footer-egg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--gray);
  padding: 4px 0;
}

.footer-egg:hover { color: var(--green-deep); }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .wrap, .wrap-narrow { padding: 0 18px; }
  section { padding: 64px 0; }
  .dark-band { padding: 42px 24px; }
}

@media (max-width: 700px) {
  .nav-links .nav-link { display: none; }
}
