﻿:root {
  --bg: #050a08;
  --bg-2: #0a120f;
  --card: #0c1613;
  --card-2: #112019;
  --borde: #1c2f28;
  --texto: #eaf3ef;
  --muted: #8fa79e;
  --acento: #16c784;
  --acento-2: #29e39a;
  --azul: #16c784;
  --rojo: #ef4444;
  --naranja: #f59e0b;
  --radio: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, #0b2018 0%, var(--bg) 55%);
  color: var(--texto);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: var(--acento-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- NAV ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--borde);
  background: rgba(11, 15, 22, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--texto); font-weight: 700; }
.logo:hover { text-decoration: none; }
.logo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--acento), var(--acento-2));
  color: #06131f; font-weight: 800; font-size: 14px;
}
.logo-text { font-size: 18px; letter-spacing: .3px; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes girarBorde { to { --ang: 360deg; } }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  position: relative; color: var(--muted); font-size: 14px; font-weight: 600;
  padding: 9px 15px; border-radius: 10px; transition: .2s ease;
}
.nav-links a::before {
  content: ""; position: absolute; inset: 0; border-radius: 10px; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), rgba(22, 199, 132, .25), #16c784, rgba(34, 211, 238, .9), #a3e635, rgba(22, 199, 132, .25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: girarBorde 6s linear infinite; opacity: .45; transition: opacity .25s, filter .25s;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a:hover::before { opacity: 1; animation-duration: 1.6s; filter: hue-rotate(80deg); }
.nav-links a.btn { color: #04170f; }
.nav-links a.btn-outline { color: var(--texto); }
.nav-links a.btn-outline:hover { color: #fff; }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--acento), #22a85a); color: #04170c; }
.btn-outline { background: transparent; border-color: var(--borde); color: var(--texto); }
.btn-outline:hover { border-color: var(--acento-2); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: rgba(239, 68, 68, .15); border: 1px solid rgba(239, 68, 68, .5); color: #f87171; }
.btn-danger:hover { background: rgba(239, 68, 68, .28); }
.btn-block { display: block; width: 100%; }

/* ---------- FLASH ---------- */
.flashes { max-width: 1000px; margin: 16px auto 0; padding: 0 20px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; font-size: 14px; }
.flash-ok { background: rgba(46, 204, 113, .12); border: 1px solid rgba(46, 204, 113, .45); }
.flash-error { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .45); }

/* ---------- LAYOUT ---------- */
.contenido { flex: 1; padding: 32px 20px 60px; max-width: 1200px; width: 100%; margin: 0 auto; }
.section { margin: 40px 0; }
.section.narrow { max-width: 560px; margin: 40px auto; }
.section.narrow-lg { max-width: 760px; margin: 20px auto; }
.section-title { font-size: 30px; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 28px; }

/* ---------- HERO ---------- */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 40px 0; }
.hero h1 { font-size: 46px; line-height: 1.1; margin: 14px 0; }
.hero p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 24px; }
.hero-actions.center { justify-content: center; }
.badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(41,227,154, .12); border: 1px solid rgba(41,227,154, .4);
  color: var(--acento-2); font-size: 12px; font-weight: 600; text-transform: uppercase;
}
.hero-stats { display: flex; flex-direction: column; gap: 14px; }
.stat-card { background: var(--card); border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px 22px; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--acento); }
.stat-label { color: var(--muted); font-size: 13px; }

/* ---------- PASOS ---------- */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.paso { background: var(--card); border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; }
.paso-num {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--borde); font-weight: 800; color: var(--acento-2);
  margin-bottom: 12px;
}
.paso h3 { margin: 0 0 8px; }
.paso p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- PLANES ---------- */
.planes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.plan-card {
  background: var(--card); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 26px 22px; display: flex; flex-direction: column; gap: 10px;
  transition: .2s;
}
.plan-card:hover { border-color: var(--acento); transform: translateY(-3px); }
.plan-saldo { font-size: 30px; font-weight: 800; color: var(--acento); }
.plan-nombre { color: var(--muted); font-size: 14px; }
.plan-features { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.plan-features li { font-size: 14px; color: var(--muted); padding-left: 18px; position: relative; }
.plan-features li::before { content: "âœ“"; position: absolute; left: 0; color: var(--acento); }
.plan-features.horizontal { flex-direction: row; flex-wrap: wrap; gap: 18px; }
.plan-precio { font-size: 22px; font-weight: 700; margin-top: auto; }

/* ---------- AUTH ---------- */
.auth-wrap { display: grid; place-items: center; padding: 40px 0; }
.auth-card { width: 100%; max-width: 480px; }
.auth-alt { color: var(--muted); font-size: 14px; text-align: center; margin-top: 14px; }

/* ---------- CARD / FORM ---------- */
.card {
  background: var(--card); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 24px; margin-bottom: 22px;
}
.card.center { text-align: center; }
.card h2, .card h3 { margin-top: 0; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
input, select {
  display: block; width: 100%; margin-top: 6px;
  padding: 11px 13px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--borde); color: var(--texto);
  font-size: 15px; font-family: inherit;
}
input:focus, select:focus { outline: none; border-color: var(--acento-2); }
.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fila-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ---------- COMPRA ---------- */
.compra-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.compra-form { margin-top: 20px; }

/* ---------- DASHBOARD ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-head h2 { margin: 0 0 4px; }
.dash-head-actions { display: flex; gap: 12px; align-items: center; }
.inline { display: inline; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.metric { margin: 0; }
.metric-label { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.metric-valor { font-size: 26px; font-weight: 800; }
.metric-sub { font-size: 13px; margin-top: 6px; color: var(--muted); }

.regla { margin: 0; }
.regla-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.regla-head span { color: var(--muted); }
.regla-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }
.bar { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width .4s; }
.bar-green { background: linear-gradient(90deg, #22a85a, var(--acento)); }
.bar-orange { background: linear-gradient(90deg, #d97706, var(--naranja)); }
.bar-red { background: linear-gradient(90deg, #b91c1c, var(--rojo)); }

.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.pill {
  background: var(--card-2); border: 1px solid var(--borde); border-radius: 999px;
  padding: 2px 12px; font-size: 13px; color: var(--muted);
}

/* ---------- TABLAS ---------- */
.tabla-wrap { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th {
  text-align: left; padding: 10px 12px; color: var(--muted);
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 1px solid var(--borde);
}
.tabla td { padding: 11px 12px; border-bottom: 1px solid rgba(28,47,40, .5); }
.tabla tr:hover td { background: rgba(41,227,154, .04); }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px;
  background: var(--card-2); border: 1px solid var(--borde); text-transform: uppercase;
}
.tag-buy { color: var(--acento); border-color: rgba(46, 204, 113, .5); }
.tag-sell { color: var(--rojo); border-color: rgba(239, 68, 68, .5); }

/* ---------- ESTADOS ---------- */
.estado { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.estado-activa, .estado-aprobada, .estado-procesado, .estado-pagado { background: rgba(46,204,113,.15); color: var(--acento); }
.estado-riesgo, .estado-pendiente { background: rgba(245,158,11,.15); color: var(--naranja); }
.estado-fallida, .estado-cancelado { background: rgba(239,68,68,.15); color: var(--rojo); }

/* ---------- UTIL ---------- */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pos { color: var(--acento); }
.neg { color: var(--rojo); }
.center { text-align: center; }
.check {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 16px;
  background: rgba(46,204,113,.15); color: var(--acento); font-size: 28px; font-weight: 800;
}
.detalle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- DASHBOARD EXTRA ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-wrap { position: relative; height: 280px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--card-2); border: 1px solid var(--borde); border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.stat-k { color: var(--muted); font-size: 12px; }
.stat-v { font-size: 18px; font-weight: 700; }
.scroll-y { max-height: 320px; overflow-y: auto; }

.alerta { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.alerta-warn { background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.5); color: #fbbf24; }
.alerta-danger { background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.5); color: #f87171; }
.alerta-ok { background: rgba(46,204,113,.14); border: 1px solid rgba(46,204,113,.5); color: #34d399; }

.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--acento);
  box-shadow: 0 0 0 0 rgba(46,204,113,.6); animation: pulso 2s infinite;
}
@keyframes pulso {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,.6); }
  70% { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

/* ---------- RETIRO / REGLAS ---------- */
.retiro-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.retiro-num { font-size: 30px; font-weight: 800; color: var(--acento-2); font-variant-numeric: tabular-nums; }
.retiro-num.listo { color: var(--acento); }
.fila40 { background: rgba(245, 158, 11, .16) !important; }
.fila40-ok { background: rgba(22, 199, 132, .08); }
.fila40-ok:hover { background: rgba(22, 199, 132, .13); }
.tag40 {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px;
  background: rgba(245,158,11,.18); border: 1px solid rgba(245,158,11,.5);
  color: #fbbf24; font-size: 11px; font-weight: 700;
}

/* ---------- ADMIN NAV / SECCIONES ---------- */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--borde); }
.admin-nav a { padding: 10px 16px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; }
.admin-nav a:hover { color: var(--texto); text-decoration: none; }
.admin-nav a.active { color: var(--texto); border-bottom-color: var(--acento); }
.admin-link { text-decoration: none; color: inherit; display: block; transition: .2s; }
.admin-link:hover { border-color: var(--acento); text-decoration: none; transform: translateY(-2px); }
.acciones { display: flex; gap: 6px; align-items: center; }
.acciones form { display: inline; margin: 0; }
.acciones .btn { margin: 0; }

/* ---------- ADMIN PLANES ---------- */
.fila-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.inp-mini { padding: 6px 8px; font-size: 13px; margin-top: 0; width: 100%; }
.inp-mini.nombre { min-width: 120px; }
.nuevo-plan { margin-top: 18px; border-top: 1px solid var(--borde); padding-top: 16px; }
.nuevo-plan h4 { margin: 0 0 12px; }
.tabla input[type="checkbox"] { width: auto; margin: 0; }



/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--borde); padding: 20px 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  color: var(--muted); font-size: 13px;
}
.footer-muted { color: #5b6779; }

/* ---------- LOGO APP ---------- */
.logo-img-app { height: 28px; width: auto; display: block; }
.logo-sep-app { width: 1px; height: 26px; background: rgba(255, 255, 255, .18); }
.logo-name-app { display: flex; flex-direction: column; line-height: 1.05; font-weight: 800; font-size: 13px; letter-spacing: 1.4px; color: var(--texto); }

/* ---------- LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; align-content: center;
  background: radial-gradient(circle at 50% 40%, #0b2018, #050a08 70%);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
}
.loader.activo { opacity: 1; visibility: visible; }
.loader-box { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.loader-box img { width: 56px; }
.loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(22, 199, 132, .15);
  border-top-color: var(--acento);
  animation: girarLoader 1.4s linear infinite;
}
.loader-txt { color: var(--muted); margin: 20px 0 0; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; }
@keyframes girarLoader { to { transform: rotate(360deg); } }

/* ---------- CHECKOUT ---------- */
.checkout { max-width: 940px; margin: 0 auto; }
.checkout-pasos { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.checkout-pasos .cp { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.checkout-pasos .cp span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--borde); font-size: 13px; }
.checkout-pasos .cp.activo { color: #fff; }
.checkout-pasos .cp.activo span { background: var(--acento); color: #04170f; border-color: var(--acento); }
.checkout-pasos .cp:not(:last-child)::after { content: "\2192"; margin-left: 10px; color: var(--borde); }
.checkout-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: start; }
.resumen-plan .badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(22, 199, 132, .12); border: 1px solid rgba(22, 199, 132, .35); color: var(--acento); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.resumen-plan h2 { margin: 14px 0 4px; }
.resumen-monto { font-size: 32px; font-weight: 800; color: var(--acento); margin-bottom: 8px; }
.metodo-pago h3 { margin-top: 0; }
.metodos { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.metodo { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--borde); border-radius: 12px; cursor: pointer; transition: .18s; margin: 0; }
.metodo:hover { border-color: rgba(22, 199, 132, .5); }
.metodo input { display: none; }
.metodo .mi { font-size: 20px; }
.metodo .mt b { display: block; font-size: 15px; color: var(--texto); }
.metodo .mt small { color: var(--muted); font-size: 12.5px; }
.metodo .tag-recom { position: absolute; top: 10px; right: 12px; background: var(--acento); color: #04170f; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; }
.metodo:has(input:checked) { border-color: var(--acento); background: rgba(22, 199, 132, .08); box-shadow: 0 0 0 1px var(--acento); }
.checkout-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid var(--borde); margin-bottom: 16px; }
.checkout-total span { color: var(--muted); }
.checkout-total b { font-size: 26px; font-weight: 800; color: #fff; }
.metodo.inactivo { opacity: .4; cursor: not-allowed; }
.mt-titulo { margin-top: 22px; }
.monedas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 18px; }
.moneda {
  position: relative; display: flex; align-items: center; gap: 8px; margin: 0;
  padding: 10px 12px; border: 1px solid var(--borde); border-radius: 10px;
  cursor: pointer; transition: .15s; background: var(--bg-2);
}
.moneda:hover { border-color: rgba(22, 199, 132, .5); }
.moneda input { display: none; }
.moneda img { width: 22px; height: 22px; }
.moneda span { font-size: 12.5px; color: var(--texto); font-weight: 600; }
.moneda:has(input:checked) { border-color: var(--acento); background: rgba(22, 199, 132, .10); box-shadow: 0 0 0 1px var(--acento); }
@media (max-width: 560px) { .monedas-grid { grid-template-columns: repeat(2, 1fr); } }
.cupon-row { display: flex; gap: 8px; margin: 6px 0 10px; }
.cupon-row input { margin-top: 0; }
.cupon-row .btn { white-space: nowrap; }

/* ---------- PANTALLA DE PAGO ---------- */
.pago-card { max-width: 540px; margin: 0 auto; }
.pago-monto { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 18px 0; }
.pm-usd { font-size: 32px; font-weight: 800; color: var(--acento); }
.pm-cripto { color: var(--muted); font-size: 15px; }
.pago-qr { display: grid; place-items: center; margin: 10px 0 20px; }
.pago-qr img { background: #fff; padding: 10px; border-radius: 14px; width: 260px; height: 260px; }
.pago-wallet { margin: 8px 0 20px; }
.wallet-box { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.wallet-box code {
  flex: 1; background: var(--bg-2); border: 1px solid var(--borde); border-radius: 10px;
  padding: 12px; font-size: 13px; word-break: break-all; color: #cfe9df;
}
.pago-estado {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px;
  background: rgba(22, 199, 132, .08); border: 1px solid rgba(22, 199, 132, .25);
  border-radius: 12px; color: #bfe9d6; font-weight: 600;
}
.spinner {
  width: 18px; height: 18px; border-radius: 50%; display: inline-block;
  border: 2px solid rgba(22, 199, 132, .25); border-top-color: var(--acento);
  animation: girarLoader .9s linear infinite;
}
.retiro-cuenta { border: 1px solid var(--borde); border-radius: 14px; padding: 18px; margin-bottom: 14px; background: var(--bg-2); }
.retiro-cuenta-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.retiro-cuenta-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.retiro-cuenta-info > div { background: var(--card); border: 1px solid var(--borde); border-radius: 10px; padding: 10px 12px; }
@media (max-width: 820px) { .checkout-grid { grid-template-columns: 1fr; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .pasos { grid-template-columns: 1fr; }
  .fila-2, .fila-3, .detalle-grid { grid-template-columns: 1fr; }
  .fila-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
}

.nav-toggle {
  display: none; background: var(--card-2); border: 1px solid var(--borde);
  color: var(--texto); font-size: 20px; line-height: 1; border-radius: 10px;
  padding: 8px 12px; cursor: pointer;
}

@media (max-width: 640px) {
  .nav {
    position: relative; flex-direction: row; align-items: center;
    justify-content: space-between; padding: 10px 12px; gap: 8px; flex-wrap: nowrap;
  }
  .logo { justify-content: flex-start; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--bg-2); border-bottom: 1px solid var(--borde);
    padding: 12px; z-index: 70;
  }
  .nav.abierto .nav-links { display: flex; }
  .nav-links a { text-align: center; padding: 10px; }
  .nav-links a.btn { width: 100%; }
  .contenido { padding: 20px 12px 40px; }
  .dash-head { gap: 10px; }
  .dash-head-actions { width: 100%; flex-wrap: wrap; }
  .retiro-cuenta-info { grid-template-columns: 1fr; }
}

/* ---------- CAMPANAS ---------- */
.campana-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
.campana-preview { position: sticky; top: 20px; }
.campana-preview iframe { width: 100%; height: 460px; border: 1px solid var(--borde); border-radius: 12px; background: #0d1117; }
.campana-imagen-preview { max-width: 100%; border-radius: 10px; margin: 10px 0 14px; border: 1px solid var(--borde); }
.campana-hint { font-size: 12px; color: var(--muted); margin: -4px 0 14px; }
.check-linea { display: flex; align-items: center; gap: 8px; color: var(--texto); font-size: 14px; margin-bottom: 12px; }
.check-linea input { width: auto; margin: 0; }
@media (max-width: 900px) {
  .campana-grid { grid-template-columns: 1fr; }
  .campana-preview { position: static; }
  .campana-preview iframe { height: 320px; }
}

/* ---------- GALERIA DE PLANTILLAS ---------- */
.plantillas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.plantilla-card { padding: 0; overflow: hidden; }
.plantilla-meta { padding: 14px 18px; border-bottom: 1px solid var(--borde); display: flex; flex-direction: column; gap: 3px; }
.plantilla-meta b { font-size: 15px; }
.plantilla-card iframe { width: 100%; height: 540px; border: 0; background: #0d1117; display: block; }
.plantilla-codigo { padding: 10px 18px; border-top: 1px solid var(--borde); }
.plantilla-codigo summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.plantilla-codigo textarea { width: 100%; margin-top: 8px; font-family: Consolas, monospace; font-size: 11px; }
@media (max-width: 1000px) { .plantillas-grid { grid-template-columns: 1fr; } }
