/* ===== RESET BÁSICO ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== ESTILO GENERAL DEL BODY ===== */
body {
  font-family: sans-serif;
  background: radial-gradient(circle, #010837ef, #000); /* Fondo oscuro radial */
  color: #fff;
  padding-top: 80px; /* Espacio para header fijo */
}

/* ===== CONTENEDOR GENERAL ===== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ===== HEADER FIJO SUPERIOR ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: radial-gradient(circle, #010837ef, #000); /* Fondo del header */
  padding: 15px 0;
  z-index: 1000; /* Asegura que quede encima */
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.logo {
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
}

/* ===== NAVEGACIÓN ===== */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
}

.nav-actions {
  display: flex;
}

/* ===== BOTONES GENERALES ===== */
.btn {
  display: inline-block;
  padding: 10px 15px;
  text-decoration: none;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  font-weight: 700;
}

.btn-primary {
  background: #3b82f6;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, .5);
}

/* ===== SECCIONES GENERALES ===== */
.section {
  padding: 70px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title p {
  opacity: .8;
}

/* ===== GRID DE PLANES ===== */
.plans-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 300px); /* 3 columnas fijas de 300px */
  justify-content: center;
}

/* ===== TARJETA DE PLAN (ENVOLTORIO) ===== */
.cardleft {
  background: rgba(30,41,59,.7);
  border: 1px solid rgba(59,130,246,.45);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 180px;
  overflow: hidden;
  justify-content: center;
}

.cardleft::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #7a08bc, transparent);
}

/* ===== ETIQUETA DE STOCK DISPONIBLE ===== */
.stock-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.45);
  color: #93c5fd;
}

/* ===== CUERPO DE LA TARJETA ===== */
.card {
  padding: 15px 0 18px;
  text-align: center;
}

.card h3 {
  margin-bottom: 6px;
  font-size: 28px;
  font-weight: 700;
}

.card p {
  opacity: .75;
}

/* ===== PRECIO PRINCIPAL DEL PLAN (1ER <p>) ===== */
.cardleft > p:first-of-type {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 10px 0 18px;
}

.cardleft > p:first-of-type::after {
  font-size: 14px;
  font-weight: 500;
  opacity: .6;
  margin-left: 6px;
}

/* ===== DETALLES DEL PLAN (RAM, CPU, etc) ===== */
.cardleft > p:nth-of-type(n+2) {
  width: 100%;
  max-width: 260px;
  text-align: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 15px;
  font-weight: 600;
  opacity: .9;
}

.cardleft > p:last-of-type {
  border-bottom: none;
}

/* ===== BOTÓN DE LA TARJETA ===== */
.cardleft a.btn {
  margin-top: auto;
  width: 100%;
}

/* ===== FOOTER SIMPLE ===== */
footer {
  background: radial-gradient(circle, #010837ef, #000);
  padding: 30px 0;
  margin-top: 20px;
}

.footer-bottom {
  text-align: center;
  opacity: .8;
}

/* ===== LINKS GENERALES ===== */
a {
  font-size: 16px;
  color: white;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE PARA MÓVIL ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ===== CUADRO GRANDE DE COMPRA ===== */
.big-card {
  width: 100%;
  max-width: 100%;
  padding: 30px;
  gap: 30px;
}

/* ===== DISTRIBUCIÓN INTERNA: INFO A LA IZQUIERDA, FORMULARIO A LA DERECHA ===== */
.big-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
}

/* ===== INFORMACIÓN DEL PRODUCTO ===== */
.big-info h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.big-price {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 8px;
}

.big-price span {
  font-size: 16px;
  opacity: .7;
}

.big-info hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.12);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* ===== FORMULARIO DEL COMPRADOR ===== */
.big-form-box {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 22px;
}

.big-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: none;
  border-radius: 8px;
}

/* ===== BOTÓN DEL FORMULARIO ===== */
.big-footer {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
}

/* ===== RESPONSIVE DEL FORMULARIO ===== */
@media(max-width:900px) {
  .big-body {
    grid-template-columns: 1fr;
  }
  .big-footer {
    justify-content: center;
  }
}
