:root {
  --placa: #f4e9d4;
  --oro: #c9962e;
  --oro-claro: #f0cf72;
  --navy: #1d2455;
  --navy-hondo: #121735;
  --manzana: #e3261f;
  --chamoy: #9b1218;
  --chamoy-hondo: #5c060c;
  --hoja: #3d7f3a;
  --crema: #fffaf2;
  --wa: #187a42;

  --fondo: var(--placa);
  --fondo-luz: #fff8ea;
  --tinta: var(--navy);
  --tinta-suave: #4b5078;
  --barra-fondo: rgba(248, 239, 222, .88);
  --tarjeta: #fffaf0;
  --tarjeta-borde: rgba(201, 150, 46, .45);
  --selector: rgba(29, 36, 85, .08);
  --wa-fondo: var(--wa);
  --fuente-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --fuente: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

html[data-equipo="picosito"] {
  --fondo: #7a0a10;
  --fondo-luz: #b3181c;
  --tinta: #fff3e0;
  --tinta-suave: #f7cdb9;
  --barra-fondo: rgba(84, 6, 11, .9);
  --tarjeta-borde: rgba(240, 207, 114, .7);
  --selector: rgba(255, 243, 224, .12);
}

html[data-equipo="crema"] {
  --fondo: #fffaf2;
  --fondo-luz: #ffffff;
  --tinta: var(--navy);
  --tinta-suave: #5a5f84;
  --barra-fondo: rgba(255, 250, 242, .9);
  --tarjeta: #ffffff;
  --tarjeta-borde: rgba(215, 38, 61, .28);
  --selector: rgba(215, 38, 61, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: var(--fuente);
  font-weight: 500;
  color: var(--tinta);
  background-color: var(--fondo);
  background-image:
    radial-gradient(120% 60% at 50% 0%, var(--fondo-luz), transparent 70%),
    radial-gradient(rgba(122, 10, 16, .07) 1px, transparent 1.6px);
  background-size: 100% 100%, 22px 22px;
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[data-equipo="picosito"] body {
  background-image:
    radial-gradient(110% 70% at 30% 0%, #c42620, transparent 65%),
    radial-gradient(rgba(255, 140, 80, .22) 1px, transparent 1.7px),
    radial-gradient(rgba(40, 0, 4, .35) 1.2px, transparent 2px);
  background-size: 100% 100%, 17px 19px, 23px 21px;
  background-position: 0 0, 0 0, 7px 9px;
}
html[data-equipo="crema"] body {
  background-image:
    radial-gradient(90% 50% at 85% 10%, rgba(236, 42, 58, .1), transparent 70%),
    radial-gradient(80% 50% at 0% 60%, rgba(143, 202, 63, .12), transparent 70%),
    radial-gradient(rgba(201, 150, 46, .12) 1px, transparent 1.6px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.barra {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 12px 0 10px;
  padding-top: env(safe-area-inset-top);
  background: var(--barra-fondo);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tarjeta-borde);
}
.barra-marca { display: flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.barra-logo { width: 40px; height: 40px; }
.barra-nombre { font-family: var(--fuente-display); font-weight: 900; font-size: 17px; letter-spacing: .04em; }

.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: calc(100svh - 56px);
  padding: 8px 16px 28px;
}
.escenario {
  position: relative; margin: 0;
  width: min(92vw, 50svh, 520px); aspect-ratio: 1;
  touch-action: pan-y;
  filter: drop-shadow(0 18px 26px rgba(60, 10, 10, .22));
}
.logo-capa { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-frente { overflow: visible; }
.hero-texto { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 520px; animation: sube .6s .25s both; }
.pregunta {
  margin: 0; text-align: center;
  font-family: var(--fuente-display); font-weight: 900;
  font-size: clamp(25px, 7.2vw, 40px); line-height: 1.12; letter-spacing: .01em;
  text-wrap: balance;
}
.equipos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.equipo {
  position: relative; overflow: hidden;
  display: grid; justify-items: center; align-content: center; gap: 2px;
  min-height: 84px; padding: 10px 8px;
  border-radius: 20px; border: 2px solid var(--oro);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s;
}
.equipo:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0, 0, 0, .14); }
.equipo-ico { font-size: 24px; line-height: 1; }
.equipo-nombre { font-family: var(--fuente-display); font-weight: 900; font-size: 17px; letter-spacing: .02em; }
.equipo-grupo { font-size: 13px; font-weight: 600; opacity: .85; }
.equipo-picosito { background: linear-gradient(170deg, #d23324, #9b1218 55%, #6a0a10); color: #fff3e0; }
.equipo-crema { background: linear-gradient(170deg, #ffffff, #fbf1de 70%, #f1e0bf); color: var(--navy); }
.equipo[aria-pressed="true"] { outline: 3px solid var(--oro-claro); outline-offset: 3px; }
.hero-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn-linea {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 2px solid currentColor; background: transparent; font-weight: 800;
}
.btn-wa, .btn-ig {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  text-decoration: none; font-weight: 800;
}
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa svg, .btn-ig svg { width: 20px; height: 20px; }
.btn-ig { border: 2px solid currentColor; }

.catalogo { padding: 0 16px 40px; }
.selector-caja {
  position: sticky; top: 56px; z-index: 10;
  margin: 0 -16px; padding: 10px 16px;
  background: var(--barra-fondo);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.selector { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--selector); }
.selector button {
  min-height: 44px; border: 0; border-radius: 999px; background: transparent;
  font-weight: 800; font-size: 15px; white-space: nowrap;
}
.selector button[aria-pressed="true"] { background: var(--navy); color: #fff6e6; box-shadow: 0 2px 0 var(--oro); }
html[data-equipo="picosito"] .selector button[aria-pressed="true"] { background: #fff3e0; color: var(--chamoy-hondo); }
html[data-equipo="crema"] .selector button[aria-pressed="true"] { background: #d7263d; color: #fff; box-shadow: 0 2px 0 #8d0a1f; }
.envio-nota {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 14px 0 6px; padding: 10px 14px; border-radius: 14px;
  background: var(--selector); font-size: 14px; font-weight: 600; line-height: 1.35;
}
.envio-nota svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--oro); }
.grupo { padding-top: 18px; }
.grupo-titulo {
  display: flex; flex-direction: column; margin: 0 0 12px;
  font-family: var(--fuente-display); font-weight: 900; font-size: 32px; line-height: 1;
}
.grupo-equipo {
  margin-bottom: 6px; font-family: var(--fuente); font-size: 12px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: #8a5a12;
}
html[data-equipo="picosito"] .grupo-equipo { color: var(--oro-claro); }
.grupo-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.grupo-foto { width: 52%; max-width: 300px; height: auto; margin: -8px -6px 4px 0; filter: drop-shadow(0 14px 16px rgba(90, 60, 20, .28)); }
.tarjetas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tarjeta {
  position: relative;
  display: flex; flex-direction: column;
  padding: 6px 8px 10px; border-radius: 22px;
  background: var(--tarjeta); color: var(--navy);
  border: 1.5px solid var(--tarjeta-borde);
  box-shadow: 0 10px 22px -14px rgba(60, 10, 10, .45);
}
.tarjeta-arte {
  position: relative; overflow: hidden;
  display: block; width: 100%; aspect-ratio: 200 / 170; padding: 0;
  border: 0; border-radius: 16px;
  background: radial-gradient(70% 70% at 50% 45%, #fff, #f8eedb);
}
.tarjeta[data-grupo="botanas"] .tarjeta-arte { background: radial-gradient(70% 70% at 50% 45%, #fff7ec, #f6dfcf); }
.tarjeta-arte svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tarjeta-arte .a-fruta { transform-box: fill-box; transform-origin: 50% 100%; }
.brinca .a-fruta { animation: brinco .55s cubic-bezier(.3, .7, .4, 1); }
.tarjeta-nombre { margin: 8px 4px 10px; font-size: 15px; font-weight: 800; line-height: 1.25; flex: 1; }

.goteo {
  position: absolute; top: 0; width: 13px; height: 0; border-radius: 0 0 8px 8px;
  animation: gotea 1.2s cubic-bezier(.4, 0, .6, 1) forwards; pointer-events: none;
}
.goteo::after {
  content: ''; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 18px; margin-left: -8px;
  border-radius: 50% 50% 50% 50% / 60% 60% 45% 45%; background: inherit;
  animation: cae 1.2s cubic-bezier(.5, 0, .9, .6) forwards;
}
.goteo-chamoy { background: linear-gradient(90deg, #8f0f14, #d33a2a 45%, #ffb19c 55%, #b3161c 65%, #7a0c12); }
.goteo-crema { width: 18px; background: linear-gradient(90deg, #eadcc0, #fff 40%, #fff 60%, #f1e4cb); box-shadow: 0 2px 6px rgba(120, 90, 40, .25); }

.pie {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 40px 20px calc(110px + env(safe-area-inset-bottom));
  background: var(--navy-hondo); color: #fff3e0;
  border-top: 3px solid var(--oro);
}
.pie-logo { width: 120px; height: 120px; }
.pie-nombre { margin: 0; font-family: var(--fuente-display); font-weight: 900; font-size: 20px; }
.pie-envio { margin: 0; max-width: 34ch; font-size: 15px; line-height: 1.4; color: #f2dcc6; }
.pie-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pie .btn-ig { color: #fff3e0; }
.pie-maito { margin: 10px 0 0; font-size: 13px; }
.pie-maito a { display: inline-block; min-height: 44px; padding: 14px 8px; color: #e6c98a; }

.inundacion { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1000; }

@keyframes sube { from { opacity: 0; transform: translateY(14px); } }
@keyframes brinco { 30% { transform: translateY(-12px) scale(.96, 1.05); } 60% { transform: translateY(0) scale(1.06, .93); } 80% { transform: scale(.98, 1.02); } }
@keyframes gotea { 0% { height: 0; } 45% { height: 34%; } 100% { height: 26%; opacity: 0; } }
@keyframes cae { 0%, 40% { transform: translateY(0); } 100% { transform: translateY(150px); } }

@media (min-width: 600px) {
  .tarjetas { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .lienzo { display: grid; grid-template-columns: minmax(0, 47%) minmax(0, 1fr); align-items: start; }
  .hero {
    position: sticky; top: 56px; height: calc(100vh - 56px); min-height: 560px;
    padding: 20px 32px 32px; border-right: 1px solid var(--tarjeta-borde);
  }
  .escenario { width: min(40vw, calc(100vh - 360px), 600px); }
  .pregunta { font-size: clamp(30px, 2.6vw, 42px); }
  .equipo { min-height: 96px; }
  .equipo-nombre { font-size: 20px; }
  .catalogo { padding: 4px 40px 64px; }
  .selector-caja { margin: 0 -40px; padding: 14px 40px; }
  .selector { max-width: 460px; }
  .tarjetas { gap: 16px; }
  .tarjeta-nombre { font-size: 16px; }
  .pie { padding-bottom: 48px; }
  .barra { padding: 0 24px; }
}

@media (min-width: 1280px) {
  .tarjetas { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
