/* landing.css — Estilos específicos de index.html.
   No incluir en otras páginas — usa base.css además. */

/* ═══ Topbar (sticky con logo + wordmark) ═══ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  padding: 10px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-logo { width: 32px; height: 32px; flex-shrink: 0; }
.topbar-wordmark {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--t1);
}
.topbar-wordmark .accent-fact { color: var(--brand-teal); }
.topbar-wordmark .accent-mx { color: var(--brand-amber); }
.topbar-links { display: flex; align-items: center; gap: 20px; }
.topbar-links a { color: var(--t2); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 150ms ease; white-space: nowrap; }
.topbar-links a:hover { color: var(--accent); }
.topbar-cta { background: var(--accent); color: var(--accent-fg) !important; padding: 8px 16px; border-radius: var(--radius-md); font-weight: 600; }
.topbar-cta:hover { background: var(--accent-hi); }
@media (max-width: 639px) { .topbar-section { display: none; } }

/* ═══ Hero ═══ */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.15;
}

.hero h1 .highlight { color: var(--accent); }

.hero p {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: var(--t2);
  max-width: 640px;
  margin: 0 auto;
}

/* ═══ Secciones generales ═══ */
section.block { padding: 56px 0; }

h2.section-title {
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  text-align: center;
}

h2.section-title .accent { color: var(--accent); }

.section-subtitle {
  text-align: center;
  color: var(--t2);
  margin: -24px auto 32px;
  max-width: 640px;
}

/* ═══ Diferenciales (grid) ═══ */
.diferenciales {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.diferencial {
  background: var(--bg1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 200ms ease;
}

.diferencial:hover { border-color: var(--accent-line); }

.diferencial-icono {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.diferencial h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--t1);
}

.diferencial p {
  color: var(--t2);
  margin: 0;
  font-size: 0.95rem;
}

/* ═══ Planes ═══ */
.planes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.plan-card {
  background: var(--bg1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.plan-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
  box-shadow: var(--shadow-lg);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
}

.plan-nombre {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--t1);
  margin: 0 0 8px;
}

.plan-target {
  font-size: 0.875rem;
  color: var(--t2);
  margin: 0 0 24px;
  min-height: 2.6em;
}

.plan-precio {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.plan-precio-monto {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.plan-precio-periodo {
  font-size: 1rem;
  color: var(--t2);
}

.plan-precio-detalle {
  color: var(--t3);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.plan-alta {
  background: var(--bg2);
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--t2);
}

.plan-alta strong {
  color: var(--t1);
  font-weight: 600;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-grow: 1;
}

.plan-features li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--t1);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-soft);
}

.plan-features li:last-child { border-bottom: none; }

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  background: var(--success);
  border-radius: 50%;
  opacity: 0.18;
}

.plan-features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 17px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.plan-features li.muted {
  color: var(--t3);
}
.plan-features li.muted::before { background: var(--t4); opacity: 0.20; }
.plan-features li.muted::after { border-color: var(--t3); }

.plan-cta {
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 1rem;
  transition: background 150ms ease;
}

.plan-cta:hover { background: var(--accent-hi); }

.plan-card:not(.featured) .plan-cta {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.plan-card:not(.featured) .plan-cta:hover {
  background: var(--accent-soft);
}

/* ═══ Bolsa de timbres ═══ */
.bolsa-tabla-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

table.bolsa {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.bolsa th,
table.bolsa td {
  padding: 14px 20px;
  text-align: left;
}

table.bolsa th {
  background: var(--bg2);
  color: var(--t2);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.bolsa tr { border-bottom: 1px solid var(--border-soft); }
table.bolsa tr:last-child { border-bottom: none; }

table.bolsa td.cantidad { font-weight: 600; }
table.bolsa td.precio-total { color: var(--accent); font-weight: 600; }
table.bolsa td.precio-unitario { color: var(--t2); font-size: 0.9rem; }

.bolsa-nota {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--t3);
  font-size: 0.875rem;
  text-align: center;
}

/* ═══ Qué incluye ═══ */
.incluye-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

.incluye-grupo {
  background: var(--bg1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.incluye-grupo h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.incluye-grupo h3 .estado {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 9999px;
}

.incluye-grupo.disponible h3 .estado {
  background: rgba(139, 212, 168, .15);
  color: var(--success);
}

.incluye-grupo.proximamente h3 .estado {
  background: rgba(228, 200, 138, .15);
  color: var(--warning);
}

.incluye-grupo ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.incluye-grupo li {
  color: var(--t1);
  font-size: 0.95rem;
  padding-left: 24px;
  position: relative;
}

.incluye-grupo.disponible li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.incluye-grupo.proximamente li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--warning);
}

/* ═══ Políticas ═══ */
.politicas-lista {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.politica-item {
  background: var(--bg1);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 18px;
  color: var(--t1);
  font-size: 0.95rem;
}

.politica-item strong {
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ═══ FAQ ═══ */
.faq-lista {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

details.faq-item {
  background: var(--bg1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 200ms ease;
}

details.faq-item[open] { border-color: var(--accent-line); }

details.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  transition: background 150ms ease;
}

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

details.faq-item summary:hover { background: rgba(255, 255, 255, .03); }

details.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform 200ms ease;
  flex-shrink: 0;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item .faq-respuesta {
  padding: 0 20px 20px;
  color: var(--t2);
  font-size: 0.95rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
  margin-top: -4px;
}

details.faq-item .faq-respuesta p { margin: 0 0 10px; }
details.faq-item .faq-respuesta p:last-child { margin-bottom: 0; }

/* ═══ Contacto ═══ */
.contacto-bloque {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.contacto-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 1.3rem + 0.5vw, 1.75rem);
  color: var(--t1);
}

.contacto-intro p {
  color: var(--t2);
  margin: 0 auto 32px;
  max-width: 560px;
}

.contacto-canales {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.contacto-canal {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.contacto-canal:hover {
  border-color: var(--accent-line);
  background: var(--bg2);
  transform: translateY(-1px);
}

.canal-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
}

.canal-icono--whatsapp { background: rgba(37, 211, 102, .15); color: #25D366; }
.canal-icono--mail     { background: var(--accent-soft); color: var(--accent); }

.canal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.canal-titulo {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--t2);
  font-weight: 600;
}

.canal-dato {
  font-size: 1rem;
  color: var(--t1);
  font-weight: 600;
  word-break: break-word;
}

.canal-hint {
  font-size: 0.82rem;
  color: var(--t2);
  margin-top: 2px;
}

.contacto-canal:hover .canal-hint { color: var(--accent); }

.contacto-horario {
  display: inline-block;
  background: var(--bg1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--t2);
}

.contacto-horario strong {
  color: var(--t1);
  font-weight: 600;
}

@media (min-width: 768px) {
  .contacto-canales { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-left: auto; margin-right: auto; }
}

/* ═══ CTA final ═══ */
.cta-final {
  background: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 100%);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-final h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 1.3rem + 0.5vw, 1.75rem);
  color: var(--t1);
}

.cta-final p {
  color: var(--t2);
  margin: 0 0 24px;
}

.cta-botones {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.cta-boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 150ms ease;
  min-width: 220px;
  justify-content: center;
}

.cta-boton.primario {
  background: var(--accent);
  color: var(--accent-fg);
}
.cta-boton.primario:hover { background: var(--accent-hi); }

.cta-boton.secundario {
  background: transparent;
  color: var(--t1);
  border: 1px solid var(--border);
}
.cta-boton.secundario:hover {
  border-color: var(--border-hi);
  background: rgba(255, 255, 255, .03);
}

/* ═══ Responsive ≥640px ═══ */
@media (min-width: 640px) {
  .diferenciales { grid-template-columns: 1fr 1fr; }
  .incluye-grupo ul { grid-template-columns: 1fr 1fr; }
  .cta-botones { flex-direction: row; justify-content: center; }
}

/* ═══ Responsive ≥1024px ═══ */
@media (min-width: 1024px) {
  .hero { padding: 88px 0 64px; }
  .diferenciales { grid-template-columns: repeat(4, 1fr); }
  .planes-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .incluye-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══ Print (específico al landing) ═══ */
@media print {
  .topbar { background: #ffffff; border-bottom: 2px solid #bdb8a8; position: static; }
  section.block { padding: 24px 0; page-break-inside: avoid; }
  .hero { padding: 24px 0; }
  .plan-card { box-shadow: none; page-break-inside: avoid; }
  .diferencial { box-shadow: none; page-break-inside: avoid; }
  .cta-final { background: #f7f5f0; box-shadow: none; }
  .cta-boton { border: 1px solid #1a1d26; color: #1a1d26 !important; background: transparent !important; }
  details.faq-item { page-break-inside: avoid; }
  details.faq-item summary::after { display: none; }
  details.faq-item .faq-respuesta { display: block !important; }
  details.faq-item:not([open]) .faq-respuesta { display: block !important; }
}
