*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Glow sutil */
.glow{
  position: fixed;
  inset: -30%;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 20% 25%, rgba(255,255,255,0.10), transparent 62%),
    radial-gradient(closest-side at 80% 35%, rgba(13,28,122,0.22), transparent 60%),
    radial-gradient(closest-side at 50% 90%, rgba(255,255,255,0.08), transparent 62%);
  filter: blur(26px);
  opacity: 0.70;
  animation: drift 10s ease-in-out infinite alternate;
}
@keyframes drift{
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(0,-12px,0) scale(1.02); }
}

/* Cintillos */
.band{
  background: var(--band);
  border-bottom: 1px solid var(--border2);
}
.band.footer{
  border-top: 1px solid var(--border2);
  border-bottom: 0;
}
.band-inner{
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 14px clamp(14px, 3vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}
.mark{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--border2);
  flex: 0 0 auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}
.q{
  font-weight: 950;
  letter-spacing: -0.6px;
  font-size: 18px;
  line-height: 1;
}
.brandtext{ min-width: 0; }
.brandtext .title{
  margin: 0;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brandtext .sub{
  margin: 3px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Selector idioma */
.lang{
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
  flex: 0 0 auto;
}
.lang button{
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  font-size: 12px;
  padding: 10px 12px;
  cursor: pointer;
  letter-spacing: 0.6px;
  min-width: 54px;
}
.lang button[aria-pressed="true"]{
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,1);
}
.lang button:focus{
  outline: 3px solid rgba(255,255,255,0.38);
  outline-offset: 2px;
}

/* Layout */
.wrap{
  min-height: calc(100% - 56px - 52px);
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 34px) clamp(14px, 3vw, 18px);
  position: relative;
}

.card{
  width: min(var(--maxw), 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 40px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.headline{
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.8px;
  font-weight: 950;
}

.lead{
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.65;
  max-width: 78ch;
}

.divider{
  height: 1px;
  background: rgba(255,255,255,0.16);
  margin: 18px 0;
}

.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}
@media (min-width: 860px){
  .grid{ grid-template-columns: 1fr 1fr; }
}

.panel{
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--panel);
  border-radius: var(--radius2);
  padding: 14px 14px;
}
.panel h3{
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  font-weight: 950;
  color: rgba(255,255,255,0.92);
}
.panel p{
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.6;
}

.actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(13,28,122,0.40);
  color: rgba(255,255,255,0.95);
  font-weight: 950;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.36);
  background: rgba(13,28,122,0.55);
}
.btn:focus{
  outline: 3px solid rgba(255,255,255,0.40);
  outline-offset: 2px;
}

.footer-note{
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  font-weight: 900;
}
.tiny{
  font-size: 12px;
  color: rgba(255,255,255,0.70);
  font-weight: 800;
  text-align: right;
}

/* Móvil: selector centrado bajo la marca */
@media (max-width: 640px){
  .band-inner{ flex-direction: column; align-items: stretch; }
  .lang{ align-self: center; }
  .tiny{ text-align: center; }
}

@media (prefers-reduced-motion: reduce){
  .glow{ animation: none !important; }
  .btn{ transition: none !important; }
}
