/* ==========================================================================
   Underc0de — footer v3 (2026-11-08)
   Solo el footer. Superficie casi negra (gris azulado), el azul de marca
   como tinte sutil y el celeste #3CB7EA como único acento.
   Una sola pieza destacada (invitación + indicadores); el resto es texto
   bien jerarquizado sobre fondo neutro. Se activa con $context['u0footer'].
   ========================================================================== */

body.u0 #footer.u0-footer{
  --ft-bg:#090b13;
  --ft-surface:#0f1220;
  --ft-line:rgba(255,255,255,.075);
  --ft-line-2:rgba(255,255,255,.14);
  --ft-txt:#eef1f7;
  --ft-txt-2:#a8afbf;          /* 8.6:1 sobre --ft-bg */
  --ft-txt-3:#7d8598;          /* 5.1:1 sobre --ft-bg */
  --ft-acc:#3CB7EA;
  --ft-live:#4ade80;
  --ft-cut:14px;--ft-cut-s:6px;
  --ft-notch:polygon(var(--ft-cut) 0,100% 0,100% calc(100% - var(--ft-cut)),calc(100% - var(--ft-cut)) 100%,0 100%,0 var(--ft-cut));
  --ft-notch-s:polygon(var(--ft-cut-s) 0,100% 0,100% calc(100% - var(--ft-cut-s)),calc(100% - var(--ft-cut-s)) 100%,0 100%,0 var(--ft-cut-s));
  position:relative;margin-top:4rem !important;padding:0 0 1.5rem !important;
  border-top:1px solid var(--ft-line) !important;
  background:var(--ft-bg) !important;
  color:var(--ft-txt-2);font:400 .9rem/1.55 var(--f-ui);text-align:left;
}
body.u0 #footer.u0-footer::before,
body.u0 #footer.u0-footer::after,
body.u0 #footer.u0-footer>.u0-wrap::after{content:none !important;display:none !important}

/* enlaces de texto: foco visible sin depender del recorte */
body.u0 #footer a{transition:color .15s ease}
body.u0 #footer a:focus-visible{outline:2px solid var(--ft-acc);outline-offset:3px;box-shadow:none}

/* ---------------------------------------------------------------- pieza destacada */
body.u0 #footer .u0f-hero{
  position:relative;margin-top:-1px;padding:2.5rem 2.75rem 2.25rem;
  clip-path:var(--ft-notch);
  background:linear-gradient(135deg,#1b1d3d 0%,#141730 45%,#0f1220 100%);
  box-shadow:inset 0 0 0 1px var(--ft-line);
  transform:translateY(-2.75rem);margin-bottom:-2.75rem;
}
/* único detalle de marca: trazo celeste en la esquina cortada */
body.u0 #footer .u0f-hero::before{
  content:"";position:absolute;left:0;top:0;width:calc(var(--ft-cut) * 1.42);height:1px;
  background:var(--ft-acc);transform-origin:0 0;transform:translate(0,var(--ft-cut)) rotate(-45deg);
}
body.u0 #footer .u0f-hero::after{
  content:"";position:absolute;left:var(--ft-cut);top:0;width:72px;height:1px;background:linear-gradient(90deg,var(--ft-acc),transparent);
}

body.u0 #footer .u0n-cta{
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:1.5rem 3rem;
  margin:0;padding:0;border:0;background:none;clip-path:none;
}
body.u0 #footer .u0n-cta::before{content:none}
body.u0 #footer .u0n-cta-txt{display:flex;flex-direction:column;gap:.65rem;flex:1 1 28rem;max-width:44rem}
body.u0 #footer .u0n-kicker{font:500 .78rem/1 var(--f-pixel);letter-spacing:.08em;text-transform:lowercase;color:var(--ft-acc)}
body.u0 #footer .u0n-cta-txt strong{font:600 clamp(1.35rem,2.1vw,1.85rem)/1.25 var(--f-ui);letter-spacing:-.01em;color:#fff;text-wrap:balance}
body.u0 #footer .u0n-cta-btns{display:flex;flex-wrap:wrap;gap:.75rem}

/* botones propios del footer (sin corchetes ni neón) */
body.u0 #footer .u0n-cta-btns .u0-btn{
  display:inline-flex;align-items:center;justify-content:center;min-height:2.85rem;padding:0 1.4rem;
  font:600 .88rem/1 var(--f-ui);letter-spacing:.01em;text-transform:none;
  clip-path:var(--ft-notch-s);border-radius:0;
  background:var(--ft-acc) !important;color:#04121a !important;box-shadow:none !important;
  transition:background .15s ease,color .15s ease;
}
body.u0 #footer .u0n-cta-btns .u0-btn::before,
body.u0 #footer .u0n-cta-btns .u0-btn::after{content:none}
body.u0 #footer .u0n-cta-btns .u0-btn:hover{background:#fff !important;color:#04121a !important}
body.u0 #footer .u0n-cta-btns .u0-btn.ghost{background:rgba(255,255,255,.04) !important;color:var(--ft-txt) !important;box-shadow:inset 0 0 0 1px var(--ft-line-2) !important}
body.u0 #footer .u0n-cta-btns .u0-btn.ghost:hover{background:rgba(255,255,255,.09) !important;color:#fff !important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3) !important}
body.u0 #footer .u0n-cta-btns .u0-btn:focus-visible{background:#fff !important;color:#04121a !important;box-shadow:none !important}

/* ---- indicadores: una lectura en fila, sin cajas ---- */
body.u0 #footer .u0f-stats{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;
  margin:2.25rem 0 0;padding:1.75rem 0 0;list-style:none;border-top:1px solid var(--ft-line);
}
body.u0 #footer .u0f-stats li{margin:0;padding:0 1.5rem;border-left:1px solid var(--ft-line);background:none;clip-path:none}
body.u0 #footer .u0f-stats li:first-child{padding-left:0;border-left:0}
body.u0 #footer .u0f-stats b{
  display:block;font:600 clamp(1.4rem,2vw,1.75rem)/1.1 var(--f-ui);letter-spacing:-.01em;color:#fff;
  font-variant-numeric:tabular-nums;text-shadow:none;
}
body.u0 #footer .u0f-stats span{display:flex;align-items:center;gap:.45rem;margin-top:.4rem;font:400 .82rem/1.3 var(--f-ui);letter-spacing:0;text-transform:none;color:var(--ft-txt-3)}
body.u0 #footer .u0f-live span{color:var(--ft-txt-2)}
body.u0 #footer .u0f-live i{flex:none;width:7px;height:7px;border-radius:50%;background:var(--ft-live);box-shadow:0 0 0 3px rgba(74,222,128,.15);animation:u0f-pulse 2.4s ease-in-out infinite}
@keyframes u0f-pulse{0%,100%{opacity:1}50%{opacity:.35}}

/* ---------------------------------------------------------------- columnas */
body.u0 #footer.u0-footer .top{
  display:grid !important;
  grid-template-columns:minmax(0,1.3fr) minmax(0,1.45fr) minmax(0,.9fr) minmax(0,.9fr);
  gap:2.5rem 3.5rem;padding:4rem 0 3.25rem !important;
}
body.u0 #footer.u0-footer .top>div{min-width:0;padding:0;margin:0;border:0}

body.u0 #footer .u0-brand{display:inline-flex;align-items:center;gap:.7rem;margin:0}
body.u0 #footer .u0-brand img{width:2.4rem;height:2.4rem;filter:none}
body.u0 #footer .u0-brand span{font:400 1.1rem/1 var(--f-brand);letter-spacing:.06em;color:#fff}
body.u0 #footer .u0-brand b{text-shadow:none}
body.u0 #footer .top p{margin:1.1rem 0 0;max-width:38ch;font-size:.9rem;line-height:1.65;color:var(--ft-txt-2)}

body.u0 #footer h3{
  margin:0 0 1.25rem !important;padding:0 !important;
  font:600 .75rem/1 var(--f-ui) !important;letter-spacing:.14em;text-transform:uppercase;color:var(--ft-txt) !important;
}
body.u0 #footer h3::before{content:"/ ";color:var(--ft-acc)}
body.u0 #footer h3::after{content:none}

body.u0 #footer .top ul{margin:0;padding:0;list-style:none;display:grid;gap:.8rem}
body.u0 #footer .top>div:nth-child(2) ul{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:2rem}
body.u0 #footer .top ul li{margin:0;padding:0}
body.u0 #footer .top ul a{
  display:inline;padding:0;font-size:.9rem;line-height:1.4;color:var(--ft-txt-2) !important;text-decoration:none !important;transform:none;
}
body.u0 #footer .top ul a::before{content:none}
body.u0 #footer .top ul a:hover{color:#fff !important;text-decoration:underline !important;text-decoration-color:var(--ft-acc) !important;text-underline-offset:4px;transform:none}

/* redes */
body.u0 #footer .social{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.5rem 0 0}
body.u0 #footer .social a{
  display:grid;place-items:center;width:2.4rem;height:2.4rem;aspect-ratio:auto;clip-path:var(--ft-notch-s);
  color:var(--ft-txt-2) !important;border:0 !important;background:rgba(255,255,255,.04) !important;box-shadow:inset 0 0 0 1px var(--ft-line-2);
  transition:color .15s ease,background .15s ease;transform:none;
}
body.u0 #footer .social a svg{width:1rem;height:1rem;fill:currentColor}
body.u0 #footer .social a:hover{color:var(--ft-acc) !important;background:rgba(60,183,234,.1) !important;box-shadow:inset 0 0 0 1px rgba(60,183,234,.5);transform:none}
body.u0 #footer .social a:focus-visible{outline:0;color:#04121a !important;background:var(--ft-acc) !important}

/* tiendas: insignias de dos líneas */
body.u0 #footer .u0-stores{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0 0}
body.u0 #footer .u0f-store{
  display:inline-flex;align-items:center;gap:.6rem;min-height:2.9rem;padding:.4rem 1rem .4rem .8rem;
  clip-path:var(--ft-notch-s);background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px var(--ft-line-2);
  color:#fff !important;text-decoration:none !important;transition:background .15s ease,box-shadow .15s ease;
}
body.u0 #footer .u0f-store svg{width:1.35rem;height:1.35rem;flex:none}
body.u0 #footer .u0f-store span{display:flex;flex-direction:column;font:600 .92rem/1.1 var(--f-ui)}
body.u0 #footer .u0f-store small{font:400 .66rem/1.2 var(--f-ui);letter-spacing:.04em;color:var(--ft-txt-3);text-transform:uppercase}
body.u0 #footer .u0f-store:hover{background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
body.u0 #footer .u0f-store:focus-visible{outline:0;background:var(--ft-acc);color:#04121a !important}
body.u0 #footer .u0f-store:focus-visible small{color:#04121a}

/* ---------------------------------------------------------------- barra legal */
body.u0 #footer.u0-footer .bottom{
  display:flex !important;flex-wrap:wrap;align-items:center;gap:.75rem 2rem;
  margin:0 !important;padding:1.5rem 0 0 !important;border-top:1px solid var(--ft-line) !important;border-image:none !important;
  font:400 .8rem/1.5 var(--f-ui);letter-spacing:0;color:var(--ft-txt-3);
}
body.u0 #footer .bottom>span{display:inline}
body.u0 #footer .bottom a{color:var(--ft-txt-2) !important;text-decoration:none}
body.u0 #footer .bottom a:hover{color:#fff !important}
body.u0 #footer .legal{display:flex;flex-wrap:wrap;gap:.25rem .6ch;margin-right:auto}
body.u0 #footer .u0f-spons{color:var(--ft-txt-3)}
body.u0 #footer .u0f-spons a{color:var(--ft-txt) !important;font-weight:600;margin-left:.35ch}
body.u0 #footer #languages_form{margin:0;order:0}
body.u0 #footer #language_select{
  appearance:none;-webkit-appearance:none;width:auto;min-height:2.1rem;padding:.35rem 2rem .35rem .75rem;
  font:500 .8rem var(--f-ui);color:var(--ft-txt);cursor:pointer;border:0;border-radius:0;clip-path:var(--ft-notch-s);
  background:rgba(255,255,255,.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a8afbf' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .7rem center;
  box-shadow:inset 0 0 0 1px var(--ft-line-2);
}
body.u0 #footer #language_select:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--ft-acc)}
body.u0 #footer #language_select option{background:#0f1220;color:#fff}

body.u0 #footer .u0-load{margin:1rem 0 0;text-align:center;font:400 .72rem var(--f-ui);color:var(--ft-txt-3)}
body.u0 #footer .eot{
  display:flex;align-items:center;justify-content:center;gap:1.25rem;margin:2rem 0 0 !important;padding:0 !important;background:none !important;
  font:500 .68rem/1 var(--f-pixel);letter-spacing:.32em;text-transform:uppercase;color:rgba(255,255,255,.3);text-align:center;
}
body.u0 #footer .eot::before,body.u0 #footer .eot::after{content:"";flex:0 1 7rem;height:1px;background:linear-gradient(90deg,transparent,var(--ft-line-2));opacity:1;letter-spacing:0}
body.u0 #footer .eot::after{background:linear-gradient(90deg,var(--ft-line-2),transparent)}

/* ---------------------------------------------------------------- responsive */
@media (max-width:1100px){
  body.u0 #footer.u0-footer .top{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);gap:2.5rem}
  body.u0 #footer.u0-footer .top>div:first-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:2.5rem;align-items:start}
  body.u0 #footer.u0-footer .top>div:first-child>.u0-brand,
  body.u0 #footer.u0-footer .top>div:first-child>p{grid-column:1}
  body.u0 #footer.u0-footer .top>div:first-child>.social,
  body.u0 #footer.u0-footer .top>div:first-child>.u0-stores{grid-column:2;justify-content:flex-end}
  body.u0 #footer.u0-footer .top>div:first-child>.social{grid-row:1;margin:0}
  body.u0 #footer.u0-footer .top>div:first-child>.u0-stores{grid-row:2;align-self:end}
}
@media (max-width:900px){
  body.u0 #footer .u0f-hero{padding:2rem 1.75rem 1.75rem}
  body.u0 #footer .u0f-stats{grid-template-columns:1fr 1fr;padding:0;margin-top:1.75rem}
  body.u0 #footer .u0f-stats li{padding:1rem 0;border-left:0;border-bottom:1px solid var(--ft-line)}
  body.u0 #footer .u0f-stats li:nth-child(2),
  body.u0 #footer .u0f-stats li:nth-child(5){padding-left:1.25rem;border-left:1px solid var(--ft-line)}
  body.u0 #footer .u0f-stats li:nth-child(5){order:1}
  body.u0 #footer .u0f-stats li.u0f-live{order:2;grid-column:1/-1;border-bottom:0;padding-bottom:0}
}
@media (max-width:640px){
  body.u0 #footer.u0-footer{margin-top:4rem !important;padding-bottom:6.5rem !important}
  body.u0 #footer .u0f-hero{padding:1.75rem 1.25rem 1.5rem;transform:translateY(-2.25rem);margin-bottom:-2.25rem}
  body.u0 #footer .u0n-cta{gap:1.25rem}
  body.u0 #footer .u0n-cta-txt strong{font-size:1.35rem}
  body.u0 #footer .u0n-cta-btns{width:100%;flex-direction:column;gap:.6rem}
  body.u0 #footer .u0n-cta-btns .u0-btn{width:100%;min-height:3rem}
  body.u0 #footer .u0f-stats b{font-size:1.4rem}

  body.u0 #footer.u0-footer .top{grid-template-columns:1fr 1fr;gap:2.25rem 1.25rem;padding:3rem 0 2.5rem !important}
  body.u0 #footer.u0-footer .top>div:first-child{display:block;padding-bottom:2.25rem !important;border-bottom:1px solid var(--ft-line) !important}
  body.u0 #footer.u0-footer .top>div:nth-child(2){grid-column:1/-1}
  body.u0 #footer .top p{max-width:none}
  body.u0 #footer .social{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.5rem;margin-top:1.5rem;justify-content:stretch}
  body.u0 #footer .social a{width:auto;height:2.75rem}
  body.u0 #footer.u0-footer .top>div:last-child{grid-column:auto}
  body.u0 #footer.u0-footer .top>div:first-child>.social{margin-top:1.5rem}
  body.u0 #footer.u0-footer .top>div:first-child>.u0-stores{margin-top:.75rem}
  body.u0 #footer.u0-footer .top>div:last-child ul{grid-template-columns:1fr}
  body.u0 #footer .u0-stores{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
  body.u0 #footer .u0f-store{justify-content:flex-start;padding-right:.6rem}
  body.u0 #footer h3{margin-bottom:.75rem !important}
  body.u0 #footer .top ul{gap:0}
  body.u0 #footer .top>div:nth-child(2) ul{column-gap:1.25rem}
  body.u0 #footer .top ul a{display:block;padding:.5rem 0;font-size:.92rem}

  body.u0 #footer.u0-footer .bottom{flex-direction:column;align-items:flex-start;gap:.6rem;padding-top:1.5rem !important}
  body.u0 #footer .bottom>span{display:block}
  body.u0 #footer .legal{margin:0}
  body.u0 #footer #languages_form{order:-1;margin-bottom:.4rem}
  body.u0 #footer #language_select{width:auto}
  body.u0 #footer .eot{letter-spacing:.24em;gap:.9rem}
  body.u0 #footer .eot::before,body.u0 #footer .eot::after{flex-basis:3rem}
}
@media (prefers-reduced-motion:reduce){
  body.u0 #footer *{transition:none !important}
  body.u0 #footer .u0f-live i{animation:none}
}

/* ---------------------------------------------------------------- v3.1 legibilidad (2026-11-08) */
body.u0 #footer.u0-footer{font-size:.95rem;margin-top:3rem !important}
body.u0 #footer .u0f-stats span{font-size:.9rem;color:var(--ft-txt-2)}
body.u0 #footer .u0f-stats b{font-size:clamp(1.5rem,2.2vw,1.9rem)}
body.u0 #footer .u0n-kicker{font-size:.85rem}
body.u0 #footer h3{font-size:.8125rem !important;letter-spacing:.08em !important}
body.u0 #footer ul a{font-size:.95rem;color:var(--ft-txt-2) !important}
body.u0 #footer ul a:hover{color:#fff !important}
body.u0 #footer .top p{font-size:.95rem;line-height:1.65;color:var(--ft-txt-2)}
body.u0 #footer .u0f-store small{font-size:.7rem}
body.u0 #footer.u0-footer .bottom{font-size:.875rem}
body.u0 #footer #language_select{font-size:.875rem}
body.u0 #footer .eot{font-size:.72rem;color:rgba(255,255,255,.35)}
