/* ── MARQUEE ── */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--off);
  overflow: hidden;
  padding: 1rem 0;
}
.marquee-track {
  display: flex; gap: 3.5rem;
  width: max-content;
  animation: scroll 25s linear infinite;
}
.marquee-item {
  white-space: nowrap;
  font-size: 0.75rem; font-weight: 600;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 0.6rem;
}
.marquee-item::before { content: '●'; color: var(--teal); font-size: 0.4rem; }

/* ── MÓDULOS ── */
#modulos { background: var(--white); }

.mod-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; align-items: end;
  margin-bottom: 3.5rem;
}
.mod-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.mc {
  border-radius: 16px; padding: 2rem;
  border: 1px solid var(--border);
  background: var(--white);
  transition: all 0.3s;
  cursor: default;
  position: relative; overflow: hidden;
  min-width: 0;
}
.mc::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 0 0 16px 16px;
  transition: opacity 0.3s;
  opacity: 0;
}
.mc:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(18,0,82,0.08); }
.mc:hover::after { opacity: 1; }

.mc-1 { grid-column: span 5; --c: var(--blue); }
.mc-1::after { background: var(--blue); }
.mc-1:hover { border-color: rgba(4,131,197,0.2); }

.mc-2 { grid-column: span 4; --c: var(--teal); }
.mc-2::after { background: var(--teal); }
.mc-2:hover { border-color: rgba(4,170,199,0.2); }

.mc-3 { grid-column: span 3; --c: var(--purple); }
.mc-3::after { background: var(--purple); }
.mc-3:hover { border-color: rgba(18,0,82,0.2); }

.mc-4 { grid-column: span 7; --c: #7c3aed; }
.mc-4::after { background: #7c3aed; }
.mc-4:hover { border-color: rgba(124,58,237,0.2); }

.mc-5 { grid-column: span 5; --c: var(--gold); }
.mc-5::after { background: var(--gold); }
.mc-5:hover { border-color: rgba(149,140,89,0.2); }

.mc-6 { grid-column: span 6; --c: #059669; }
.mc-6::after { background: #059669; }
.mc-6:hover { border-color: rgba(5,150,105,0.2); }

.mc-7 { grid-column: span 6; --c: #0369a1; }
.mc-7::after { background: #0369a1; }
.mc-7:hover { border-color: rgba(3,105,161,0.2); }

.mc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.mc-chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.mc-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--purple); margin-bottom: 0.6rem; line-height: 1.2; overflow-wrap: anywhere; }
.mc-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.65; font-weight: 400; }
.mc-tags { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mc-tag { font-size: 0.7rem; font-weight: 500; color: var(--c); border: 1px solid currentColor; padding: 0.2rem 0.55rem; border-radius: 5px; opacity: 0.75; overflow-wrap: anywhere; }

/* ── FEATURES ── */
#features { background: var(--purple); }

.feat-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; overflow: hidden;
  margin-top: 3.5rem;
}
.feat-item { background: var(--purple); padding: 2.5rem; transition: background 0.25s; }
.feat-item:hover { background: var(--purple-mid); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid; place-items: center;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.feat-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.feat-desc { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.65; font-weight: 300; }
#features .sec-title { color: var(--white); }
#features .sec-label { color: var(--teal); }
#features .sec-sub { color: rgba(255,255,255,0.55); }

/* ── PRECIOS ── */
#precios { background: var(--off); }

.price-header { text-align: center; margin-bottom: 3.5rem; }
.price-header .sec-sub { margin: 0.875rem auto 0; }
.price-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1.25rem; align-items: start;
}

.pc {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 18px; padding: 2.25rem;
  position: relative; transition: all 0.3s;
}
.pc:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(18,0,82,0.1); }
.pc.featured { background: var(--purple); border-color: var(--purple); box-shadow: 0 20px 60px rgba(18,0,82,0.25); }
.pc-best {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: var(--white);
  font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.28rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.pc-name { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem; }
.pc.featured .pc-name { color: rgba(255,255,255,0.6); }
.pc-price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.05em; color: var(--purple); line-height: 1; margin-bottom: 0.3rem; }
.pc.featured .pc-price { color: var(--white); }
.pc-price sup { font-size: 1.2rem; vertical-align: super; font-weight: 500; }
.pc-price span { font-size: 1rem; font-weight: 400; }
.pc-period { font-size: 0.78rem; color: var(--muted); margin-bottom: 2rem; }
.pc.featured .pc-period { color: rgba(255,255,255,0.45); }
.pc-divider { height: 1px; background: var(--border); margin-bottom: 1.5rem; }
.pc.featured .pc-divider { background: rgba(255,255,255,0.12); }
.pc-features { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 2rem; }
.pc-features li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.85rem; color: var(--muted); }
.pc.featured .pc-features li { color: rgba(255,255,255,0.7); }
.pc-features li::before { content: '✓'; color: var(--teal); font-weight: 800; margin-top: 1px; flex-shrink: 0; }
.pc-features li.no { opacity: 0.45; }
.pc-features li.no::before { content: '–'; color: var(--muted); }
.pc.featured .pc-features li.no::before { color: rgba(255,255,255,0.3); }
.pc-btn {
  display: block; width: 100%; padding: 0.85rem; border-radius: 10px;
  border: none; cursor: pointer; font-family: var(--f);
  font-size: 0.9rem; font-weight: 700;
  text-align: center; text-decoration: none; transition: all 0.2s;
}
.pc-desc-plan {
  font-size: 0.78rem; color: var(--muted);
  margin-bottom: 1rem; font-weight: 400;
}
.pc.featured .pc-desc-plan { color: rgba(255,255,255,0.5); }
.pc.premium .pc-desc-plan { color: var(--gold); }

.pc.premium {
  background: var(--dark);
  border-color: var(--gold);
  box-shadow: 0 20px 60px rgba(149,140,89,0.2);
}
.pc.premium .pc-name { color: var(--gold); }
.pc.premium .pc-price { color: var(--white); }
.pc.premium .pc-period { color: rgba(255,255,255,0.4); }
.pc.premium .pc-divider { background: rgba(255,255,255,0.1); }
.pc.premium .pc-features li { color: rgba(255,255,255,0.7); }
.pc.premium .pc-features li::before { color: var(--gold); }
.pc.premium:hover { box-shadow: 0 28px 70px rgba(149,140,89,0.3); }

.pc-best--gold {
  background: var(--gold) !important;
  color: var(--white) !important;
}

.pc-highlight {
  color: var(--gold) !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
.pc-highlight::before { color: var(--gold) !important; }

.pc-btn.outline { background: transparent; border: 1.5px solid var(--border); color: var(--purple); }
.pc-btn.outline:hover { border-color: var(--purple); }
.pc-btn.solid { background: var(--teal); color: var(--white); box-shadow: 0 4px 16px rgba(4,170,199,0.35); }
.pc-btn.solid:hover { background: #03c0e0; transform: translateY(-1px); }
.pc-btn.gold { background: var(--gold); color: var(--white); box-shadow: 0 4px 16px rgba(149,140,89,0.35); }
.pc-btn.gold:hover { background: #7a7248; transform: translateY(-1px); }

/* ── CTA ── */
#cta { background: var(--white); text-align: center; padding: 7rem 6vw; }
.cta-inner { max-width: 620px; margin: 0 auto; }
.cta-title { font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; color: var(--purple); margin-bottom: 1.25rem; }
.cta-title em { font-style: normal; color: var(--blue); }
.cta-sub { font-size: 1rem; color: var(--muted); line-height: 1.7; margin-bottom: 2.5rem; }
.cta-btns { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }

/* ── WHATSAPP FLOTANTE ── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  display: flex; align-items: center; gap: 0.6rem;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
  text-decoration: none;
  font-size: 0.85rem; font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(37,211,102,0.5);
}
.wa-label { white-space: nowrap; }

@media (max-width: 640px) {
  .wa-float { padding: 0.85rem; border-radius: 50%; }
  .wa-label { display: none; }
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding: 4rem 6vw 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo-link { display: inline-block; }
.footer-tagline {
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  line-height: 1.6; font-weight: 400; max-width: 220px;
}

.footer-wa {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.25);
  color: #25D366;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem; font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  width: fit-content;
}
.footer-wa:hover {
  background: rgba(37,211,102,0.2);
  border-color: rgba(37,211,102,0.45);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-col-title {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.875rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a {
  font-size: 0.83rem; color: rgba(255,255,255,0.65);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-detail { font-size: 0.83rem; color: rgba(255,255,255,0.55); }

.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  padding: 1.25rem 6vw;
}
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.55); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
  font-size: 0.75rem; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--teal); }

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

@media (max-width: 960px) {
  .mod-grid { grid-template-columns: 1fr 1fr; }
  .mc-1,.mc-2,.mc-3,.mc-4,.mc-5,.mc-6,.mc-7 { grid-column: span 1; }
  .feat-grid { grid-template-columns: 1fr; }
  .mod-header { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  #modulos { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .mod-header { gap: 1rem; margin-bottom: 2rem; }
  .mod-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .mc { padding: 1.4rem; border-radius: 14px; }
  .mc-title { font-size: 1.08rem; }
  .mc-desc { font-size: 0.84rem; line-height: 1.6; }
  .mc-chip { margin-bottom: 1rem; }
  .mc-tags { margin-top: 1rem; }
}

@media (max-width: 540px) {
  .price-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* FAQ */
#faq { background: var(--off); }

.faq-inner { max-width: 780px; margin: 0 auto; }

.faq-header { margin-bottom: 2.5rem; }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4,131,197,0.06);
}

.faq-q {
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  letter-spacing: -0.01em;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }

.faq-a {
  margin-top: 0.875rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
}
.faq-a a { color: var(--blue); text-decoration: underline; }
