/* --- VARIABLES GLOBALES --- */
:root {
  --primary: #0062ff;
  --primary-hover: #004ecc;
  --dark: #0f172a;
  --bg-light: #f8fafc;
  --accent: #00f2fe;
  --text-muted: #94a3b8;
}

/* --- ESTILOS BASE --- */
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg-light);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.checkout-container {
  background: white;
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- LADO IZQUIERDO: RESUMEN DEL PAQUETE --- */
.order-summary {
  background: var(--dark);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.order-summary h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 10px;
}

.order-summary h2 {
  font-size: 2rem;
  margin: 0;
  font-weight: 800;
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 30px 0;
  line-height: 1;
}

.price span {
  font-size: 1.1rem;
  opacity: 0.6;
  font-weight: 400;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.feature-list li {
  margin-bottom: 15px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 12px;
  font-weight: bold;
}

.guarantee-text {
  margin-top: auto;
  font-size: 0.8rem;
  opacity: 0.5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

/* --- LADO DERECHO: PASARELA DE PAGO --- */
.payment-methods {
  padding: 40px;
  background: white;
}

.payment-methods h4 {
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 1.1rem;
  color: var(--dark);
}

/* Campos de Stripe */
#card-element {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fdfdfd;
  margin-bottom: 20px;
}

.btn-pay {
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px;
  width: 100%;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.btn-pay:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 98, 255, 0.2);
}

/* Separador */
.divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: #e2e8f0;
}
.divider::before {
  left: 0;
}
.divider::after {
  right: 0;
}

/* Errores */
#payment-errors {
  color: #ef4444;
  font-size: 0.85rem;
  background: #fef2f2;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: none;
}

/* --- RESPONSIVO --- */
@media (max-width: 800px) {
  .checkout-container {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  .order-summary {
    padding: 30px;
  }
  .price {
    font-size: 2.8rem;
  }
}

/* --- PAGINA DE GRACIAS --- */

.thanks-container {
  text-align: center;
  padding: 60px 20px;
  max-width: 600px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.icon-success {
  font-size: 80px;
  color: #10b981;
  margin-bottom: 20px;
}
.thanks-container h1 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 15px;
}
.thanks-container p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}
.btn-whatsapp {
  background-color: #25d366;
  color: white;
  text-decoration: none;
  padding: 18px 30px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}
.btn-whatsapp:hover {
  transform: scale(1.05);
  background-color: #128c7e;
}
