/* ══════════════════════════════════════════════════════════
   BLOQUES PREMIUM — marquee, stats, garantía y FAQ
   ══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════
   MARQUEE — banda infinita de disciplinas
   ══════════════════════════════════════ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
  /* Desvanece los extremos para que el loop no se corte de golpe */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg-2);
  white-space: nowrap;
}

.marquee__item::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.marquee__item--muted { color: var(--fg-3); }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════
   STATS — barra de cifras
   ══════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: clamp(2rem, 4vw, 3.25rem) 1.5rem clamp(2rem, 4vw, 3.25rem) 0;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: none; }

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  margin-bottom: .85rem;
}

.stat__num .unit { color: var(--brand); }

.stat__label {
  display: block;
  font-size: .82rem;
  color: var(--fg-2);
  line-height: 1.5;
  max-width: 24ch;
}

/* ══════════════════════════════════════
   GARANTÍA / CONFIANZA
   ══════════════════════════════════════ */
.trust {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.trust__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.trust__item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.75rem .25rem;
  border-bottom: 1px solid var(--line);
}

.trust__mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-dim);
  border: 1px solid var(--brand-line);
  color: var(--brand);
  font-size: .8rem;
}

.trust__item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.028em;
  margin-bottom: .45rem;
}

.trust__item p {
  font-size: .92rem;
  color: var(--fg-2);
  line-height: 1.65;
}

/* Cita editorial al costado */
.trust__quote {
  border-left: 1px solid var(--brand-line);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
}

.trust__quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: balance;
}

.trust__quote blockquote span { color: var(--brand); }

.trust__quote cite {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1.5rem;
  font-family: var(--font);
  font-style: normal;
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--fg-3);
}

.trust__quote cite::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--brand);
}

/* ══════════════════════════════════════
   FAQ — acordeón nativo (<details>)
   ══════════════════════════════════════ */
.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.6rem .25rem;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.02rem, 1.8vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  color: var(--fg);
  transition: color var(--transition), padding-left var(--transition);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary:hover {
  color: var(--brand);
  padding-left: .75rem;
}

.faq__num {
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.faq__q { flex: 1; }

.faq__sign {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.faq__sign::before,
.faq__sign::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform .35s var(--ease-out), opacity .25s ease;
}

.faq__sign::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq__sign::after {
  left: 50%;
  top: 0;
  height: 100%;
  width: 1.5px;
  transform: translateX(-50%);
}

.faq__item[open] .faq__sign::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq__item[open] summary { color: var(--brand); }

.faq__answer {
  padding: 0 .25rem 1.75rem 3.5rem;
  max-width: 68ch;
  color: var(--fg-2);
  font-size: .95rem;
  line-height: 1.7;
  animation: faqReveal .4s var(--ease-out);
}

.faq__answer a { color: var(--brand); }
.faq__answer a:hover { text-decoration: underline; }

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }

  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .trust { grid-template-columns: 1fr; }

  .trust__quote {
    border-left: none;
    border-top: 1px solid var(--brand-line);
    padding-left: 0;
    padding-top: 2rem;
  }
}

@media (max-width: 640px) {
  .stat { padding-right: 1rem; }

  .faq__answer { padding-left: .25rem; }

  .marquee__track { animation-duration: 26s; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .faq__answer { animation: none; }
}

/* ══════════════════════════════════════
   PLANES — 3 tarjetas, la del medio destacada
   ══════════════════════════════════════ */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .018);
  transition: border-color var(--transition), transform var(--transition);
}

.plan:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

/* La del medio lleva el único borde naranjo de la sección */
.plan--featured {
  border-color: var(--brand-line);
  background: linear-gradient(180deg, var(--brand-dim), rgba(255, 255, 255, .018) 55%);
}

.plan--featured:hover { border-color: var(--brand); }

.plan__flag {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  transform: translateY(-50%);
  padding: .25rem .7rem;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.plan__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: .3rem;
}

.plan__for {
  font-size: .84rem;
  color: var(--fg-2);
  min-height: 2.4em;
}

.plan__price {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 1.5rem;
  color: var(--fg);
}

.plan__from {
  display: block;
  font-family: var(--font);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: .4rem;
}

.plan__price--quote {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--brand);
}

.plan__note {
  font-size: .76rem;
  color: var(--fg-3);
  margin-top: .45rem;
}

.plan__list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 1.75rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .87rem;
  color: var(--fg-2);
}

.plan__list li {
  display: flex;
  gap: .6rem;
  line-height: 1.45;
}

.plan__list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: .5rem;
  border-radius: 50%;
  background: var(--brand);
}

.plan__list b { color: var(--fg); font-weight: 600; }

.plan__maint {
  margin-top: auto;
  margin-bottom: 1.25rem;
  padding: .7rem .85rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .04);
  font-size: .8rem;
  color: var(--fg-2);
}

.plan__maint b { color: var(--fg); font-weight: 600; }

.plans__foot {
  margin-top: 1.75rem;
  font-size: .82rem;
  color: var(--fg-3);
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}

/* Aviso bajo el subtítulo de una sección (ej. asistente IA en los demos) */
/* El texto va en un <span> propio: si no, el <b> se vuelve ítem flex
   y la frase se parte en columnas */
.section-hint {
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  line-height: 1.5;
  padding: .55rem .9rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-full);
  background: var(--brand-dim);
  font-size: .82rem;
  color: var(--fg-2);
  width: fit-content;
}

.section-hint i { color: var(--brand); }
.section-hint b { color: var(--fg); font-weight: 600; }

@media (max-width: 1024px) {
  .plans { grid-template-columns: 1fr; max-width: 30rem; }
  .plan__for { min-height: 0; }
}

@media (max-width: 640px) {
  .section-hint {
    align-items: flex-start;
    border-radius: var(--radius-md);
  }
}
