/* pricing.css */
:root {
  --bg: #0f1220;
  --card: #171a2b;
  --card-light: #1f2340;
  --primary: #7c8cff;
  --primary-hover: #6a7cff;
  --text: #e6e8f0;
  --muted: #a0a4c0;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* Reserva el espacio de la barra de desplazamiento siempre */
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #1a1f3d 0%, transparent 60%),
              radial-gradient(1000px 500px at 80% 10%, #22286b 0%, transparent 55%), var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

/* Alineación exacta con Home (1000px max) */
.container {
  flex: 1;
  width: 100%;
  max-width: 1000px; 
  margin: 0 auto;
  padding: 32px 16px;
}

.pricing-header { text-align: center; margin-bottom: 20px; }
.pricing-header h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.tagline { color: var(--muted); font-size: 16px; }

/* BILLING SELECTOR PILL */
.billing-container { display: flex; justify-content: center; margin: 32px 0 48px; }
.billing-pill {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  padding: 4px; border-radius: 999px; display: flex; position: relative; width: 240px;
}
.pill-slider {
  position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px);
  background: var(--primary); border-radius: 999px; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1;
}
.billing-pill.is-yearly .pill-slider { transform: translateX(100%); }
.billing-btn {
  background: transparent; border: none; color: var(--muted); width: 50%; padding: 10px 0;
  font-size: 14px; font-weight: 600; cursor: pointer; position: relative; z-index: 2; transition: 0.3s;
}
.billing-btn.active { color: #0b0e1a; }

/* GRID 3+1: El secreto está en grid-template-columns */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Fuerza 3 columnas arriba */
  gap: 24px;
  width: 100%;
}

.pricing-card {
  background: linear-gradient(180deg, var(--card-light), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 140, 255, 0.4);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
  z-index: 10;
}

/* Badge y Textos */
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #0b0e1a; padding: 4px 14px; border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: uppercase;
}
.plan-name { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.plan-price { font-size: 40px; font-weight: 800; color: var(--text); }
.plan-unit { font-size: 16px; color: var(--muted); font-weight: 400; }
.plan-save { height: 20px; margin-bottom: 24px; font-size: 14px; color: #ff7c7c; opacity: 0; transition: 0.3s; font-weight: 600; }

.plan-features { list-style: none; padding: 0; margin: 0 0 32px 0; flex-grow: 1; }
.plan-features li { font-size: 14px; margin-bottom: 12px; display: flex; gap: 10px; color: var(--text); line-height: 1.4; }
.plan-features li::before { content: "✓"; color: var(--primary); font-weight: 900; }

/* Botones */
.btn, .btn-outline {
  display: block; width: 100%; padding: 14px; border-radius: 12px;
  font-size: 15px; font-weight: 600; text-decoration: none; text-align: center; transition: 0.2s;
}
.btn { background: var(--primary); color: #0b0e1a; border: none; box-shadow: 0 4px 15px rgba(124, 140, 255, 0.3); }
.btn-outline { background: rgba(255, 255, 255, 0.05); color: var(--text); border: 1px solid var(--border); }

/* RESPONSIVE */
@media (max-width: 992px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); } /* 2 columnas en tablet */
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } /* 1 columna en móvil */
  .pricing-card.featured { transform: scale(1); }
  .container { padding: 32px 16px; }
}

footer { text-align: center; padding: 40px 0; color: var(--muted); font-size: 13px; margin-top: auto; border-top: 1px solid var(--border); }