/* ============================================================
   CORPO — Estilos de la página Planes (tema claro)
   ============================================================ */

/* ---------- Hero centrado con toggle ---------- */
.plans-hero {
  text-align: center;
}

.plans-hero .eyebrow {
  justify-content: center;
}

.plans-hero .lead {
  margin-inline: auto;
}

.freq-toggle-wrap {
  margin-top: 2.4rem;
}

.freq-toggle {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem;
  box-shadow: var(--shadow);
}

.freq-btn {
  border: 0;
  background: transparent;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.freq-btn.active {
  background: var(--dark);
  color: var(--white);
}

.freq-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .freq-toggle {
    display: flex;
    width: 100%;
  }

  .freq-btn {
    flex: 1;
    padding: 0.65rem 0.5rem;
    font-size: 0.88rem;
  }
}

/* ---------- Encabezado de grupo ---------- */
.plan-group {
  scroll-margin-top: var(--header-h);
}

.plan-group-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.group-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.group-head h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue);
  flex-shrink: 0;
}

.group-head p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.group-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

@media (max-width: 560px) {
  .group-head {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .group-rule {
    display: none;
  }
}

/* ---------- Grillas de planes ---------- */
.plans-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.plans-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.plans-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.plans-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1080px) {
  .plans-grid-4,
  .plans-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .plans-grid-4,
  .plans-grid-3,
  .plans-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Tarjeta de plan ---------- */
.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 1rem);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 132, 255, 0.35);
}

.plan-card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.6rem;
}

.plan-badge {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.plan-badge-inline {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 0 0.4rem;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
  flex: 1;
}

/* ---------- Precio ---------- */
.plan-price {
  margin-bottom: 1.4rem;
}

.price-amount {
  display: block;
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.price-period {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.plan-card .btn {
  width: 100%;
}

/* ---------- Checklist ---------- */
.plan-includes {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.plan-includes li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.65rem;
  font-size: 0.93rem;
  color: var(--text);
}

.plan-includes li:last-child {
  margin-bottom: 0;
}

.plan-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 12px;
  height: 12px;
  background: var(--blue);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 0%, 38% 66%);
}

/* ---------- Tarjeta destacada (oscura) ---------- */
.plan-featured {
  background: linear-gradient(165deg, #13283f, var(--dark) 75%);
  border-color: var(--dark);
}

.plan-featured h3,
.plan-featured .price-amount {
  color: var(--white);
}

.plan-featured .plan-desc,
.plan-featured .price-period {
  color: rgba(255, 255, 255, 0.65);
}

.plan-featured .plan-includes {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.plan-featured .plan-includes li {
  color: rgba(255, 255, 255, 0.85);
}

.plan-badge-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

/* ---------- Notas ---------- */
.plans-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}

.plans-note + .plans-note {
  margin-top: 0.6rem;
}

@media (max-width: 480px) {
  .plan-card {
    padding: 1.6rem 1.4rem;
  }

  .price-amount {
    font-size: 1.85rem;
  }
}

/* ---------- Preguntas frecuentes ---------- */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 1.6rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
  transition: color var(--transition);
}

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

.faq-item summary:hover {
  color: var(--blue);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-soft);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: transform var(--transition);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item p {
  padding: 0 1.6rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.faq-item p a {
  color: var(--blue);
  font-weight: 700;
}

.faq-item p a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .faq-item summary {
    padding: 1.1rem 1.2rem;
    font-size: 0.95rem;
  }

  .faq-item p {
    padding: 0 1.2rem 1.2rem;
  }
}
