:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eff6ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --primary: #2563eb;
  --primary-2: #3b82f6;
  --primary-ink: #1e40af;
  --ok: #16a34a;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 26px rgba(37, 99, 235, 0.1);
  --shadow-md: 0 18px 40px rgba(37, 99, 235, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.pricing-section {
  max-width: 1180px;
  margin: 56px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.titulo {
  margin: 0 0 10px;
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.subtitulo {
  margin: 0 auto 18px;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.tag-desc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #065f46;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.banner-frase {
  margin: 0 auto 28px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  color: var(--primary-ink);
  font-weight: 700;
  font-size: .95rem;
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 32px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  width: fit-content;
}

.toggle-container label {
  color: #334155;
  font-weight: 700;
  font-size: .92rem;
}

.periodo-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 240px;
  padding: 10px 42px 10px 14px;
  font-size: .94rem;
  font-weight: 700;
  color: #0f172a;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 8 10 12 14 8'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  cursor: pointer;
}

.periodo-select:hover,
.periodo-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.2);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.25);
}

.btn-sim {
  background: #0f172a;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.2);
}

.planes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 18px 20px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.card.destacado {
  border: 2px solid #60a5fa;
  background: linear-gradient(170deg, #eff6ff 0%, #ffffff 54%);
}

.ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  color: #fff;
  background: #0ea5e9;
}

.ribbon--green {
  background: #16a34a;
}

.card h3 {
  margin: 12px 0 8px;
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.35rem;
}

.price {
  min-height: 66px;
  margin: 8px 0 6px;
  color: var(--primary);
  font-weight: 900;
  font-size: 1.95rem;
  letter-spacing: -0.02em;
}

.price small {
  font-size: .82rem;
  color: #475569;
  font-weight: 700;
}

.price-compare {
  min-height: 24px;
  margin-bottom: 4px;
}

.tachado {
  text-decoration: line-through;
  color: #94a3b8;
  margin-right: 8px;
}

.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}

.pill--save {
  background: #dcfce7;
  color: #166534;
}

.saving {
  min-height: 20px;
  font-size: .9rem;
  color: #334155;
}

.clientes {
  margin: 8px 0 14px;
  font-weight: 700;
  color: #1f2937;
}

.nota-iva {
  max-width: 880px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

.sim-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.sim-modal.open {
  display: block;
}

.sim-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
}

.sim-modal__content {
  position: relative;
  max-width: 880px;
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, .3);
  border: 1px solid #dbeafe;
  padding: 22px 20px;
  z-index: 2;
}

.sim-modal__close {
  position: absolute;
  right: 10px;
  top: 6px;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 28px;
  cursor: pointer;
}

.sim-modal__content h2 {
  margin: 0 0 5px;
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
}

.sim-modal__content p {
  margin: 0 0 14px;
  color: var(--muted);
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.sim-field label {
  display: block;
  margin-bottom: 6px;
  font-size: .88rem;
  font-weight: 700;
  color: #334155;
}

.sim-field input,
.sim-field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
}

.sim-field input:focus,
.sim-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.sim-modules {
  margin-bottom: 14px;
}

.sim-modules__title {
  margin-bottom: 8px;
  font-size: .9rem;
  font-weight: 700;
  color: #334155;
}

.sim-modules__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 10px;
}

.sim-module-item {
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f8fbff;
  cursor: pointer;
}

.sim-module-item:hover {
  border-color: #93c5fd;
}

.sim-module-item:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
}

.sim-module-item input {
  margin: 0;
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
}

.sim-module-item span {
  font-weight: 700;
  color: #0f172a;
  font-size: .92rem;
  flex: 1;
}

.sim-result {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 10px;
  color: #1e3a8a;
  min-height: 58px;
  line-height: 1.55;
}

.sim-result:empty::before {
  content: "Aqui veras el plan sugerido y el total final.";
  color: #64748b;
}

.seo-section {
  max-width: 900px;
  margin: 54px auto 24px;
  padding: 28px 24px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .08);
  color: #334155;
}

.seo-section h2 {
  margin: 0 0 10px;
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.4rem;
  color: #0f172a;
}

.seo-section h2::after {
  content: "";
  display: block;
  width: 68px;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.seo-section p {
  margin: 12px 0 18px;
  line-height: 1.7;
  color: #475569;
}

.seo-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.seo-section li {
  position: relative;
  padding-left: 22px;
}

.seo-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
}

.faq-seo {
  max-width: 980px;
  margin: 28px auto 22px;
  padding: 0 20px;
}

.faq-seo h2 {
  margin: 0 0 14px;
  text-align: center;
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  letter-spacing: -0.02em;
}

.faq-seo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 12px;
}

.faq-seo__item {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.faq-seo__item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.faq-seo__item p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .sim-grid { grid-template-columns: 1fr; }
  .sim-modules__list { grid-template-columns: 1fr 1fr; }
  .sim-modal__content { margin: 4vh 12px 0; }
}

@media (max-width: 800px) {
  .toggle-container {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 460px);
    padding: 14px;
  }

  .periodo-select,
  .btn-sim {
    width: 100%;
    min-width: 0;
  }

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

  .sim-modules__list { grid-template-columns: 1fr; }
  .faq-seo__grid { grid-template-columns: 1fr; }
}
