/* ===========================
   RESET + BASE
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  background: radial-gradient(circle at top, #14000a, #000);
  color: #eee;
}

a {
  text-decoration: none;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ===========================
   TOPBAR
=========================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: linear-gradient(90deg, #120009, #000);
  border-bottom: 2px solid #ff0055;
  box-shadow: 0 0 25px #ff005555;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #ff5a8a;
  text-shadow: 0 0 10px #ff0055;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav-link {
  color: #ddd;
  font-size: 14px;
  transition: .3s;
}

.nav-link:hover {
  color: #ff5a8a;
  text-shadow: 0 0 8px #ff0055;
}

/* ===========================
   MAIN
=========================== */
.main {
  padding: 40px 6vw 80px;
}

.section-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 40px;
  color: #ff6b9a;
  text-shadow: 0 0 12px #ff0055;
}

/* ===========================
   BOTONES
=========================== */
.btn-primary,
.btn-outline {
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .25s;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #ff0055, #c000ff);
  color: #fff;
  box-shadow: 0 0 20px #ff005588;
}

.btn-primary:hover {
  transform: scale(1.07);
}

.btn-outline {
  border: 2px solid #ff0055;
  color: #ff7aa6;
}

.btn-outline:hover {
  background: #ff0055;
  color: #fff;
}

/* ===========================
   AUTH (LOGIN / REGISTER)
=========================== */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: radial-gradient(circle at top, #220010, #050002);
  border-radius: 22px;
  padding: 26px;
  border: 2px solid #ff005555;
  box-shadow: 0 0 35px #ff005588;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 18px;
  color: #ff6b9a;
}

.auth-card input {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #14000a;
  color: #fff;
}

/* ===========================
   PRODUCTOS
=========================== */
.productos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.product-card {
  background: radial-gradient(circle at top, #220010, #050002);
  border-radius: 22px;
  border: 2px solid #ff005533;
  box-shadow: 0 0 30px #ff005555;
  overflow: hidden;
  transition: .3s;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.03);
}

.card-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  color: #ff6b9a;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13px;
  opacity: .9;
  margin-bottom: 12px;
}

.prices span {
  display: block;
  font-size: 14px;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* ===========================
   PAGOS
=========================== */
.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  justify-items: center;
}

.ref-card.payment-btn {
  width: 100%;
  max-width: 260px;
  background: radial-gradient(circle at top, #240012, #050002);
  border-radius: 22px;
  padding: 18px;
  border: 2px solid #ff005533;
  box-shadow: 0 0 25px #ff005577;
  cursor: pointer;
  transition: .3s;
  text-align: center;
}

.ref-card.payment-btn:hover {
  transform: translateY(-10px) scale(1.07);
  box-shadow: 0 0 45px #ff0088;
}

.ref-card.payment-btn img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 12px;
}

.ref-card h3 {
  color: #ff6b9a;
}

.ref-card p {
  font-size: 13px;
}

/* ===========================
   REFERENCIAS
=========================== */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.refs-grid .ref-card {
  background: radial-gradient(circle at top, #240012, #050002);
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid #ff005533;
}

.refs-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ===========================
   CONTACTO
=========================== */
.contact-panel {
  max-width: 520px;
  margin: auto;
  text-align: center;
  background: radial-gradient(circle at top, #240012, #050002);
  border-radius: 24px;
  padding: 28px;
  border: 2px solid #ff005555;
  box-shadow: 0 0 35px #ff005588;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}

/* ===========================
   MODAL
=========================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: radial-gradient(circle at top, #260013, #060002);
  border-radius: 24px;
  padding: 24px;
  width: 360px;
  border: 2px solid #ff005555;
  box-shadow: 0 0 40px #ff0088;
  animation: pop .3s ease;
}

.modal-close {
  background: none;
  border: none;
  color: #ff5a8a;
  font-size: 22px;
  float: right;
  cursor: pointer;
}

@keyframes pop {
  from {
    transform: scale(.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===========================
   RESPONSIVE
=========================== */
@media(max-width:600px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px #ff2aff55;
  }

  50% {
    box-shadow: 0 0 25px #ff2affaa;
  }

  100% {
    box-shadow: 0 0 10px #ff2aff55;
  }
}

/* =========================
   FIX QR Y MODAL 🔥
========================= */

/* Modal centrado real */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Caja del modal */
#modalBody {
  max-width: 360px;
  width: 90%;
  background: #0b0b0f;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 25px #ff00cc;
  overflow: hidden;
}

/* Contenedor del QR */
.qr-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

/* QR controlado */
.qr-img {
  width: 100%;
  max-width: 230px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 0, 200, .6);
}

/* Evita que imágenes rompan el modal */
#modalBody img {
  max-width: 100%;
}

.productos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  padding: 20px;
}

.product-card {
  background: linear-gradient(145deg, #120015, #1a001f);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(255, 0, 200, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 0, 200, .25), transparent);
  opacity: 0;
  transition: opacity .4s;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 45px rgba(255, 0, 200, 0.6);
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 2px solid #ff2bdc;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  color: #ff2bdc;
  margin-bottom: 8px;
  font-size: 20px;
  text-shadow: 0 0 8px #ff2bdc;
}

.card-desc {
  font-size: 14px;
  color: #d6c6ff;
  min-height: 60px;
}

.prices span {
  display: block;
  font-size: 14px;
  margin-top: 4px;
  color: #fff;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-primary {
  flex: 1;
  background: linear-gradient(135deg, #ff00cc, #7928ca);
  border: none;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: transform .25s, box-shadow .25s;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ff2bdc;
}

.btn-outline {
  flex: 1;
  background: transparent;
  border: 2px solid #ff2bdc;
  color: #ff2bdc;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.btn-outline:hover {
  background: #ff2bdc;
  color: #000;
}

/* ANIMACIÓN ENTRADA GAMER 🔥 */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: all 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================
   ANIMACIONES INTERACCIÓN 🔥
========================= */

/* Hover */
.product-card {
  transition: transform .35s ease, box-shadow .35s ease;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 0 45px rgba(255, 0, 200, 0.7);
}

/* Click efecto */
.product-card.clicked {
  animation: clickBounce .35s ease;
}

@keyframes clickBounce {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(.94) rotate(-1deg);
  }

  70% {
    transform: scale(1.06) rotate(1deg);
  }

  100% {
    transform: scale(1);
  }
}

.hidden {
  display: none !important;
  pointer-events: none !important;
}

/* =========================
   FIX PRODUCTOS ORDENADOS 🔥
========================= */

/* Forzar tarjetas parejas */
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

/* Imagen fija */
.card-media img {
  height: 190px;
  object-fit: cover;
}

/* El cuerpo ocupa espacio */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Texto controlado */
.card-desc {
  flex-grow: 1;
  line-height: 1.4;
  margin-bottom: 10px;
}

/* Precios ordenados */
.prices {
  margin-top: 6px;
}

/* BOTONES SIEMPRE ABAJO */
.card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

/* =========================
   EFECTO MÁS LLAMATIVO 🔥
========================= */

/* Glow animado */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 0, 200, 0.25),
      transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.product-card:hover::after {
  opacity: 1;
}

/* Hover más pro */
.product-card:hover {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 0 55px rgba(255, 0, 200, 0.7);
}

/* =========================
   PRODUCTOS PRO CUADRADOS 🔥
========================= */

.productos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

/* Card uniforme */
.product-card {
  background: linear-gradient(160deg, #140015, #24001f);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 0, 200, .35);
  display: flex;
  flex-direction: column;
  transition: .35s;
}

/* Hover pro */
.product-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 55px rgba(255, 0, 200, .7);
}

/* Imagen */
.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Contenido */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  color: #ff3fdc;
  margin-bottom: 6px;
  text-shadow: 0 0 8px #ff00cc;
}

.card-desc {
  font-size: 14px;
  color: #ddd;
  flex-grow: 1;
  margin-bottom: 10px;
}

/* Precios */
.prices span {
  font-size: 15px;
  color: #fff;
}

/* Botones abajo siempre */
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* ===== GRID PRO ===== */
.productos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  padding: 30px 0;
}

/* ===== CARD DIOS ===== */
.product-card {
  background: linear-gradient(160deg, #120013, #1a001f);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(194, 0, 255, .25);
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 45px rgba(194, 0, 255, .6);
}

/* ===== IMAGEN ===== */
.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ===== CUERPO ===== */
.card-body {
  padding: 18px;
}

.card-body h3 {
  color: #ff4dff;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: #ddd;
  line-height: 1.4;
}

/* ===== PRECIOS ===== */
.prices {
  margin: 14px 0;
  display: grid;
  gap: 4px;
  font-size: 14px;
}

/* ===== BOTONES ===== */
.card-actions {
  display: flex;
  gap: 10px;
}

.card-actions button {
  flex: 1;
  cursor: pointer;
}

/* ===== MODAL FIX (CLICK BUG) ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #160018;
  padding: 22px;
  border-radius: 18px;
  max-width: 420px;
  width: 92%;
  box-shadow: 0 0 40px #c200ff;
  animation: modalIn .3s ease;
}

@keyframes modalIn {
  from {
    transform: scale(.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* =========================
   DISCORD FLOAT (SOLO CONTACTO)
========================= */

.discord-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #5865F2, #404EED);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 0 18px rgba(88, 101, 242, .8);
  z-index: 9999;
  transition: transform .3s ease, box-shadow .3s ease;
  animation: discordPulse 2s infinite;
}

.discord-float:hover {
  transform: scale(1.15);
  box-shadow: 0 0 35px rgba(88, 101, 242, 1);
}

@keyframes discordPulse {
  0% {
    box-shadow: 0 0 12px rgba(88, 101, 242, .6);
  }

  50% {
    box-shadow: 0 0 30px rgba(88, 101, 242, 1);
  }

  100% {
    box-shadow: 0 0 12px rgba(88, 101, 242, .6);
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #111;
  border: 1px solid #ff0055;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #ff0055;
}

.card h3 {
  color: #fff;
}

.card p {
  color: #aaa;
}

/* NEON */
.neon {
  color: #ff0055;
  text-shadow: 0 0 5px #ff0055, 0 0 20px #ff0055;
}

.neon-border {
  box-shadow: 0 0 10px #ff0055;
}

.card {
  background: #111;
  border: 1px solid #ff0055;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition: .3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px #ff0055;
}

/* PREMIUM */
.lock {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #ff0055;
  font-weight: bold;
}

.locked {
  filter: blur(2px);
}

.locked button {
  filter: none;
}

/* BOTON */
.btn-buy {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  border: none;
  background: #ff0055;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.btn-buy:hover {
  box-shadow: 0 0 15px #ff0055;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.neon-card {
  background: #120012;
  border: 1px solid #ff0055;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 0 20px rgba(255, 0, 85, .3);
  transition: .3s;
}

.neon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px #ff0055;
}

.neon-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.neon-card h3 {
  color: #ff4f9a;
}

.neon-card p {
  color: #ccc;
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

.btn.buy {
  background: #ff0055;
}

.btn.ws {
  background: #25D366;
}

.btn.group {
  background: #128C7E;
}

.btn.dc {
  background: #5865F2;
}

.btn:hover {
  box-shadow: 0 0 15px currentColor;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  width: 90%;
  max-width: 700px;
  padding: 25px;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  font-size: 20px;
  color: #ff0055;
}

.pay-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.pay-box {
  background: #0d0d0d;
  border: 1px solid #ff0055;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
}

.pay-box img {
  width: 200px;
  margin: 10px auto;
  display: block;
}

@media(max-width:600px) {
  .pay-options {
    grid-template-columns: 1fr;
  }
}

.single-card {
  background: #120012;
  border: 1px solid #ff0055;
  border-radius: 15px;
  padding: 25px;
  max-width: 700px;
  margin: 0 auto 40px;
  box-shadow: 0 0 25px rgba(255, 0, 85, .4);
}

.actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.buy {
  background: #ff0055;
}

.ws {
  background: #25D366;
}

.group {
  background: #128C7E;
}

.dc {
  background: #5865F2;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: #0d0d0d;
  border: 1px solid #ff0055;
  border-radius: 15px;
  padding: 25px;
  width: 90%;
  max-width: 600px;
  text-align: center;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
  color: #ff0055;
}

.pay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.pay-grid img {
  width: 200px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 9999;
  /* 🔥 MUY IMPORTANTE */
  border-bottom: 1px solid #ff0077;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(90deg, #000, #05050a, #000);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid #ff0077;
  z-index: 9999;
}

.logo {
  color: #ff0077;
  font-weight: 900;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.nav a:hover {
  color: #ff0077;
}

.nav a.active {
  color: #ff0077;
  text-shadow: 0 0 8px #ff0077;
}

/* espacio para navbar */
.main {
  padding-top: 120px;
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 40px auto;
}

.pay-card {
  background: linear-gradient(145deg, #120015, #1b001f);
  border: 1px solid #ff0077;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 0 30px #ff007755;
  transition: 0.3s;
}

.pay-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 45px #ff0077aa;
}

.pay-card img {
  width: 120px;
  margin-bottom: 15px;
}

.pay-card h3 {
  color: #ff4fa3;
  margin: 10px 0 5px;
}

.pay-card p {
  color: #ccc;
  font-size: 14px;
}

/* ===============================
   GRID MÉTODOS DE PAGO
   NO ROMPE NADA EXISTENTE
================================ */

.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

/* Usa tus ref-card sin modificar HTML */
.ref-card {
  background: linear-gradient(145deg, #120015, #1b001f);
  border: 1px solid #ff0077;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 0 25px #ff007744;
  cursor: pointer;
  transition: 0.3s;
}

.ref-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 40px #ff0077aa;
}

.ref-card img {
  width: 110px;
  height: auto;
  margin-bottom: 12px;
  border-radius: 14px;
}

.ref-card h3 {
  color: #ff4fa3;
  margin: 8px 0 5px;
}

.ref-card p {
  color: #ccc;
  font-size: 14px;
}

/* ===============================
   MODAL (por si no estaba)
================================ */
.modal {
  position: fixed;
  inset: 0;
  background: #000000cc;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #0f0f15;
  border: 1px solid #ff0077;
  border-radius: 20px;
  padding: 25px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 0 35px #ff0077;
  position: relative;
}

.modal-content h3 {
  color: #ff4fa3;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #ff4fa3;
  font-size: 20px;
  cursor: pointer;
}

/* Botón modal */
.btn-primary {
  display: block;
  margin-top: 15px;
  padding: 12px;
  background: #ff0077;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
}

/* GRID CUADRADO */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

/* CAJA NEON */
.project-box {
  background: linear-gradient(145deg, #120015, #1b001f);
  border: 2px solid #ff0077;
  border-radius: 22px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 0 25px #ff007744;
  transition: 0.35s;
  cursor: pointer;
  position: relative;
}

/* GLOW HOVER */
.project-box:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 0 25px #ff0077,
    0 0 60px #ff0077aa;
}

/* CLICK EFFECT */
.project-box:active {
  box-shadow:
    0 0 40px #ff4fa3,
    0 0 90px #ff0077;
}

/* IMAGEN */
.project-box img {
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  margin-bottom: 15px;
}

/* TEXTO */
.project-box h3 {
  color: #ff4fa3;
  margin-bottom: 8px;
}

.project-box p {
  color: #ccc;
  font-size: 14px;
}

/* BOTONES */
.box-buttons {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.box-btn {
  padding: 12px 22px;
  border: none;
  border-radius: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s;
}

.box-btn.buy {
  background: #ff005d;
  color: #fff;
}

.box-btn.contact {
  background: #08ff6b;
  color: #000;
}

.box-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px currentColor;
}

/* ===========================
   FIX: BOTONES CLICKEABLES
=========================== */
.product-card {
  position: relative;
}

.product-card::before,
.product-card::after {
  pointer-events: none !important;
}

.card-body {
  position: relative;
  z-index: 10;
}

.card-actions {
  position: relative;
  z-index: 100;
}

.card-actions button,
.card-actions select,
.product-card select {
  position: relative;
  z-index: 100;
  pointer-events: auto !important;
  cursor: pointer;
}

/* ===========================
   PROYECTOS Y REFERENCIAS MEJORADOS
=========================== */
.proyectos-grid,
.referencias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.proyecto-card,
.referencia-card {
  background: linear-gradient(145deg, #1a0020, #0d000f);
  border: 2px solid #ff005555;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.proyecto-card:hover,
.referencia-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 40px rgba(255, 0, 150, 0.6);
}

.proyecto-card img,
.referencia-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.proyecto-card .card-content,
.referencia-card .card-content {
  padding: 20px;
  text-align: center;
}

.proyecto-card h3,
.referencia-card h3 {
  color: #ff6b9a;
  margin-bottom: 10px;
}

.proyecto-card p,
.referencia-card p {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 15px;
}

.proyecto-card .card-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ===========================
   ADMIN TABS
=========================== */
.admin-tab {
  padding: 12px 20px;
  border: 2px solid #ff005555;
  background: transparent;
  color: #ff6b9a;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.admin-tab:hover {
  background: #ff005522;
}

.admin-tab.active {
  background: linear-gradient(135deg, #ff0055, #c000ff);
  color: #fff;
  border-color: #ff0055;
}

/* ===========================
   HEADER - SALDO Y CARRITO
=========================== */
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-saldo {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981, #059669);
  padding: 6px 12px;
  border-radius: 20px;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s;
}

.header-saldo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #10b981;
}

.saldo-icon {
  font-size: 16px;
}

.saldo-amount {
  font-weight: 700;
}

.header-cart {
  position: relative;
  color: #ff6b9a;
  font-size: 18px;
  text-decoration: none;
  padding: 8px;
  transition: all 0.3s;
}

.header-cart:hover {
  color: #ff0055;
  transform: scale(1.1);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ff0055;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0a000d, #1a0020);
  border-bottom: 2px solid #ff005544;
}

/* ===========================
   SISTEMA DE SOPORTE / TICKETS
=========================== */

/* Lista de tickets */
.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 700px;
  margin: 0 auto;
}

.ticket-item {
  background: linear-gradient(145deg, #1a0020, #0d000f);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #ff005544;
  transition: all 0.3s ease;
}

.ticket-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(255, 0, 85, 0.3);
  border-color: #ff0055;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ticket-numero {
  font-family: monospace;
  color: #ff6b9a;
  font-weight: bold;
  font-size: 14px;
}

.ticket-estado {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.ticket-asunto {
  color: #fff;
  margin: 0 0 10px 0;
  font-size: 16px;
}

.ticket-meta {
  color: #888;
  font-size: 12px;
}

/* Chat container */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(145deg, #0d000f, #1a0020);
  border-radius: 20px;
  border: 2px solid #ff005544;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #1a0020, #2d0036);
  border-bottom: 1px solid #ff005544;
}

.chat-back {
  background: none;
  border: none;
  color: #ff6b9a;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s;
}

.chat-back:hover {
  background: rgba(255, 0, 85, 0.2);
}

.chat-info {
  flex: 1;
}

.chat-numero {
  display: block;
  font-family: monospace;
  color: #ff6b9a;
  font-size: 12px;
  margin-bottom: 2px;
}

.chat-asunto {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.chat-estado {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  max-width: 80%;
}

.chat-message.mensaje-mio {
  align-self: flex-end;
}

.chat-message.mensaje-otro {
  align-self: flex-start;
}

.mensaje-burbuja {
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 100%;
}

.mensaje-mio .mensaje-burbuja {
  background: linear-gradient(135deg, #ff0055, #c000ff);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.mensaje-otro .mensaje-burbuja {
  background: #2d0036;
  color: #fff;
  border-bottom-left-radius: 4px;
  border: 1px solid #ff005544;
}

.mensaje-burbuja p {
  margin: 0 0 6px 0;
  line-height: 1.4;
  word-wrap: break-word;
}

.mensaje-hora {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  text-align: right;
}

/* Chat input */
.chat-input-container {
  padding: 15px 20px;
  background: linear-gradient(135deg, #1a0020, #0d000f);
  border-top: 1px solid #ff005544;
}

.chat-form {
  display: flex;
  gap: 12px;
}

.chat-form input {
  flex: 1;
  padding: 14px 18px;
  background: #0a000d;
  border: 2px solid #ff005544;
  border-radius: 25px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.chat-form input:focus {
  border-color: #ff0055;
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
}

.chat-form button {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff0055, #c000ff);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
}

.chat-form button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
}

/* Modal de soporte */
.soporte-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.soporte-modal-content {
  background: linear-gradient(145deg, #1a0020, #0d000f);
  border-radius: 20px;
  padding: 30px;
  max-width: 450px;
  width: 100%;
  border: 2px solid #ff0055;
  box-shadow: 0 0 40px rgba(255, 0, 85, 0.4);
  animation: modalIn 0.3s ease;
}

.soporte-modal-content h3 {
  color: #ff6b9a;
  margin: 0 0 25px 0;
  text-align: center;
  font-size: 22px;
}

/* Admin tickets */
.admin-tickets-list {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 10px;
}

.admin-ticket-item {
  transition: all 0.3s ease;
}

.admin-ticket-item:hover {
  transform: translateX(5px);
  border-color: #ff0055 !important;
}

/* Scrollbar personalizado para chat */
.chat-messages::-webkit-scrollbar,
.admin-tickets-list::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track,
.admin-tickets-list::-webkit-scrollbar-track {
  background: #0a000d;
}

.chat-messages::-webkit-scrollbar-thumb,
.admin-tickets-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff0055, #c000ff);
  border-radius: 10px;
}

/* Badge de soporte en nav */
.soporte-badge {
  position: relative;
}

.soporte-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -12px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.soporte-badge[data-count="0"]::after {
  display: none;
}

/* Responsive */
@media (max-width: 600px) {
  .chat-container {
    height: calc(100vh - 140px);
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .chat-message {
    max-width: 90%;
  }

  .chat-header {
    padding: 12px 15px;
  }

  .ticket-item {
    padding: 15px;
  }
}

/* =========================
   MOBILE RESPONSIVE - ANDROID/IPHONE 📱
========================= */
@media (max-width: 768px) {

  /* Header / Topbar */
  .topbar {
    flex-direction: column;
    padding: 12px 15px;
    gap: 10px;
  }

  .header-left {
    flex-direction: column !important;
    width: 100%;
    gap: 10px;
  }

  .logo {
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
  }

  .logo img {
    height: 28px !important;
  }

  .header-actions {
    justify-content: center !important;
    gap: 15px;
  }

  /* Navigation */
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .nav a {
    font-size: 12px;
    padding: 6px 10px;
    background: rgba(255, 0, 85, 0.1);
    border-radius: 8px;
  }

  /* Main Content */
  .main {
    padding: 20px 15px 60px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 25px;
  }

  /* Product Cards */
  .productos-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px 0;
  }

  .product-card {
    min-height: auto;
  }

  .card-media img {
    height: 160px;
  }

  .card-body {
    padding: 14px;
  }

  .card-body h3 {
    font-size: 18px;
  }

  .card-desc {
    font-size: 13px;
    min-height: auto;
  }

  .prices span {
    font-size: 13px;
  }

  .card-actions {
    flex-direction: column;
    gap: 8px;
  }

  .card-actions button,
  .card-actions .btn-primary,
  .card-actions .btn-outline {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  /* Payment Grid */
  .pay-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .ref-card.payment-btn {
    max-width: 100%;
    padding: 12px;
  }

  .ref-card.payment-btn img {
    height: 80px;
  }

  .ref-card h3 {
    font-size: 14px;
  }

  .ref-card p {
    font-size: 11px;
  }

  /* Modal */
  .modal-content,
  #modalBody {
    width: 95%;
    max-width: 100%;
    padding: 15px;
    border-radius: 14px;
  }

  /* User badges */
  .user-name-badge {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  /* Admin tabs */
  .admin-tabs {
    flex-wrap: wrap;
    gap: 8px !important;
  }

  .admin-tab {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Team page */
  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Referencias grid */
  .refs-grid,
  .referencias-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Proyectos grid */
  .proyectos-grid,
  .project-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Contact panel */
  .contact-panel {
    padding: 20px 15px;
  }

  /* Auth cards */
  .auth-card {
    padding: 20px 15px;
    margin: 10px;
  }

  /* Select dropdowns */
  select {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .logo {
    font-size: 14px;
  }

  .logo img {
    height: 24px !important;
  }

  .nav a {
    font-size: 11px;
    padding: 5px 8px;
  }

  .section-title {
    font-size: 18px;
  }

  .card-media img {
    height: 140px;
  }

  .pay-grid {
    grid-template-columns: 1fr;
  }

  .ref-card.payment-btn img {
    height: 100px;
  }

  /* Header saldo/cart */
  .header-saldo,
  .header-cart {
    font-size: 12px;
    padding: 6px 10px;
  }

  .saldo-amount {
    font-size: 12px;
  }
}