@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

/* =========================================================
   GIA PLAY — STYLES.CSS COMPLETO
   Diseño final mejorado + modal móvil a pantalla completa
========================================================= */

:root{
  --navy:#06152f;
  --navy-2:#0b2b5f;
  --blue:#1d5fe8;

  --green:#17b857;
  --green-dark:#0d9445;
  --green-soft:#e8f8ee;

  --yellow:#ffbe17;
  --yellow-dark:#d28b00;
  --yellow-soft:#fff5d7;

  --red:#e43b3b;
  --red-dark:#bf2222;
  --red-soft:#ffeaec;

  --bg:#f5f7fb;
  --surface:#ffffff;
  --text:#18253c;
  --muted:#66748b;
  --border:#dfe6ef;

  --shadow-sm:0 7px 18px rgba(6,21,47,.07);
  --shadow-md:0 15px 35px rgba(6,21,47,.10);
  --shadow-lg:0 30px 80px rgba(6,21,47,.28);

  --font:"Manrope",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  overflow-x:hidden;
  background:
    radial-gradient(circle at 10% 0%,rgba(23,184,87,.05),transparent 28%),
    var(--bg);
  color:var(--text);
  font-family:var(--font);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body.modal-open{
  overflow:hidden;
}

button,
input{
  font:inherit;
}

button{
  border:0;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

a{
  color:inherit;
}

/* =========================================================
   CABECERA
========================================================= */

.site-header{
  position:relative;
  overflow:hidden;
  color:#fff;
  background:linear-gradient(135deg,var(--navy),var(--navy-2));
  box-shadow:0 8px 30px rgba(0,0,0,.18);
}

.header-pattern{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(135deg,transparent 55%,rgba(255,255,255,.04));
}

.header-pattern::before{
  content:"";
  position:absolute;
  top:-195px;
  right:10%;
  width:280px;
  height:280px;
  border-radius:50%;
  background:rgba(95,183,255,.10);
}

.header-pattern::after{
  content:"";
  position:absolute;
  bottom:-115px;
  left:-70px;
  width:170px;
  height:170px;
  border-radius:50%;
  background:rgba(255,190,23,.08);
}

.header-container{
  position:relative;
  z-index:1;
  width:min(1200px,95%);
  min-height:104px;
  margin:0 auto;
  display:flex;
  align-items:center;
}

.brand{
  display:inline-flex;
  align-items:baseline;
  gap:7px;
  color:#fff;
  text-decoration:none;
  font-size:38px;
  font-weight:800;
  letter-spacing:-2px;
  line-height:1;
}

.brand-play{
  color:var(--yellow);
}

.brand-support{
  margin:7px 0 0;
  color:rgba(255,255,255,.76);
  font-size:13px;
  font-weight:600;
}

.brand-support .travel{
  color:#5fb7ff;
}

.brand-support .motos{
  color:#ffd54d;
}

/* =========================================================
   CONTENEDOR PRINCIPAL
========================================================= */

.main-container{
  width:min(1200px,95%);
  margin:24px auto 32px;
}

/* =========================================================
   PREMIOS
========================================================= */

.prizes-section{
  margin-bottom:20px;
  padding:18px;
  display:grid;
  grid-template-columns:minmax(210px,.9fr) minmax(390px,1.7fr) minmax(220px,.8fr);
  align-items:stretch;
  gap:14px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow-md);
}

.prizes-intro{
  min-width:0;
  display:flex;
  align-items:center;
  gap:13px;
}

.trophy{
  width:58px;
  height:58px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:#fff5d9;
  font-size:28px;
}

.prizes-intro h1{
  margin:0;
  font-size:24px;
  font-weight:800;
  line-height:1.08;
  letter-spacing:-.6px;
}

.prizes-intro p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}

.prizes-list{
  min-width:0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.prize-card{
  position:relative;
  min-width:0;
  min-height:100px;
  padding:12px 7px 24px;
  display:grid;
  place-content:center;
  text-align:center;
  background:#fafbfd;
  border:1px solid var(--border);
  border-radius:14px;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.prize-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-sm);
}

.main-prize{
  background:linear-gradient(145deg,#fff9eb,#fffdf8);
  border-color:#f1d27a;
  box-shadow:0 8px 22px rgba(210,139,0,.10);
}

.medal{
  font-size:0;
  line-height:1;
}

.prize-card:nth-child(1) .medal::before{
  content:"💵";
  font-size:23px;
}

.prize-card:nth-child(2) .medal::before{
  content:"💸";
  font-size:23px;
}

.prize-card:nth-child(3) .medal::before{
  content:"💰";
  font-size:23px;
}

.prize-card small{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}

.prize-card strong{
  display:block;
  margin-top:4px;
  color:var(--text);
  font-size:26px;
  font-weight:800;
  line-height:1;
}

.prize-card::after{
  content:"EN EFECTIVO";
  position:absolute;
  left:50%;
  bottom:7px;
  transform:translateX(-50%);
  color:var(--green-dark);
  font-size:7px;
  font-weight:800;
  letter-spacing:.5px;
  white-space:nowrap;
}

.main-prize strong{
  color:#b86c00;
}

.prices-box{
  min-width:0;
  padding:13px;
  display:grid;
  grid-template-columns:auto 1fr;
  align-content:center;
  gap:8px 10px;
  background:linear-gradient(145deg,#edf9f1,#f7fdf9);
  border:1px solid #d6efdd;
  border-radius:14px;
}

.price-icon{
  grid-row:1 / span 2;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#fff;
  font-size:18px;
}

.prices-box div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.prices-box span{
  color:var(--green-dark);
  font-size:11px;
  font-weight:700;
}

.prices-box strong{
  color:var(--green-dark);
  font-size:18px;
  font-weight:800;
}

/* =========================================================
   PANEL PRINCIPAL
========================================================= */

.game-panel{
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow-md);
}

.game-header{
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px solid var(--border);
  background:#fff;
}

.title-wrap{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
}

.grid-icon{
  width:44px;
  height:44px;
  flex:0 0 auto;
  padding:8px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:3px;
  border-radius:12px;
  background:#eef3ff;
}

.grid-icon i{
  border-radius:3px;
  background:#536dfe;
}

.title-wrap h2{
  margin:0;
  font-size:24px;
  font-weight:800;
  line-height:1.1;
}

.title-wrap p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:12px;
}

.update-wrap{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:12px;
}

.update-wrap p{
  margin:0;
  color:var(--muted);
  font-size:11px;
  text-align:right;
}

.refresh-button{
  min-height:40px;
  padding:9px 14px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:#fff;
  color:var(--navy-2);
  border:1px solid var(--border);
  border-radius:11px;
  font-size:12px;
  font-weight:800;
  transition:background .2s ease,transform .2s ease;
}

.refresh-button:hover{
  background:#eef5ff;
  transform:translateY(-1px);
}

.refresh-button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.numbers-column{
  padding:20px;
}

/* =========================================================
   CONTADORES
========================================================= */

.status-summary{
  margin-bottom:15px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
}

.status-card{
  min-height:68px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  background:#fafbfd;
  border:1px solid var(--border);
  border-radius:13px;
  transition:transform .2s ease,box-shadow .2s ease;
}

.status-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-sm);
}

.status-icon{
  width:35px;
  height:35px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:15px;
  font-weight:800;
}

.available-card .status-icon{
  background:var(--green-soft);
  color:var(--green);
}

.half-card .status-icon{
  background:var(--yellow-soft);
  color:var(--yellow-dark);
}

.sold-card .status-icon{
  background:var(--red-soft);
  color:var(--red);
}

.status-card small{
  display:block;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}

.status-card strong{
  display:block;
  margin-top:1px;
  font-size:21px;
  font-weight:800;
}

/* =========================================================
   LEYENDA
========================================================= */

.legend{
  margin-bottom:18px;
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  background:#f8fbff;
  border:1px solid var(--border);
  border-radius:13px;
}

.legend div{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.dot{
  width:15px;
  height:15px;
  border-radius:5px;
}

.available-dot{
  background:#fff;
  border:2px solid var(--green);
}

.half-dot{
  background:var(--yellow);
}

.sold-dot{
  background:var(--red);
}

.connection-message{
  display:none;
  margin-bottom:14px;
  padding:12px 14px;
  color:#965900;
  background:#fff4e4;
  border:1px solid #ffddaa;
  border-radius:11px;
  font-size:12px;
  font-weight:700;
}

.connection-message.show{
  display:block;
}

/* =========================================================
   TABLERO
========================================================= */

.numbers-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
}

.numbers-grid.loading{
  opacity:.55;
  pointer-events:none;
}

.number-btn{
  position:relative;
  min-height:86px;
  padding:9px 7px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  transition:transform .22s ease,box-shadow .22s ease,filter .22s ease;
}

.number-btn:hover:not(:disabled){
  transform:translateY(-3px);
  box-shadow:0 12px 24px rgba(6,21,47,.13);
}

.number-btn:active:not(:disabled){
  transform:scale(.97);
}

.number-value{
  position:relative;
  z-index:2;
  font-size:25px;
  font-weight:800;
  line-height:1;
}

.number-status{
  position:relative;
  z-index:2;
  margin-top:6px;
  font-size:10px;
  font-weight:700;
  line-height:1.15;
  text-align:center;
}

.number-btn.available{
  color:#12243b;
  background:#fff;
  border:2px solid var(--green);
  box-shadow:var(--shadow-sm);
}

.number-btn.available .number-status{
  color:var(--green-dark);
}

.number-btn.available:hover .number-status{
  color:var(--blue);
}

.number-btn.half{
  color:#3c2900;
  background:linear-gradient(145deg,#ffc93d,#ffb300);
  border:2px solid var(--yellow-dark);
}

.number-btn.half .number-status{
  color:#5d4300;
}

.number-btn.sold{
  color:#fff;
  background:linear-gradient(145deg,#ff4d55,#e2262d);
  border:2px solid var(--red-dark);
  cursor:not-allowed;
}

.number-btn.sold::after{
  content:"";
  position:absolute;
  top:50%;
  left:-15%;
  width:130%;
  height:4px;
  background:#fff;
  transform:rotate(-38deg);
}

.number-btn.sold .number-status{
  color:#fff;
}

.number-btn.selected{
  outline:4px solid rgba(29,95,232,.16);
  outline-offset:3px;
  transform:translateY(-3px) scale(1.03);
}

.number-btn.updated{
  animation:numberUpdated .55s ease;
}

@keyframes numberUpdated{
  0%{transform:scale(1)}
  45%{transform:scale(1.12)}
  100%{transform:scale(1)}
}

/* =========================================================
   PASOS Y SEGURIDAD
========================================================= */

.steps-section{
  margin-top:22px;
}

.steps-title{
  margin-bottom:12px;
  display:flex;
  align-items:center;
  gap:8px;
}

.steps-title span{
  color:var(--yellow-dark);
  font-size:18px;
}

.steps-title h3{
  margin:0;
  font-size:18px;
  font-weight:800;
}

.steps-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.step-card{
  position:relative;
  min-height:116px;
  padding:14px;
  display:grid;
  grid-template-columns:34px 1fr;
  gap:9px;
  background:#fafbfd;
  border:1px solid var(--border);
  border-radius:14px;
}

.step-number{
  position:absolute;
  top:8px;
  right:8px;
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:var(--navy-2);
  font-size:10px;
  font-weight:800;
}

.step-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#edf5ff;
  font-size:16px;
}

.step-card h4{
  margin:0;
  font-size:13px;
  font-weight:800;
}

.step-card p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}

.security-banner{
  margin-top:16px;
  padding:14px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:11px;
  background:linear-gradient(135deg,#edf8f2,#f7fcf9);
  border:1px solid #d6efdd;
  border-radius:13px;
}

.security-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#fff;
  font-size:20px;
}

.security-banner strong{
  display:block;
  color:var(--green-dark);
  font-size:14px;
  font-weight:800;
}

.security-banner p{
  margin:3px 0 0;
  color:#4d7560;
  font-size:11px;
  line-height:1.45;
}

/* =========================================================
   MODAL
========================================================= */

.modal-overlay{
  position:fixed;
  inset:0;
  z-index:1000;
  padding:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(6,21,47,.68);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .24s ease,visibility .24s ease;
}

.modal-overlay.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.reservation-modal{
  width:min(460px,100%);
  max-height:calc(100dvh - 40px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow-lg);
  opacity:0;
  transform:translateY(16px) scale(.98);
  transition:opacity .24s ease,transform .24s ease;
}

.modal-overlay.show .reservation-modal{
  opacity:1;
  transform:translateY(0) scale(1);
}

.reservation-header{
  min-height:66px;
  padding:13px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#fff;
  background:linear-gradient(135deg,var(--navy),var(--navy-2));
}

.reservation-header h3{
  margin:0;
  font-size:19px;
  font-weight:800;
  line-height:1.1;
}

.reservation-header p{
  margin:3px 0 0;
  color:rgba(255,255,255,.72);
  font-size:10px;
  font-weight:500;
}

.reservation-header button{
  width:36px;
  height:36px;
  padding:0;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  color:#fff;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  font-size:23px;
}

.reservation-content{
  max-height:calc(100dvh - 106px);
  padding:15px;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

.selected-area{
  margin-bottom:13px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  gap:11px;
  background:#f8fafc;
  border:1px solid var(--border);
  border-radius:13px;
}

.selected-badge{
  width:50px;
  height:50px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  color:var(--text);
  background:#fff;
  border:2px solid var(--green);
  border-radius:13px;
  font-size:21px;
  font-weight:800;
}

.selected-badge.half{
  color:#3c2900;
  background:var(--yellow);
  border-color:var(--yellow-dark);
}

.selected-area strong{
  display:block;
  font-size:14px;
  font-weight:800;
}

.selected-area span{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
  font-weight:600;
}

.modal-message{
  display:none;
  margin-bottom:12px;
  padding:10px 12px;
  border-radius:10px;
  font-size:11px;
  font-weight:700;
  line-height:1.4;
}

.modal-message.show{
  display:block;
}

.modal-message.error{
  color:#a9141d;
  background:var(--red-soft);
  border:1px solid #f5c6ca;
}

.modal-message.success{
  color:var(--green-dark);
  background:var(--green-soft);
  border:1px solid #bfe8cc;
}

.form-group{
  margin-bottom:11px;
}

.form-group label,
.group-label{
  display:block;
  margin-bottom:5px;
  color:var(--text);
  font-size:11px;
  font-weight:800;
}

.form-group label span,
.group-label span{
  color:var(--red);
}

.form-group input[type="text"],
.form-group input[type="tel"]{
  width:100%;
  height:44px;
  padding:0 12px;
  color:var(--text);
  background:#fff;
  border:1.5px solid #d2dae6;
  border-radius:10px;
  outline:none;
  font-size:12px;
  font-weight:600;
}

.form-group input:focus{
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(23,184,87,.10);
}

.form-group input.error,
.form-group input.invalid{
  border-color:var(--red);
  box-shadow:0 0 0 3px rgba(228,59,59,.08);
}

.field-error{
  display:none;
  margin-top:5px;
  color:var(--red);
  font-size:10px;
  font-weight:700;
}

.field-error.show{
  display:block;
}

.purchase-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.purchase-option{
  position:relative;
  min-height:76px;
  padding:10px;
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1.5px solid var(--border);
  border-radius:12px;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease,transform .2s ease;
}

.purchase-option:hover{
  border-color:#a9b9cf;
  transform:translateY(-1px);
}

.purchase-option.active{
  background:#eefaf2;
  border-color:var(--green);
}

.purchase-option.disabled{
  opacity:.45;
  background:#f3f4f6;
  cursor:not-allowed;
}

.purchase-option input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
}

.radio-ui{
  position:relative;
  width:19px;
  height:19px;
  border:2px solid #bfc9d7;
  border-radius:50%;
}

.purchase-option.active .radio-ui{
  border-color:var(--green);
}

.purchase-option.active .radio-ui::after{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:50%;
  background:var(--green);
}

.purchase-copy{
  min-width:0;
}

.purchase-copy strong{
  display:block;
  color:var(--text);
  font-size:11px;
  font-weight:800;
  line-height:1.2;
}

.purchase-copy small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:8px;
  font-weight:500;
  line-height:1.2;
}

.purchase-price{
  grid-column:1 / -1;
  margin-top:2px;
  color:var(--green-dark);
  font-size:17px;
  font-weight:800;
  text-align:right;
}

.reservation-total{
  margin:12px 0;
  padding:11px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#f5f7fb;
  border:1px solid var(--border);
  border-radius:11px;
}

.reservation-total span{
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}

.reservation-total strong{
  color:var(--green-dark);
  font-size:20px;
  font-weight:800;
}

.confirm-button{
  width:100%;
  min-height:47px;
  padding:10px 13px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#fff;
  background:linear-gradient(135deg,var(--green),var(--green-dark));
  border-radius:11px;
  font-size:13px;
  font-weight:800;
  box-shadow:0 9px 20px rgba(13,148,69,.20);
}

.confirm-button:disabled{
  opacity:.48;
  cursor:not-allowed;
  box-shadow:none;
}

/* =========================================================
   FOOTER GRIS
========================================================= */

.site-footer{
  margin-top:30px;
  color:var(--text);
  background:#eef1f5;
  border-top:1px solid #d8dee7;
}

.footer-container{
  width:min(1200px,95%);
  margin:0 auto;
  padding:28px 0 22px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

.footer-container section{
  display:block;
}

.footer-logo{
  display:flex;
  gap:5px;
  font-size:21px;
  font-weight:800;
}

.footer-logo span{
  color:var(--navy);
}

.footer-logo strong{
  color:var(--yellow-dark);
}

.footer-icon{
  display:none;
}

.footer-container h3{
  margin:0 0 7px;
  color:var(--text);
  font-size:13px;
  font-weight:800;
}

.footer-container p{
  margin:4px 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.55;
}

.footer-contact a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--green-dark);
  text-decoration:none;
  font-size:14px;
  font-weight:800;
}

.footer-bottom{
  padding:13px 18px;
  text-align:center;
  background:#e3e7ed;
  border-top:1px solid #d3d9e2;
}

.footer-bottom p{
  margin:3px 0;
  color:#748095;
  font-size:9px;
  font-weight:600;
}

/* =========================================================
   WHATSAPP, TOAST Y LOADER
========================================================= */

.whatsapp-floating{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:700;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  color:#fff;
  background:#25d366;
  border:3px solid #fff;
  border-radius:50%;
  text-decoration:none;
  font-size:27px;
  box-shadow:0 14px 30px rgba(7,139,56,.31);
  transition:transform .2s ease;
}

.whatsapp-floating:hover{
  transform:translateY(-3px) scale(1.03);
}

.toast-container{
  position:fixed;
  top:18px;
  right:18px;
  z-index:1300;
  width:min(380px,calc(100% - 24px));
}

.app-loader{
  position:fixed;
  inset:0;
  z-index:1500;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(245,247,251,.90);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  transition:opacity .25s ease,visibility .25s ease;
}

.app-loader.hide{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.loader-card{
  min-width:185px;
  padding:24px;
  display:grid;
  place-items:center;
  gap:12px;
  text-align:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:17px;
  box-shadow:var(--shadow-md);
}

.loader-spinner{
  width:43px;
  height:43px;
  border:4px solid #dcefe3;
  border-top-color:var(--green);
  border-radius:50%;
  animation:loaderSpin .8s linear infinite;
}

.loader-card p{
  margin:0;
  font-size:12px;
  font-weight:800;
}

@keyframes loaderSpin{
  to{transform:rotate(360deg)}
}

/* =========================================================
   TABLET
========================================================= */

@media(max-width:980px){
  .prizes-section{
    grid-template-columns:1fr 1.6fr;
  }

  .prices-box{
    grid-column:1 / -1;
    grid-template-columns:auto 1fr 1fr;
  }

  .price-icon{
    grid-row:auto;
  }

  .prices-box div{
    justify-content:center;
  }

  .numbers-grid{
    grid-template-columns:repeat(5,1fr);
  }
}

/* =========================================================
   CELULAR
========================================================= */

@media(max-width:700px){
  .site-header,
  .header-container{
    min-height:84px;
  }

  .header-container{
    width:calc(100% - 28px);
  }

  .brand{
    font-size:29px;
  }

  .brand-support{
    font-size:10px;
  }

  .main-container{
    width:calc(100% - 20px);
    margin:12px auto 22px;
  }

  .prizes-section{
    padding:13px;
    grid-template-columns:1fr;
    gap:11px;
    border-radius:17px;
  }

  .trophy{
    width:46px;
    height:46px;
    border-radius:13px;
    font-size:22px;
  }

  .prizes-intro h1{
    font-size:21px;
  }

  .prizes-intro p{
    font-size:10px;
  }

  .prizes-list{
    gap:6px;
  }

  .prize-card{
    min-height:82px;
    padding:8px 3px 19px;
    border-radius:11px;
  }

  .prize-card::after{
    bottom:5px;
    font-size:6px;
  }

  .medal{
    font-size:0;
  }

  .prize-card:nth-child(1) .medal::before,
  .prize-card:nth-child(2) .medal::before,
  .prize-card:nth-child(3) .medal::before{
    font-size:16px;
  }

  .prize-card small{
    font-size:7px;
  }

  .prize-card strong{
    font-size:18px;
  }

  .prices-box{
    padding:10px;
    grid-template-columns:auto 1fr 1fr;
    gap:7px;
    border-radius:12px;
  }

  .price-icon{
    width:34px;
    height:34px;
    grid-row:auto;
    font-size:15px;
  }

  .prices-box div{
    display:block;
    text-align:center;
  }

  .prices-box span{
    display:block;
    font-size:8px;
  }

  .prices-box strong{
    display:block;
    margin-top:2px;
    font-size:14px;
  }

  .game-panel{
    border-radius:17px;
  }

  .game-header{
    padding:13px;
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }

  .grid-icon{
    width:39px;
    height:39px;
    padding:7px;
  }

  .title-wrap h2{
    font-size:20px;
  }

  .title-wrap p{
    max-width:260px;
    font-size:9px;
    line-height:1.4;
  }

  .update-wrap{
    width:100%;
    justify-content:space-between;
  }

  .update-wrap p{
    font-size:8px;
    text-align:left;
  }

  .refresh-button{
    min-height:34px;
    padding:7px 9px;
    font-size:9px;
  }

  .numbers-column{
    padding:12px;
  }

  .status-summary{
    gap:5px;
  }

  .status-card{
    min-height:60px;
    padding:6px 3px;
    display:block;
    text-align:center;
    border-radius:9px;
  }

  .status-icon{
    width:27px;
    height:27px;
    margin:0 auto 3px;
    font-size:10px;
  }

  .status-card small{
    font-size:6px;
  }

  .status-card strong{
    font-size:15px;
  }

  .legend{
    padding:8px 5px;
    gap:4px;
  }

  .legend div{
    flex:1;
    flex-direction:column;
    gap:3px;
    font-size:7px;
    line-height:1.15;
    text-align:center;
  }

  .dot{
    width:13px;
    height:13px;
  }

  .numbers-grid{
    grid-template-columns:repeat(5,1fr);
    gap:6px;
  }

  .number-btn{
    min-height:70px;
    padding:7px 3px;
    border-radius:10px;
  }

  .number-value{
    font-size:19px;
  }

  .number-status{
    margin-top:4px;
    font-size:7px;
  }

  .steps-grid{
    grid-template-columns:1fr;
    gap:7px;
  }

  .step-card{
    min-height:auto;
    padding:10px;
    grid-template-columns:31px 1fr;
  }

  .step-icon{
    width:31px;
    height:31px;
    font-size:14px;
  }

  .security-banner{
    padding:10px;
  }

  .security-icon{
    width:35px;
    height:35px;
    font-size:17px;
  }

  .security-banner strong{
    font-size:11px;
  }

  .security-banner p{
    font-size:8px;
  }

  /* Modal móvil a pantalla completa */

  .modal-overlay{
    padding:0;
    align-items:stretch;
    justify-content:stretch;
  }

  .reservation-modal{
    position:fixed;
    inset:0;
    width:100%;
    height:100vh;
    height:100svh;
    height:100dvh;
    max-width:none;
    max-height:none;
    border:0;
    border-radius:0;
    transform:translateY(100%);
  }

  .modal-overlay.show .reservation-modal{
    transform:translateY(0);
  }

  .reservation-header{
    flex:0 0 auto;
    padding:
      calc(13px + env(safe-area-inset-top))
      15px
      13px;
  }

  .reservation-content{
    flex:1 1 auto;
    max-height:none;
    padding:
      14px
      14px
      calc(22px + env(safe-area-inset-bottom));
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }

  .purchase-options{
    grid-template-columns:1fr 1fr;
  }

  .footer-container{
    width:calc(100% - 28px);
    padding:22px 0;
    grid-template-columns:1fr;
    gap:15px;
  }

  .footer-container section{
    padding-bottom:13px;
    border-bottom:1px solid #d3d9e2;
  }

  .footer-container section:last-child{
    padding-bottom:0;
    border-bottom:0;
  }

  .footer-bottom{
    padding:
      13px
      15px
      calc(13px + env(safe-area-inset-bottom));
  }

  .whatsapp-floating{
    right:14px;
    bottom:calc(14px + env(safe-area-inset-bottom));
    width:52px;
    height:52px;
    font-size:23px;
  }
}

@media(max-width:380px){
  .numbers-grid{
    gap:5px;
  }

  .number-btn{
    min-height:66px;
  }

  .number-value{
    font-size:17px;
  }

  .number-status{
    font-size:6px;
  }
}
