*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:#f5f7fa;color:#152238}.landing{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top,#234b76,#071a31 65%)}.hero{text-align:center;color:#fff;padding:40px}.brand,.logo{font-weight:900;letter-spacing:4px;color:#d9b35c}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#9b7a32;margin:8px 0}.hero .eyebrow{color:#d9b35c;margin-top:25px}.hero h1{font-size:clamp(45px,8vw,82px);margin:5px 0}.hero p{opacity:.8}.actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:30px}.btn{border:0;border-radius:10px;padding:13px 20px;font-weight:800;text-decoration:none;cursor:pointer;display:inline-block}.gold{background:#d9b35c;color:#14243a}.dark{background:#0d2949;color:#fff}.outline{border:1px solid #fff;color:#fff}.glass{background:#ffffff18;border:1px solid #ffffff40;color:#fff}.login{width:min(420px,92%);margin:10vh auto;background:#fff;padding:34px;border-radius:18px;box-shadow:0 20px 60px #10233a22}.login h2{margin:12px 0 25px}.login .btn{width:100%;margin-top:8px}.login small{display:block;margin-top:18px;color:#718096}.alert{background:#fff0f0;color:#a22;padding:12px;border-radius:8px;margin-bottom:15px}.warn{background:#fff6dd;color:#785500}.top{height:62px;background:#0c2747;color:#fff;display:flex;align-items:center;gap:24px;padding:0 5%;position:sticky;top:0;z-index:5}.top b{color:#d9b35c;letter-spacing:2px}.top span{margin-right:auto;opacity:.8}.top a{color:#fff;text-decoration:none}.container{max-width:1250px;margin:auto;padding:30px 18px}.pagehead{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:20px}.pagehead h1{margin:0}.pagehead p{color:#718096}.center{text-align:center}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:25px}.stats div{background:#fff;border:1px solid #e5e9ef;border-radius:14px;padding:20px}.stats b{display:block;font-size:25px}.stats span{color:#718096;font-size:13px}.adminbox{background:#fff;padding:20px;border-radius:16px;margin-bottom:25px;border:1px solid #e5e9ef}.formgrid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1.5fr auto;gap:12px;align-items:end}.jurform{grid-template-columns:2fr 1fr 1fr 1fr auto}label{display:grid;gap:7px;font-size:13px;font-weight:700;margin-bottom:15px}input,select{padding:12px;border:1px solid #d8dee8;border-radius:9px;font:inherit;background:#fff}.sectiontitle{display:flex;justify-content:space-between;align-items:center;margin:28px 0 12px}.sectiontitle h2{margin:0}.sectiontitle span{font-size:13px;color:#718096}.tablewrap{background:#fff;border-radius:14px;overflow:auto;border:1px solid #e5e9ef}table{width:100%;border-collapse:collapse;min-width:720px}th,td{text-align:left;padding:12px;border-bottom:1px solid #edf0f4;font-size:14px}th{background:#f8fafc;color:#65748a;font-size:12px;text-transform:uppercase}.thumb{width:42px;height:42px;object-fit:cover;border-radius:8px}.linkbtn{border:0;background:none;color:#b33;cursor:pointer}.judgewrap{max-width:520px;margin:auto;padding:18px 14px 110px}.grouphead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:15px 0}.grouphead h1{margin:0;font-size:28px}.grouphead p{margin:3px 0;color:#718096;font-weight:700}.counter{background:#0d2949;color:#fff;border-radius:20px;padding:9px 13px;font-weight:800;font-size:13px}.group-slide{display:none}.group-slide.active{display:block}.pair{display:grid;gap:18px}.person{background:#fff;border:1px solid #e3e8ef;border-radius:18px;overflow:hidden;box-shadow:0 8px 25px #172b4d10;position:relative;text-align:center;padding-bottom:15px}.person .tag{position:absolute;top:12px;left:12px;background:#0d2949;color:#fff;border-radius:20px;padding:7px 10px;font-size:11px;font-weight:900;z-index:2}.photo{height:300px;background:#e9edf2;display:grid;place-items:center;color:#9aa5b1;font-weight:900}.photo img{width:100%;height:100%;object-fit:cover}.person h2{font-size:21px;margin:13px 12px 3px}.person p{margin:0;color:#718096;font-size:13px}.scores{display:flex;justify-content:center;gap:9px;margin-top:13px}.scores button{width:48px;height:48px;border-radius:50%;border:1px solid #d5dce5;background:#fff;font-size:17px;font-weight:900;cursor:pointer}.scores button.selected{background:#d9b35c;border-color:#d9b35c;color:#14243a}.scores button:disabled{opacity:.5;cursor:not-allowed}.saved{height:18px;margin-top:8px;color:#26734d;font-size:13px;font-weight:800}.missing{padding:70px 20px;color:#a33;font-weight:800}.nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #dfe5ec;padding:10px max(14px,calc((100vw - 520px)/2));display:flex;gap:10px;z-index:10}.nav button{flex:1}.help{text-align:center;color:#718096;font-size:11px;margin-top:12px}.resultrow{display:grid;grid-template-columns:45px 60px 1fr 100px 100px;gap:15px;align-items:center;background:#fff;border:1px solid #e6eaf0;padding:10px 15px;margin-bottom:8px;border-radius:12px;text-align:left}.rank{font-size:22px;font-weight:900;text-align:center}.mini{width:50px;height:50px;background:#e9edf2;border-radius:9px;overflow:hidden}.mini img{width:100%;height:100%;object-fit:cover}.rn strong{display:block}.rn span{font-size:12px;color:#718096}.score{font-size:25px;font-weight:900;color:#9b7a32}.score small{font-size:11px}.votes{font-size:12px;color:#718096}@media(max-width:850px){.formgrid,.jurform{grid-template-columns:1fr 1fr}.formgrid label:first-of-type{grid-column:1/-1}.formgrid .btn{grid-column:1/-1}.stats{grid-template-columns:1fr}}@media(max-width:520px){.top{padding:0 14px}.top span{font-size:11px}.pair{gap:14px}.photo{height:280px}.person h2{font-size:19px}.scores button{width:45px;height:45px}.formgrid,.jurform{grid-template-columns:1fr}.formgrid label:first-of-type{grid-column:auto}.resultrow{grid-template-columns:30px 45px 1fr 65px;padding:8px}.votes{display:none}.rn strong{font-size:13px}.rn span{font-size:10px}}
/* VISTA DE JURADO EN CELULAR: TODO EN UNA SOLA PANTALLA */
@media (max-width:600px){
  body.judge{height:100dvh;overflow:hidden}
  body.judge .top{height:52px;min-height:52px}
  body.judge .judgewrap{height:calc(100dvh - 52px);min-height:0;margin:0;padding:6px 8px 58px;overflow:hidden;max-width:none}
  body.judge .grouphead{height:43px;margin:0 2px 5px;flex-shrink:0}
  body.judge .grouphead h1{font-size:19px;line-height:20px}
  body.judge .grouphead p{font-size:10px;margin:1px 0}
  body.judge .eyebrow{font-size:8px;margin:0}
  body.judge .counter{font-size:10px;padding:6px 9px}
  body.judge #groups{height:calc(100% - 48px);overflow:hidden}
  body.judge .group-slide{height:100%;overflow:hidden}
  body.judge .pair{height:100%;display:grid;grid-template-rows:1fr 1fr;gap:6px}
  body.judge .person{min-height:0;height:100%;display:grid;grid-template-columns:minmax(0,1fr) 48px;grid-template-rows:1fr auto auto;column-gap:7px;padding:6px 6px 6px 6px;border-radius:12px;overflow:hidden;text-align:left}
  body.judge .person .tag{top:5px;left:5px;font-size:8px;padding:4px 6px}
  body.judge .person .photo{grid-column:1;grid-row:1;width:100%;height:100%;min-height:0;border-radius:9px;overflow:hidden}
  body.judge .person h2{grid-column:1;grid-row:2;font-size:13px;line-height:15px;margin:3px 2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.judge .person p{grid-column:1;grid-row:3;font-size:9px;line-height:11px;margin:0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.judge .person .scores{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;margin:0}
  body.judge .person .scores button{width:34px;height:34px;min-width:34px;min-height:34px;border-radius:8px;font-size:13px;padding:0}
  body.judge .person .saved{grid-column:2;grid-row:3;height:12px;margin:0;text-align:center;font-size:8px;white-space:nowrap}
  body.judge .missing{grid-column:1 / -1;grid-row:1 / -1;padding:20px;font-size:12px;text-align:center}
  body.judge .nav{height:50px;padding:6px 8px;gap:6px}
  body.judge .nav .btn{padding:8px 10px;font-size:11px}
  body.judge .help{display:none}
  body.judge .alert{font-size:10px;margin:2px 0 5px;padding:5px}
}

.scoretable table{min-width:900px}
.scoretable th small{font-size:9px;font-weight:500;text-transform:none}
.scoretable .jury-score{text-align:center;font-weight:800;font-size:16px}
.scoretable .total-score{background:#fff8e6;text-align:center;font-size:19px;color:#9b7a32}
