.votacion { padding-inline: 20px; }
.votacion > h2 { margin: 8px 0 10px; }
.voto-instruccion { margin: 0 auto 25px; font-size: 16px; }
.arena-votos {
  position: relative; max-width: 540px; margin: auto; padding: 25px 20px 22px;
  border: 1px solid #d2bda1; border-radius: 170px 170px 24px 24px / 24px 24px 24px 24px;
  background: linear-gradient(#fff9ede0, #f6e7d2ed), url('assets/costero/textura-arena.webp') center/cover;
  box-shadow: inset 0 2px 2px #fffdf3, 0 14px 30px #61442b19;
}
.marcadores { position: relative; z-index: 6; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.marcador { --team: #427ca0; display: grid; grid-template-columns: 1fr auto; gap: 7px; align-items: center; text-align: left; }
.marcador-nina { --team: #b96c87; }
.marcador > span { font-size: 17px; color: var(--team); }
.marcador strong { font: 25px/1 CMU, Georgia, serif; color: var(--team); font-variant-numeric: tabular-nums; }
.barra-energia { grid-column: 1 / -1; height: 12px; padding: 2px; border-radius: 20px; background: #e5d9c8; box-shadow: inset 0 1px 3px #6c4a3938, 0 1px 0 #fff; overflow: hidden; }
.barra-energia i { display: block; height: 100%; width: var(--porcentaje, 0%); border-radius: inherit; background: linear-gradient(#ffffff65, transparent), var(--team); box-shadow: inset 0 1px 0 #ffffffb0; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.ring-costero { position: relative; height: 290px; margin: 16px -12px 8px; isolation: isolate; }
.ring-costero::before {
  content: ''; position: absolute; z-index: -1; left: 2%; right: 2%; bottom: 4%; height: 26%; border-radius: 50%;
  background: radial-gradient(ellipse, #e4ccb0b8, #dcc2a499 58%, #f9ead170 68%, transparent 70%);
  box-shadow: 0 13px 18px -17px #79543b;
}
.ring-cuerda { position: absolute; z-index: 0; left: 8%; right: 8%; top: 42%; height: 4px; border-radius: 40%; background: linear-gradient(#fff7df, #ad9270); box-shadow: 0 2px 2px #7e5d3d22; transform: perspective(350px) rotateX(12deg); }
.cuerda-dos { top: 59%; }
.cuerda-tres { top: 77%; }
.ring-cuerda::before, .ring-cuerda::after { content: ''; position: absolute; width: 8px; height: 120px; bottom: -6px; left: -4px; border-radius: 5px; background: linear-gradient(90deg, #ba9c7b, #f2e4cc 50%, #b3997c); box-shadow: 2px 2px 3px #664d2d20; }
.ring-cuerda::after { left: auto; right: -4px; }
.cuerda-dos::before, .cuerda-dos::after, .cuerda-tres::before, .cuerda-tres::after { display: none; }
.boxeador { position: absolute; z-index: 2; width: 62%; bottom: 1%; pointer-events: none; --direccion: 1; }
.boxeador-nino { left: -10%; }
.boxeador-nina { right: -10%; --direccion: -1; }
.sprite-boxeador { width: 100%; aspect-ratio: 1; background-size: 200% 100%; background-position: 0 0; background-repeat: no-repeat; animation: guardia-boxeo 2.5s ease-in-out infinite; filter: drop-shadow(0 8px 5px #73533820); }
.boxeador-nino .sprite-boxeador { background-image: url('assets/costero/team-nino.webp'); }
.boxeador-nina .sprite-boxeador { background-image: url('assets/costero/team-nina.webp'); animation-delay: -1.2s; }
.campana-ring { position: absolute; z-index: 1; left: 50%; top: 37%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #bda582; border-radius: 50%; background: #fff7e8; box-shadow: inset 0 0 0 3px #f1dfc6, 0 3px 8px #8c674226; font-size: 15px; color: #8e6f51; }
.impacto-voto { position: absolute; z-index: 5; top: 43%; left: 50%; font-size: 65px; line-height: 1; color: #fff8cf; text-shadow: 0 0 12px #b29456, 1px 1px 0 #b29456; opacity: 0; transform: translate(-50%, -50%) scale(.3); }
.concha-ring { width: 70px; bottom: -10px; left: -15px; z-index: 4; }
.estrella-ring { width: 77px; bottom: -15px; right: -15px; z-index: 4; }
.botones-team { position: relative; z-index: 6; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.boton-team { --team: #376e94; --brillo: #699bb9; display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 53px; padding: 12px 8px; border: 1px solid var(--team); border-radius: 13px; color: white; background: linear-gradient(165deg, var(--brillo), var(--team)); box-shadow: inset 0 1px 0 #ffffff69, 0 4px 0 color-mix(in srgb, var(--team), #333 25%), 0 6px 10px #6c4d2d19; font: 19px/1.2 CMU, Georgia, serif; transition: transform .18s, box-shadow .18s; }
.boton-team-nina { --team: #a95676; --brillo: #d994ae; }
.boton-team:hover:not(:disabled) { transform: translateY(-2px); }
.boton-team:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 #ffffff69, 0 1px 0 var(--team); }
.boton-team:disabled { cursor: default; filter: saturate(.55); opacity: .66; }
.boton-team.elegido { opacity: 1; filter: none; outline: 2px solid var(--team); outline-offset: 4px; }
.estado-voto { position: relative; z-index: 6; min-height: 48px; margin-top: 23px; font-size: 16px; line-height: 1.5; }
.participacion-voto { margin-top: 5px; font-size: 13px; color: #79634e; }
.reintentar-voto { margin: 12px auto 0; padding: 8px 16px; border: 1px solid #af9678; border-radius: 99px; background: #fff6e9; color: #624b39; font: inherit; font-size: 15px; }
@keyframes guardia-boxeo { 0%, 100% { translate: 0 0; rotate: -.7deg; } 50% { translate: 0 -5px; rotate: .7deg; } }
.boxeador.ataca { z-index: 3; animation: lanzar-golpe 1.1s cubic-bezier(.2,.7,.2,1); }
.boxeador.ataca .sprite-boxeador { animation: pose-golpe 1.1s steps(1, end); }
.boxeador.recibe { animation: esquivar-golpe 1.1s ease; }
.boxeador.recibe .sprite-boxeador { animation: none; }
.campanazo .impacto-voto { animation: destello-golpe 1.1s ease; }
@keyframes pose-golpe { 0%, 20%, 72%, 100% { background-position: 0 0; } 21%, 71% { background-position: 100% 0; } }
@keyframes lanzar-golpe { 0%, 15%, 100% { translate: 0 0; } 32%, 48% { translate: calc(var(--direccion) * 17%) -3px; } 65% { translate: calc(var(--direccion) * 4%) 0; } }
@keyframes esquivar-golpe { 0%, 32%, 100% { translate: 0 0; rotate: 0deg; } 45%, 60% { translate: calc(var(--direccion) * -6%) 0; rotate: calc(var(--direccion) * -7deg); } }
@keyframes destello-golpe { 0%, 33%, 70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 43% { opacity: 1; transform: translate(-50%, -50%) scale(1.2) rotate(12deg); } 58% { opacity: 0; transform: translate(-50%, -50%) scale(1.6) rotate(25deg); } }


/* Marcos con canto biselado, paspartú de lino y una reflexión de cristal. */
.presentacion-pareja, .polaroid {
  padding: 12px 12px 10px; border: 5px solid #b49a77; border-radius: 2px;
  border-top-color: #e5d4ba; border-left-color: #c9b18f; border-bottom-color: #a28a6e;
  background: linear-gradient(#fffaf2d9, #f9efdddb), url('assets/costero/textura-perlada.webp') center/cover;
  box-shadow: 0 0 0 1px #9e8568, 0 0 0 3px #f2e5ce, inset 0 0 0 1px #d7c5aa, inset 1px 2px 6px #81664435, 2px 7px 14px #5f422f35;
}
.presentacion-pareja img, .polaroid img { box-shadow: 0 0 0 1px #ad9980, 0 1px 4px #61492b40; }
.presentacion-pareja::after { content: ''; pointer-events: none; position: absolute; inset: 12px 12px 41px; background: linear-gradient(122deg, transparent 5%, #fff7df16 24%, #fff9eb2b 25%, transparent 48%); }
.presentacion-pareja::before { content: ''; pointer-events: none; position: absolute; z-index: 2; width: 55px; height: 67px; right: -25px; bottom: -15px; background: url('assets/costero/concha-abanico.png') center/contain no-repeat; transform: rotate(24deg); filter: sepia(.3) drop-shadow(2px 3px 2px #60422840); }
.adornos-bienvenida { z-index: 3; width: 21%; max-width: 130px; bottom: 62px; }
.fotos-pareja::before { content: ''; position: absolute; z-index: -1; width: 68px; height: 110px; left: 3%; bottom: 9px; background: url('assets/costero/perlas.png') center/contain no-repeat; transform: rotate(-20deg); filter: sepia(.4) drop-shadow(2px 4px 4px #6f513029); }
.calendario::after { content: ''; position: absolute; width: 95px; height: 95px; left: -35px; bottom: -32px; pointer-events: none; background: url('assets/costero/adorno-derecho.png') center/contain no-repeat; filter: sepia(.3) drop-shadow(1px 4px 3px #70523325); }
@media (max-width: 500px) {
  .votacion { padding-inline: 19px; }
  .arena-votos { padding: 23px 14px 20px; }
  .marcadores { gap: 20px; }
  .marcador > span { font-size: 15px; }
  .marcador strong { font-size: 22px; }
  .ring-costero { height: 225px; margin-inline: -10px; }
  .boxeador { width: 67%; }
  .boxeador-nino { left: -10%; }
  .boxeador-nina { right: -10%; }
  .botones-team { gap: 12px; }
  .boton-team { font-size: 18px; }
  .concha-ring { width: 52px; left: -7px; }
  .estrella-ring { width: 57px; right: -8px; }
  .estado-voto { font-size: 15px; }
  .voto-instruccion { font-size: 14px; }
  .presentacion-pareja, .polaroid { padding: 8px 8px 10px; border-width: 4px; }
  .presentacion-pareja::after { inset: 8px 8px 41px; }
  .presentacion-pareja::before { width: 46px; right: -21px; }
}
@media (max-width: 360px) {
  .boton-team { padding: 10px 4px; gap: 6px; font-size: 16px; }
  .marcador { grid-template-columns: 1fr; gap: 3px; text-align: center; }
  .marcador > span { font-size: 14px; white-space: nowrap; }
  .ring-costero { height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .sprite-boxeador, .boxeador.ataca, .boxeador.recibe, .campanazo .impacto-voto { animation: none; }
  .barra-energia i { transition: none; }
}
