/* Club 1988 — estilos compartidos (web pública, club y panel del equipo) */
:root {
  --negro: #141110;
  --negro2: #1f1a17;
  --oro: #c9973f;
  --oro-claro: #e8c27a;
  --naranja: #d98a1e;
  --crema: #f6efe4;
  --crema2: #efe4d2;
  --cafe: #4a3426;
  --texto: #2b211b;
  --suave: #7a6a5d;
  --linea: #e3d6c3;
  --ok: #2f8a57;
  --error: #c0392b;
  --radio: 18px;
  --sombra: 0 10px 30px rgba(40, 25, 10, .12);
  --fuente: Montserrat, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--fuente); color: var(--texto); background: var(--crema); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 900; text-transform: uppercase; }
p { margin: 0 0 1em; }
.contenedor { width: min(1100px, 92vw); margin: 0 auto; }
.oculto { display: none !important; }
.centro { text-align: center; }
.suave { color: var(--suave); }
.chico { font-size: .85rem; }

/* botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; border-radius: 999px;
  padding: .95em 1.6em; font: 800 1rem var(--fuente); cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s;
  min-height: 52px; letter-spacing: .01em; }
.boton:active { transform: scale(.97); }
.boton-oro { background: var(--oro); color: var(--negro); box-shadow: 0 6px 18px rgba(201, 151, 63, .35); }
.boton-oro:hover { background: var(--oro-claro); }
.boton-negro { background: var(--negro); color: var(--crema); }
.boton-borde { background: transparent; color: inherit; border: 2px solid currentColor; }
.boton-whatsapp { background: #25d366; color: #0b2e17; }
.boton-chico { min-height: 40px; padding: .55em 1.1em; font-size: .9rem; }
.boton-bloque { width: 100%; }
.boton[disabled] { opacity: .5; pointer-events: none; }

/* encabezado */
.barra { position: sticky; top: 0; z-index: 20; background: rgba(20, 17, 16, .94); backdrop-filter: blur(8px); color: var(--crema); }
.barra .contenedor { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 800; }
.marca img { width: 46px; height: 46px; }
.marca small { display: block; font-weight: 600; color: var(--oro); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.menu { margin-left: auto; display: flex; gap: 1.3rem; align-items: center; }
.menu a { text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .9; }
.menu a:hover { color: var(--oro); }
@media (max-width: 760px) { .menu a:not(.boton) { display: none; } }

/* portada */
.portada { position: relative; overflow: hidden; color: var(--crema); background:
  radial-gradient(1200px 500px at 85% -10%, rgba(217, 138, 30, .45), transparent 60%),
  radial-gradient(800px 500px at -10% 110%, rgba(201, 151, 63, .28), transparent 60%), var(--negro); }
.portada::after { content: "1988"; position: absolute; right: -2vw; bottom: -6vw; font: 900 clamp(9rem, 32vw, 26rem)/1 var(--fuente);
  color: transparent; -webkit-text-stroke: 2px rgba(201, 151, 63, .16); pointer-events: none; letter-spacing: -.04em; }
.portada .contenedor { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.portada h1 { font-size: clamp(2.2rem, 6.4vw, 4.4rem); font-weight: 900; text-transform: uppercase; }
.portada h1 em { font-style: italic; font-weight: 300; color: var(--oro-claro); display: block; }
.portada p.lead { font-size: 1.15rem; opacity: .9; max-width: 34ch; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.8rem; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .45em .9em; border-radius: 999px; background: rgba(246, 239, 228, .1);
  border: 1px solid rgba(201, 151, 63, .45); font-weight: 600; font-size: .9rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .8rem; }
.portada-logo { justify-self: center; width: min(320px, 70vw); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); animation: flotar 6s ease-in-out infinite; }
@keyframes flotar { 50% { transform: translateY(-10px) rotate(-2deg); } }
@media (max-width: 760px) { .portada .contenedor { grid-template-columns: 1fr; text-align: left; } .portada-logo { width: 96px; order: -1; justify-self: start; animation: none; } }

/* secciones */
.seccion { padding: clamp(3rem, 7vw, 5rem) 0; }
.seccion-oscura { background: var(--negro); color: var(--crema); }
.seccion-naranja { background: linear-gradient(135deg, #e09a2c, var(--naranja) 60%, #b86d12); color: #fff; }
.antetitulo { display: inline-block; font-weight: 800; letter-spacing: .18em; font-size: .78rem; text-transform: uppercase; color: var(--naranja); margin-bottom: .6rem; }
.seccion-oscura .antetitulo, .seccion-naranja .antetitulo { color: var(--oro-claro); }
.grilla { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tarjeta { background: #fff; border-radius: var(--radio); padding: 1.4rem; box-shadow: var(--sombra); }
.seccion-oscura .tarjeta { background: var(--negro2); box-shadow: none; border: 1px solid rgba(201, 151, 63, .25); }
.paso-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--oro); color: var(--negro); font-weight: 900; font-size: 1.2rem; margin-bottom: .8rem; }
.icono-grande { font-size: 2.2rem; line-height: 1; margin-bottom: .6rem; }

/* sorteo */
.sorteo { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; background: linear-gradient(135deg, #9e1b1b, #7a1212); color: #fff;
  border-radius: 26px; padding: 1.6rem 1.8rem; box-shadow: 0 18px 40px rgba(122, 18, 18, .35); position: relative; overflow: hidden; }
.sorteo::before { content: "✦"; position: absolute; right: 18%; top: -10px; font-size: 7rem; color: rgba(255, 215, 120, .12); }
.sorteo .regalo { font-size: 3.4rem; }
.sorteo h3 { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: .3rem; }
.sorteo .nuevo { display: inline-block; background: #ffd779; color: #5a0e0e; font-weight: 900; font-size: .72rem; letter-spacing: .1em; padding: .25em .7em; border-radius: 999px; margin-bottom: .5rem; }
@media (max-width: 760px) { .sorteo { grid-template-columns: 1fr; text-align: left; } .sorteo .regalo { font-size: 2.6rem; } }

/* premios y niveles */
.premio { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 16px; padding: 1rem 1.1rem; box-shadow: var(--sombra); }
.premio .emoji { font-size: 2rem; width: 54px; height: 54px; border-radius: 14px; background: var(--crema2); display: grid; place-items: center; flex: none; }
.premio b { display: block; }
.premio .pts { margin-left: auto; font-weight: 900; color: var(--naranja); white-space: nowrap; text-align: right; }
.premio .pts small { display: block; font-size: .7rem; color: var(--suave); font-weight: 600; }
.premio.no-alcanza { opacity: .6; }
.nivel { border-radius: var(--radio); padding: 1.4rem; color: var(--negro); }
.nivel-bronce { background: linear-gradient(135deg, #e6b48a, #b9773f); }
.nivel-plata { background: linear-gradient(135deg, #f1f1f1, #b8bcc3); }
.nivel-oro { background: linear-gradient(135deg, #ffe39a, var(--oro)); }
.nivel h3 { font-size: 1.4rem; font-weight: 900; text-transform: uppercase; }

/* comentarios */
.comentario { background: #fff; border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--sombra); font-size: 1.02rem; }
.comentario::before { content: "“"; display: block; font: 900 3rem/0.6 Georgia, serif; color: var(--oro); margin-bottom: .2rem; }
.comentario span { display: block; margin-top: .5rem; font-size: .8rem; color: var(--suave); font-weight: 600; }

/* ubicación */
.ubicacion { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.mapa-falso { aspect-ratio: 4/3; border-radius: 26px; background:
  linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
  linear-gradient(35deg, transparent 46%, #d9dde3 46%, #d9dde3 54%, transparent 54%),
  linear-gradient(0deg, transparent 60%, #cfe9d8 60%), #eef1f4;
  position: relative; box-shadow: var(--sombra); overflow: hidden; }
.mapa-falso::after { content: "📍"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -80%); font-size: 3.2rem; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); }
.mapa-falso span { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); background: var(--negro); color: var(--oro); font-weight: 800; font-size: .8rem; padding: .3em .8em; border-radius: 999px; white-space: nowrap; }
@media (max-width: 760px) { .ubicacion { grid-template-columns: 1fr; } }

.pie { background: var(--negro); color: rgba(246, 239, 228, .75); padding: 2.5rem 0 6rem; font-size: .9rem; }
.pie .contenedor { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.pie a { color: var(--oro-claro); }
.firma { opacity: .8; font-size: .8rem; }

/* barra demo */
.barra-demo { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50; background: #fff; color: var(--texto);
  border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); padding: .45rem .5rem .45rem 1rem; display: flex; gap: .4rem; align-items: center; font-size: .85rem; max-width: 96vw; overflow-x: auto; }
.barra-demo b { white-space: nowrap; margin-right: .3rem; }
.barra-demo .boton { min-height: 34px; padding: .35em .8em; font-size: .8rem; white-space: nowrap; }
@media print { .barra-demo, .app-cabeza, .pestanas { display: none !important; } }

/* formularios */
.formulario { display: grid; gap: .9rem; }
label { font-weight: 700; font-size: .9rem; display: grid; gap: .35rem; }
input, select { font: 500 1.05rem var(--fuente); padding: .85em 1em; border: 2px solid var(--linea); border-radius: 14px; background: #fff; color: var(--texto); width: 100%; min-height: 52px; }
input:focus, select:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 4px rgba(201, 151, 63, .2); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--oro); }
.pin { letter-spacing: .5em; text-align: center; font-size: 1.4rem; font-weight: 800; }
.monto { font-size: 2rem; font-weight: 900; text-align: center; }

/* avisos */
#avisos { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: .5rem; width: min(440px, 92vw); }
.aviso { padding: .9rem 1.1rem; border-radius: 14px; background: var(--negro); color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: entrar .25s ease-out; }
.aviso.ok { background: var(--ok); }
.aviso.error { background: var(--error); }
@keyframes entrar { from { opacity: 0; transform: translateY(-10px); } }

/* app (club y equipo) */
.app { min-height: 100vh; background: var(--crema); }
.app-cabeza { background: var(--negro); color: var(--crema); padding: .8rem 0; }
.app-cabeza .contenedor { display: flex; align-items: center; gap: .8rem; }
.app-cabeza img { width: 42px; height: 42px; }
.app-cabeza .salir { margin-left: auto; }
.app main { width: min(560px, 94vw); margin: 0 auto; padding: 1.2rem 0 6rem; }
.app main.ancho { width: min(1100px, 94vw); }
.panel { background: #fff; border-radius: 22px; padding: 1.4rem; box-shadow: var(--sombra); margin-bottom: 1rem; }
.panel h2 { font-size: 1.3rem; }
.panel h3 { font-size: 1.05rem; font-weight: 800; }

/* tarjeta del socio */
.socio { position: relative; border-radius: 26px; padding: 1.4rem; color: var(--crema); overflow: hidden; margin-bottom: 1rem;
  background: radial-gradient(500px 260px at 100% 0%, rgba(217, 138, 30, .55), transparent 60%), var(--negro); box-shadow: 0 18px 40px rgba(20, 17, 16, .35); }
.socio::after { content: "1988"; position: absolute; right: -14px; bottom: -36px; font: 900 8rem/1 var(--fuente); color: transparent; -webkit-text-stroke: 1.5px rgba(201, 151, 63, .2); }
.socio .fila { display: flex; align-items: center; gap: .8rem; position: relative; z-index: 1; }
.socio img.logo { width: 52px; height: 52px; }
.socio .nivel-chip { margin-left: auto; padding: .3em .9em; border-radius: 999px; font-weight: 900; font-size: .8rem; color: var(--negro); text-transform: uppercase; letter-spacing: .08em; }
.socio .puntos { font: 900 3.4rem/1 var(--fuente); color: var(--oro-claro); margin: 1rem 0 .2rem; position: relative; z-index: 1; }
.socio .puntos small { font-size: 1rem; font-weight: 700; color: var(--crema); margin-left: .3rem; }
.qr-caja { background: #fff; border-radius: 18px; padding: 12px; width: min(240px, 70vw); margin: 1rem auto .4rem; position: relative; z-index: 1; }
.qr-caja img { width: 100%; aspect-ratio: 1; }
.codigo { text-align: center; font: 800 1.1rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .2em; position: relative; z-index: 1; }
.barra-progreso { height: 10px; border-radius: 999px; background: rgba(246, 239, 228, .15); overflow: hidden; margin: .5rem 0 .3rem; position: relative; z-index: 1; }
.barra-progreso i { display: block; height: 100%; background: linear-gradient(90deg, var(--oro), var(--oro-claro)); border-radius: inherit; }
.chances { display: flex; align-items: center; gap: 1rem; background: linear-gradient(135deg, #9e1b1b, #7a1212); color: #fff; border-radius: 20px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.chances .n { font: 900 2.6rem/1 var(--fuente); color: #ffd779; }
.mov { display: flex; justify-content: space-between; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--linea); font-size: .95rem; }
.mov:last-child { border-bottom: 0; }
.mov .mas { color: var(--ok); font-weight: 800; white-space: nowrap; }
.mov .menos { color: var(--error); font-weight: 800; white-space: nowrap; }
.mov.anulado { opacity: .45; text-decoration: line-through; }
.pestanas { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem 0 .8rem; margin-bottom: .4rem; scrollbar-width: none; }
.pestanas button { border: 0; background: #fff; color: var(--texto); font: 700 .92rem var(--fuente); padding: .7em 1.1em; border-radius: 999px; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.pestanas button.activa { background: var(--negro); color: var(--oro-claro); }

/* escáner */
.escaner { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 1; max-height: 60vh; margin: 0 auto 1rem; }
.escaner video { width: 100%; height: 100%; object-fit: cover; }
.escaner .marco { position: absolute; inset: 18%; border: 3px solid var(--oro); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.cliente-ficha { display: flex; align-items: center; gap: 1rem; }
.cliente-ficha .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--negro); color: var(--oro); display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; flex: none; }
.etiqueta { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .75rem; font-weight: 800; background: var(--crema2); }
.etiqueta.Oro { background: linear-gradient(135deg, #ffe39a, var(--oro)); }
.etiqueta.Plata { background: linear-gradient(135deg, #f1f1f1, #b8bcc3); }
.etiqueta.Bronce { background: linear-gradient(135deg, #f0c9a5, #c98a52); }
.exito { text-align: center; padding: 1.5rem 1rem; }
.exito .grande { font: 900 3.2rem/1 var(--fuente); color: var(--ok); }

/* tablero */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kpi { background: #fff; border-radius: 18px; padding: 1rem 1.1rem; box-shadow: var(--sombra); }
.kpi small { display: block; color: var(--suave); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.kpi b { font: 900 1.8rem/1.2 var(--fuente); display: block; }
.kpi span { display: block; }
.kpi.oscuro { background: var(--negro); color: var(--crema); }
.kpi.oscuro b { color: var(--oro-claro); }
.barras { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.barras div { flex: 1; background: linear-gradient(180deg, var(--oro), var(--naranja)); border-radius: 6px 6px 2px 2px; min-height: 3px; position: relative; }
.barras-dias { display: flex; gap: 6px; font-size: .68rem; color: var(--suave); }
.barras-dias span { flex: 1; text-align: center; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--linea); vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--suave); }
.tabla-scroll { overflow-x: auto; }
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .dos-col { grid-template-columns: 1fr; } }
.ganador { text-align: center; padding: 2rem 1rem; background: linear-gradient(135deg, #9e1b1b, #7a1212); color: #fff; border-radius: 22px; }
.ganador b { display: block; font: 900 2.2rem/1.2 var(--fuente); color: #ffd779; margin: .4rem 0; }
.fila-acciones { display: flex; gap: .5rem; flex-wrap: wrap; }
