:root{
  --bg:#020617;
  --bg2:#020617;
  --card:#0f172a;
  --blue:#38bdf8;
  --blue2:#2563eb;
  --orange:#f97316;
  --green:#22c55e;
  --red:#ef4444;
  --text:#e5e7eb;
  --muted:#94a3b8;
}

*{margin:0;padding:0;box-sizing:border-box;font-family:'Inter',Segoe UI}

body{
  background:radial-gradient(circle at top,#0f172a,#020617);
  color:var(--text);
}

a{text-decoration:none;color:inherit}

/* LAYOUT */
.layout{
  display:grid;
  grid-template-columns:260px 1fr;
  min-height:100vh;
}

/* SIDEBAR */
.sidebar{
  background:#020617;
  padding:30px 20px;
  border-right:1px solid #1e293b;
}
.sidebar img{
  width:170px;
  margin-bottom:40px;
}
.sidebar a{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border-radius:14px;
  color:var(--muted);
  margin-bottom:6px;
  transition:.3s;
}
.sidebar a:hover,
.sidebar a.active{
  background:linear-gradient(135deg,#0f172a,#020617);
  color:var(--blue);
  box-shadow:0 0 20px rgba(56,189,248,.2);
}

/* TOPBAR */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:30px;
}
.balance{
  background:linear-gradient(135deg,var(--blue2),var(--blue));
  padding:12px 20px;
  border-radius:14px;
  font-weight:600;
}

/* CARDS */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:24px;
}
.card{
  background:var(--card);
  padding:26px;
  border-radius:22px;
  box-shadow:0 0 60px rgba(56,189,248,.12);
  transition:.4s;
}
.card:hover{
  transform:translateY(-6px);
  box-shadow:0 0 80px rgba(56,189,248,.25);
}

/* BUTTONS */
.btn{
  padding:14px 22px;
  border-radius:14px;
  border:none;
  cursor:pointer;
  font-weight:600;
}
.btn-primary{
  background:linear-gradient(135deg,var(--blue2),var(--blue));
}
.btn-orange{
  background:linear-gradient(135deg,#fb923c,var(--orange));
  color:#020617;
}
.btn-disabled{
  background:#1e293b;
  cursor:not-allowed;
  opacity:.6;
}

/* STATUS */
.badge{
  padding:6px 12px;
  border-radius:999px;
  font-size:.75rem;
}
.badge.green{background:rgba(34,197,94,.15);color:var(--green)}
.badge.red{background:rgba(239,68,68,.15);color:var(--red)}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 20px;
}

.hero-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
}

.hero-logo {
  width: 240px;
  margin-bottom: 30px;
}

.hero-content h1 {
  font-size: 3.6rem;
  line-height: 1.05;
}

.hero-content h1 span {
  color: #f97316;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 20px 0 30px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 25px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.hero-badges {
  display: flex;
  gap: 14px;
  font-size: .9rem;
  color: #94a3b8;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 18px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}

.feature-card img {
  width: 56px;
}

.feature-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: .9rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
}

/* ========================= */
/* HERO (ya lo usas) */
/* ========================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 20px;
}

.hero-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
}

.hero-logo {
  width: 240px;
  margin-bottom: 30px;
}

.hero-content h1 {
  font-size: 3.6rem;
  line-height: 1.05;
}

.hero-content h1 span {
  color: #f97316;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 20px 0 30px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 25px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.hero-badges {
  display: flex;
  gap: 14px;
  font-size: .9rem;
  color: #94a3b8;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 18px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}

.feature-card img {
  width: 56px;
}

.feature-card h3 {
  margin: 0 0 4px;
}

.feature-card p {
  margin: 0;
  font-size: .9rem;
  color: #94a3b8;
}

/* ========================= */
/* COMO FUNCIONA */
/* ========================= */
.how-it-works {
  padding: 100px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.section-title span {
  color: #f97316;
}

.section-subtitle {
  color: #94a3b8;
  margin-bottom: 60px;
  font-size: 1.05rem;
}

.steps-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.step-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 40px 30px;
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #f97316;
  color: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* ========================= */
/* SERVICIOS DISPONIBLES */
/* ========================= */
.services-available {
  padding: 80px 20px 120px;
  text-align: center;
}

.services-grid {
  max-width: 1000px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 40px;
  align-items: center;
}

.service-logo {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0,0,0,.45);
}

.service-logo img {
  max-width: 100%;
  max-height: 48px;
  filter: grayscale(100%);
  opacity: .85;
}

.service-logo:hover img {
  filter: none;
  opacity: 1;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
}

/* ========================= */
/* DISTRIBUIDORES */
/* ========================= */
.distributor-section {
  padding: 120px 20px;
  display: flex;
  justify-content: center;
}

.distributor-card {
  max-width: 820px;
  width: 100%;
  background: linear-gradient(145deg, #020617, #020617);
  border: 1px solid #1e293b;
  border-radius: 22px;
  padding: 60px 50px;
  text-align: center;
}

.distributor-card h2 {
  font-size: 2.3rem;
  margin-bottom: 20px;
}

.distributor-card h2 span {
  color: #f97316;
}

.distributor-text {
  color: #94a3b8;
  font-size: 1.05rem;
  margin-bottom: 35px;
}

.distributor-highlight {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 14px;
  font-size: 1rem;
}

.distributor-highlight.alt {
  border-color: #f97316;
}

.btn-whatsapp {
  margin-top: 30px;
  background: #25d366;
  color: #020617;
  border: none;
  font-weight: bold;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}
/* Espacio extra entre cliente final y botón WhatsApp */
.distributor-highlight.alt {
  margin-bottom: 32px; /* antes estaba muy pegado */
}
/* ========================= */
/* AUTH REGISTER GAMER */
/* ========================= */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #020617, #000);
  padding: 40px 40px;
}

.auth-card {
  width: 100%;
  max-width: 560px;
  background: #020617;
  border-radius: 22px;
  padding: 20px 45px; /* ⬅️ antes 45px */
  position: relative;
  z-index: 1;
}


/* ========================= */
/* RGB BORDE REAL DEL FORM */
/* ========================= */
.rgb-border {
  position: relative;
  border-radius: 22px;
  background: #020617;
}

.rgb-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px; /* grosor del borde */
  border-radius: 22px;

  background: linear-gradient(
    120deg,
    #ff004c,
    #ff9f00,
    #00ffcc,
    #5b8cff,
    #c77dff,
    #ff004c
  );
  background-size: 300% 300%;
  animation: rgbMove 8s linear infinite;

  /* MAGIA PRO (recorta al borde) */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  pointer-events: none;
}


@keyframes rgbMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* HEADER */
.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header img {
  width: 150px;
  margin-bottom: 18px;
}

.auth-header h2 {
  font-size: 1.9rem;
  margin-bottom: 6px;
}

.auth-header p {
  font-size: .95rem;
  color: #94a3b8;
}

/* INPUTS FLOATING */
.input-group {
  position: relative;
  margin-bottom: 22px;
}

.input-group input {
  width: 100%;
  padding: 14px 14px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  color: #e5e7eb;
  font-size: .95rem;
}

.input-group label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: .85rem;
  pointer-events: none;
  transition: .2s ease;
  background: #020617;
  padding: 0 6px;
}

.input-group input:focus,
.input-group input:valid {
  border-color: #f97316;
}

.input-group input:focus + label,
.input-group input:valid + label {
  top: -7px;
  font-size: .7rem;
  color: #f97316;
}

/* BUTTON */
.btn-auth {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  font-size: 1rem;
}

/* ALERTS */
.alert {
  padding: 14px;
  border-radius: 12px;
  font-size: .9rem;
  text-align: center;
  margin-bottom: 20px;
}

.alert-error {
  background: #3f1d1d;
  color: #fecaca;
}

.alert-success {
  background: #0f3d2e;
  color: #86efac;
}

/* FOOTER */
.auth-footer {
  margin-top: 26px;
  text-align: center;
  font-size: .9rem;
  color: #94a3b8;
}

.auth-footer a {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}
/* ========================= */
/* PASSWORD EYE FIX */
/* ========================= */
.password-group input {
  padding-right: 42px; /* espacio para el ojito */
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.05rem;
  color: #ffffff;
  opacity: .85;
  line-height: 1;
}

.toggle-password:hover {
  opacity: 1;
}

.badge {
  background:#020617;
  border:1px solid #1e293b;
  padding:4px 10px;
  border-radius:999px;
  font-size:.75rem;
  color:#e5e7eb;
}

.btn-sm {
  padding:6px 10px;
  font-size:.8rem;
}

.btn-warning {
  background:#facc15;
  color:#000;
}

.btn-danger {
  background:#ef4444;
}
/* ========================= */
/* LAYOUT FINAL CORRECTO */
/* ========================= */

html, body{
  height:100%;
  overflow:hidden;
}

.layout{
  display:flex;
  height:100vh;
  width:100%;
}

/* SIDEBAR */
.sidebar{
  position:fixed;
  top:0;
  left:0;
  width:260px;
  height:100vh;
  background:#020617;
  border-right:1px solid #1e293b;
  display:flex;
  flex-direction:column;
  overflow-y:auto;
  z-index:100;
}

/* CONTENIDO */
.container{
  margin-left:260px;
  flex:1;
  height:100vh;
  overflow-y:auto;
  padding:30px;
}

/* MOBILE */
@media(max-width:768px){

  .sidebar{
    transform:translateX(-100%);
    transition:transform .3s ease;
    z-index:1000; /* 🔥 MÁS ALTO */
  }

  .sidebar.open{
    transform:translateX(0);
  }

  .sidebar-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:900; /* 🔥 MENOR que sidebar */
    display:none;
  }

  .sidebar-overlay.show{
    display:block;
  }
}

/* ========================= */
/* SIDEBAR MOBILE FLOATING */
/* ========================= */

.sidebar-fab{
  display:none;
}

.sidebar-overlay{
  display:none;
}

@media(max-width:768px){

  .sidebar-fab{
    display:flex;
    align-items:center;
    justify-content:center;
    position:fixed;
    bottom:20px;
    left:20px;
    width:56px;
    height:56px;
    border-radius:50%;
    background:linear-gradient(135deg,#2563eb,#38bdf8);
    color:#fff;
    font-size:22px;
    border:none;
    cursor:pointer;
    z-index:999;
    box-shadow:0 10px 25px rgba(0,0,0,.4);
  }

  .sidebar{
    transform:translateX(-100%);
    transition:transform .3s ease;
  }

  .sidebar.open{
    transform:translateX(0);
  }

  .sidebar-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:998;
  }

  .sidebar-overlay.show{
    display:block;
  }
}
/* ========================= */
/* FIX SIDEBAR MOBILE LAYOUT */
/* ========================= */

@media(max-width:768px){

  /* El sidebar ya no empuja contenido */
  .container{
    margin-left:0 !important;
    width:100%;
  }

  /* Sidebar flotante */
  .sidebar{
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    width:260px;
    transform:translateX(-100%);
    transition:transform .3s ease;
    z-index:1000;
  }

  .sidebar.open{
    transform:translateX(0);
  }
}



/* ========================= */
/* TIENDA RESPONSIVE */
/* ========================= */

/* FILTROS */
.filters-box{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
}

.filters-box input,
.filters-box select{
  flex:1;
  min-width:180px;
}

.stock-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
}

/* GRID SERVICIOS */
#gridServicios{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:24px;
}

/* CARD SERVICIO */
.servicio-card img{
  max-width:100%;
  height:auto;
}

.servicio-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  height:100%;
}

.servicio-img{
  text-align:center;
  margin-bottom:12px;
}

.servicio-img img{
  max-height:90px;
  object-fit:contain;
}

/* TOPBAR TIENDA */
@media(max-width:768px){

  .topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .filters-box{
    flex-direction:column;
  }

  .filters-box input,
  .filters-box select{
    width:100%;
  }

  #gridServicios{
    grid-template-columns:1fr; /* 👈 1 columna en móvil */
  }

  .card h2{
    font-size:1.3rem;
  }
}

/* TABLET */
@media(min-width:769px) and (max-width:1024px){
  #gridServicios{
    grid-template-columns:repeat(2,1fr);
  }
}
/* ========================= */
/* TABLAS RESPONSIVE (HISTORIAL) */
/* ========================= */

.table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed; /* 🔥 clave */
}

.table th,
.table td{
  padding:10px;
  border-top:1px solid #1e293b;
  text-align:left;
  font-size:.85rem;
  word-wrap:break-word;
  word-break:break-word;
  white-space:normal; /* 🔥 permite saltos */
}

.table td small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:.75rem;
}

/* ===== MOBILE ===== */
@media(max-width:768px){

  .table thead{
    display:none;
  }

  .table tr{
    display:block;
    margin-bottom:16px;
    background:#020617;
    border:1px solid #1e293b;
    border-radius:14px;
    padding:12px;
  }

  .table td{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
    border:none;
    padding:6px 0;
    font-size:.85rem;
  }

  .table td::before{
    content:attr(data-label);
    font-weight:600;
    color:#94a3b8;
    min-width:90px;
    flex-shrink:0;
  }
}
/* ========================= */
/* BOTÓN INSTALAR APP */
/* ========================= */
.install-app-btn{
  display:none;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:14px;
  font-weight:600;
  cursor:pointer;
  background:linear-gradient(135deg,#2563eb,#38bdf8);
  color:#fff;
  border:none;
  box-shadow:0 0 25px rgba(56,189,248,.35);
  transition:.25s;
}

.install-app-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 0 40px rgba(56,189,248,.6);
}

.install-app-btn span{
  font-size:1.2rem;
}
/* ========================= */
/* DASHBOARD CTA */
/* ========================= */

.dashboard-cta{
  margin-top:40px;
  text-align:center;
}

.dashboard-cta p{
  max-width:520px;
  margin:12px auto 26px;
  color:var(--muted);
  line-height:1.5;
}

/* BOTÓN GRANDE */
.btn-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  max-width:360px;
  margin:0 auto;
  padding:18px 26px;
  font-size:1.05rem;
  border-radius:18px;
  box-shadow:0 0 40px rgba(249,115,22,.35);
}

/* MOBILE: todavía más protagonista */
@media(max-width:768px){
  .btn-cta{
    font-size:1.1rem;
    padding:20px 28px;
  }
}
/* ========================= */
/* BANNER RESELLER */
/* ========================= */
.reseller-banner{
  margin-top:40px;
  background:linear-gradient(135deg,#020617,#0f172a);
  border:1px solid #1e293b;
}

.reseller-content{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.reseller-content h3{
  font-size:1.3rem;
}

.reseller-content p{
  color:#94a3b8;
  line-height:1.5;
}

.reseller-btn{
  width:fit-content;
}

/* MOBILE */
@media(max-width:768px){
  .reseller-btn{
    width:100%;
    text-align:center;
  }
}
/* ========================= */
/* COMPARADOR DE PRECIOS */
/* ========================= */

.price-compare{
  margin-top:40px;
}

.price-compare h3{
  margin-bottom:6px;
}

.price-compare .muted{
  color:var(--muted);
  margin-bottom:20px;
}

.compare-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-bottom:24px;
}

.compare-item{
  background:#020617;
  border:1px solid #1e293b;
  border-radius:16px;
  padding:16px;
}

.compare-item strong{
  display:block;
  margin-bottom:8px;
}

.prices{
  display:flex;
  justify-content:space-between;
  margin-bottom:6px;
}

.prices .client{
  text-decoration:line-through;
  color:#ef4444;
  font-size:.9rem;
}

.prices .reseller{
  color:#22c55e;
  font-weight:700;
}

.compare-item small{
  color:#94a3b8;
  font-size:.8rem;
}

.price-cta{
  width:fit-content;
}

/* MOBILE */
@media(max-width:768px){
  .price-cta{
    width:100%;
    text-align:center;
  }
}



/* ===== TABLA CUENTAS ===== */
.table-cuentas {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-cuentas th {
  background: #0f172a;
  color: #e5e7eb;
  text-align: left;
  padding: 12px;
  font-weight: 600;
}

.table-cuentas td {
  padding: 10px 12px;
  border-top: 1px solid #1e293b;
  vertical-align: middle;
}

.table-cuentas tr:hover {
  background: #020617;
}

/* ===== FILAS ===== */
/* ===== FILAS VENDIDAS (SUPER VISIBLES) ===== */
.tr-vendida {
  background: rgba(234, 179, 8, 0.35); /* amarillo fuerte con transparencia */
  border-left: 6px solid #eab308;     /* línea amarilla potente */
}

.tr-vendida:hover {
  background: rgba(234, 179, 8, 0.55);
}


/* ===== BADGES ===== */
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.badge-disponible {
  background: #dcfce7;
  color: #166534;
}

.badge-vendida {
  background: #fee2e2;
  color: #991b1b;
}

/* ===== ACCIONES ===== */
.acciones a {
  margin-right: 8px;
  text-decoration: none;
  font-size: 16px;
}

.acciones a:hover {
  opacity: 0.7;
}



.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-row {
  display: flex;
}

.chat-row.admin {
  justify-content: flex-end;
}

.chat-row.cliente {
  justify-content: flex-start;
}

.bubble {
  max-width: 65%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
}

.chat-row.admin .bubble {
  background: #2563eb;
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-row.cliente .bubble {
  background: #1f2933;
  color: #e5e7eb;
  border-bottom-left-radius: 4px;
}

.bubble-author {
  font-weight: bold;
  font-size: 0.7rem;
  opacity: 0.8;
}

.bubble-time {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}

.alert-new {
  background:#facc15;
  color:#000;
  padding:8px;
  border-radius:6px;
  margin-bottom:12px;
  font-weight:bold;
}
.badge-new {
  background: #ef4444;
  color: white;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  margin-left: 8px;
  vertical-align: middle;
}
.visto {
  margin-left: 4px;
  font-size: 0.65rem;
  opacity: 0.8;
}

.chat-row.admin .visto {
  color: #bfdbfe;
}

.chat-row.cliente .visto {
  color: #94a3b8;
}
/* PC: chat más compacto */
.chat-box {
  max-width: 760px;
  margin: 0 auto;
}

/* móvil */
@media (max-width: 768px) {
  .chat-box {
    max-width: 100%;
  }
  .bubble {
    max-width: 90%;
    font-size: 0.95rem;
  }
}
/* ===============================
   CHAT INPUT PRO (WHATSAPP STYLE)
================================ */
.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #020617;
  border-radius: 14px;
  padding: 10px;
  margin: 12px auto 0;
  max-width: 760px;
}

.chat-input textarea {
  flex: 1;
  resize: none;
  background: transparent;
  border: none;
  outline: none;
  color: #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 8px;
  max-height: 120px;
}

.chat-input textarea::placeholder {
  color: #64748b;
}

.chat-input button {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37,99,235,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}

.chat-input button:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 26px rgba(37,99,235,.45);
}

.chat-input button:active {
  transform: scale(.95);
}

/* MOBILE: FIJO ABAJO */
@media (max-width: 768px) {
  .chat-input {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    max-width: 100%;
  }
}
/* ===============================
   FORMULARIOS PRO (ADMIN)
================================ */

.form-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: #94a3b8;
}

/* NOTA */
.note-box textarea {
  width: 100%;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px;
  color: #e5e7eb;
  resize: none;
}

.btn-note {
  margin-top: 10px;
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #020617;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 14px;
  border: none;
  cursor: pointer;
}

/* ESTADO */
.estado-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.estado-row select {
  flex: 1;
  background: #020617;
  border: 1px solid #1e293b;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 8px;
}

.btn-estado {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #020617;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 14px;
  border: none;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .estado-row {
    flex-direction: column;
  }

  .btn-estado {
    width: 100%;
  }
}
/* ===============================
   QUITAR EFECTOS MOLESTOS EN CHAT
================================ */

/* Quitar hover y movimiento en cards del chat */
.chat,
.chat-box,
.chat-box .bubble,
.chat-box .chat-row,
.chat-box .card {
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

/* Quitar hover azul/molesto */
.chat-box:hover,
.chat-box .bubble:hover,
.chat-box .chat-row:hover {
  background: inherit !important;
}

/* Evitar que se mueva todo al pasar el mouse */
.chat-box * {
  transition: none !important;
}

/* Card del chat más limpia */
.chat-box {
  background: transparent;
  border: none;
}

/* Mantener solo las burbujas visibles */
.bubble {
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* IMPORTANTE: cards normales siguen intactas */
.card:not(.chat-box) {
  transition: box-shadow .2s ease, transform .2s ease;
}
/* ===============================
   CONTEXTO DEL REPORTE (ADMIN)
================================ */

.reporte-contexto {
  border-left: 4px solid #38bdf8;
  background: #020617;
}

.contexto-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.contexto-email {
  font-size: 0.8rem;
  color: #94a3b8;
}

.contexto-tags {
  display: flex;
  gap: 6px;
}

.tag {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #e5e7eb;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
}

.contexto-problema {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #e5e7eb;
  margin-top: 6px;
}

/* Adjuntos */
.contexto-fotos {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.contexto-fotos img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

/* Mobile */
@media (max-width: 768px) {
  .contexto-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
/* ===============================
   CONTEXTO REPORTE ADMIN (FULL)
================================ */

.reporte-contexto-admin {
  background: #020617;
  border-left: 4px solid #38bdf8;
}

.reporte-contexto-admin label {
  font-size: 0.75rem;
  color: #94a3b8;
}

.contexto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.contexto-grid > div {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 8px;
  font-size: 0.85rem;
}

.contexto-problema {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.contexto-foto img {
  width: 140px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

.mono {
  font-family: monospace;
  font-size: 0.85rem;
  word-break: break-all;
}

/* Mobile */
@media (max-width: 768px) {
  .contexto-foto img {
    width: 100%;
  }
}
/* ===============================
   TICKET CERRADO (CLIENTE)
=============================== */
.ticket-cerrado-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticket-cerrado-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
}

.ticket-cerrado-box h2 {
  color: #facc15;
  margin-bottom: 12px;
}

.ticket-cerrado-box p {
  opacity: .85;
  margin-bottom: 18px;
}

/* ESTRELLAS */
.stars {
  display: flex;
  justify-content: center;
  flex-direction: row-reverse;
  gap: 8px;
  margin: 14px 0 20px;
}

.stars input {
  display: none;
}

.stars label {
  font-size: 2rem;
  color: #334155;
  cursor: pointer;
  transition: color .2s;
}

.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
  color: #facc15;
}
.badge{
  margin-top:8px;
  display:inline-block;
  padding:6px 12px;
  font-size:.8rem;
  font-weight:700;
  border-radius:999px;
}

.badge-green{
  background:rgba(34,197,94,.15);
  color:#22c55e;
}

.badge-yellow{
  background:rgba(234,179,8,.18);
  color:#facc15;
}

.badge-red{
  background:rgba(239,68,68,.18);
  color:#ef4444;
}
/* ===== BADGES INVITACIÓN ===== */
.badge-invitacion {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:.75rem;
  font-weight:600;
  cursor:default;
}

.badge-enviada {
  background:rgba(34,197,94,.15);
  color:#22c55e;
  border:1px solid rgba(34,197,94,.35);
}

.badge-pendiente {
  background:rgba(250,204,21,.15);
  color:#facc15;
  border:1px solid rgba(250,204,21,.35);
}

/* TOOLTIP */
.tooltip {
  position:relative;
}

.tooltip:hover::after {
  content:attr(data-tooltip);
  position:absolute;
  bottom:120%;
  left:50%;
  transform:translateX(-50%);
  background:#020617;
  color:#e5e7eb;
  padding:10px 12px;
  font-size:.72rem;
  border-radius:8px;
  width:260px;
  text-align:left;
  line-height:1.4;
  box-shadow:0 10px 30px rgba(0,0,0,.6);
  z-index:50;
}

.tooltip:hover::before {
  content:'';
  position:absolute;
  bottom:110%;
  left:50%;
  transform:translateX(-50%);
  border:6px solid transparent;
  border-top-color:#020617;
}

/* TEXTO EDUCATIVO */
.texto-ayuda {
  margin-top:6px;
  font-size:.72rem;
  color:#94a3b8;
  line-height:1.4;
}
body {
  min-height: 100vh;
  overflow-y: auto;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #0f172a;
  padding: 20px;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #0f172a;
  padding: 20px;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
}
/* ============================= */
/* SAM MASCOTA LOGIN (DESKTOP)   */
/* ============================= */

.sam-mascota {
  position: fixed;
  bottom: 5vh;
  right: 4vw;
  height: 85vh;
  max-height: 85vh;     /* 🔒 blindaje */
  min-height: 85vh;     /* 🔒 blindaje */
  z-index: 0;
  pointer-events: none;
}


.sam-mascota img {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 0 40px rgba(0,180,255,.35));
}

/* SOLO DESKTOP */
@media (min-width: 1024px) {
  body.login .sam-mascota {
    display: block;
  }
}

/* OCULTAR EN MOBILE Y TABLET */
@media (max-width: 1023px) {
  .sam-mascota {
    display: none !important;
  }
}
/* ============================= */
/* SAM COPY LOGIN (IZQUIERDA)    */
/* ============================= */

.sam-copy {
  position: fixed;
  left: 6vw;              /* 🔥 LADO IZQUIERDO */
  top: 50%;
  transform: translateY(-50%);
  max-width: 360px;
  color: #e5f0ff;
  z-index: 1;
  pointer-events: none;
  display: none;
}

.sam-copy h3 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #38bdf8;
  text-transform: uppercase;
  min-height: 2.4em; /* reserva espacio para typewriter */
}

.sam-copy p {
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
  min-height: 6em; /* reserva espacio */
}

/* SOLO DESKTOP */
@media (min-width: 1024px) {
  body.login .sam-copy {
    display: block;
  }
}

/* OCULTO EN MOBILE */
@media (max-width: 1023px) {
  .sam-copy {
    display: none !important;
  }
}


/* SOLO DESKTOP */
@media (min-width: 1024px) {
  body.login .sam-copy {
    display: block;
  }
}

/* OCULTO EN MOBILE */
@media (max-width: 1023px) {
  .sam-copy {
    display: none !important;
  }
}
.sam-copy h3::after {
  content: "▍";
  animation: blink 1s infinite;
  margin-left: 4px;
}

@keyframes blink {
  50% { opacity: 0; }
}
.sam-mascota {
  animation: samIn .6s ease-out both;
}

@keyframes samIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ============================= */
/* SAM ENOJADO (ERROR LOGIN)     */
/* ============================= */

body.sam-error .sam-mascota img {
  content: url("/assets/img/mascota/sam-angry.png");
  filter: drop-shadow(0 0 50px rgba(255, 80, 80, 0.45));
}

body.sam-error .sam-copy h3 {
  color: #f87171;
}

body.sam-error .sam-copy p {
  color: #fecaca;
}
/* ============================= */
/* SAM BLOQUEO TOTAL             */
/* ============================= */

body.sam-blocked .sam-mascota img {
  content: url("/assets/img/mascota/sam-blocked.png");
}

body.sam-blocked .sam-copy h3 {
  color: #ef4444;
}

body.sam-blocked .sam-copy p {
  color: #fee2e2;
  font-weight: 500;
}
.auth-card {
  position: relative;
  padding-top: 40px; /* 👈 espacio interno de seguridad */
}

.auth-card .alert {
  position: absolute;
  top: 10px;         /* 👈 antes 110px, ahora arriba del título */
  left: 40px;
  right: 40px;
  z-index: 10;
}
/* ===============================
   AJUSTE TEXTO SAM BLOQUEADO
   =============================== */

/* ===============================
   FORMULARIO STOCK ADMIN
=============================== */

.stock-form {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-row select,
.form-row input {
  flex: 1;
  min-width: 180px;
  padding: 10px;
}

/* textarea garantía */
.stock-form textarea {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  min-height: 90px;
}

/* botones */
.stock-form button,
.stock-form a {
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 768px) {

  .form-row {
    flex-direction: column;
  }

  .stock-form button,
  .stock-form a {
    width: 100%;
  }
}

.servicio-form input{
  width:100%;
  padding:10px;
  border-radius:8px;
  border:1px solid #1e293b;
  background:#020617;
  color:white;
  margin-bottom:10px;
  font-size:.85rem;
  box-sizing:border-box;
}
.btn-disabled{
  background:#334155;
  color:#94a3b8;
  cursor:not-allowed;
}
.card{
  padding:18px;
  border-radius:14px;
  background:#0f172a;
  border:1px solid #1e293b;
}
/* ========================= */
/* STREAMING PREMIUM MODE */
/* ========================= */

.servicio-card{
  position:relative;
  background:#0b1120;
  border-radius:18px;
  overflow:hidden;
  transition:all .3s ease;
  border:1px solid #1e293b;
}

.servicio-card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 50px rgba(0,0,0,.6);
}

/* Glow dinámico */
.servicio-card::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:18px;
  padding:2px;
  background:linear-gradient(45deg,var(--brand-color),transparent);
  opacity:0;
  transition:opacity .3s ease;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
}

.servicio-card:hover::before{
  opacity:1;
  box-shadow:0 0 30px var(--brand-color);
}

/* Precio dinámico */
.servicio-precio{
  color:var(--brand-color);
}

/* Botón dinámico */
.btn-brand{
  background:var(--brand-color);
  border:none;
  transition:all .2s ease;
  color:#fff;
}

.btn-brand:hover{
  filter:brightness(1.1);
  transform:translateY(-2px);
  box-shadow:0 5px 20px var(--brand-color);
}

/* Imagen aura */
.servicio-img{
  background:radial-gradient(circle at center,
    rgba(255,255,255,0.04),
    transparent 70%);
}

/* Animación de entrada */
.servicio-card{
  animation:fadeUp .5s ease both;
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(15px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}