
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@400;600;700;800;900&display=swap');

/* ── VARIABLES ─────────────────────────────────────────────── */
#choca-app {
    --choca-green:      #1a6b3a;
    --choca-green-light:#2d9b58;
    --choca-green-dark: #0d3d21;
    --choca-gold:       #ffd700;
    --choca-gold-dark:  #c9a800;
    --choca-red:        #e63946;
    --choca-white:      #f8f9f6;
    --choca-gray:       #8a9e8a;
    --choca-dark:       #0a1f10;
    --choca-card-bg:    #1c2e1c;
    --choca-card-locked:#111a11;
    --choca-shadow:     0 8px 32px rgba(0,0,0,.45);
    --choca-radius:     14px;
    --choca-font-title: 'Bebas Neue', sans-serif;
    --choca-font-body:  'Nunito', sans-serif;

    font-family: var(--choca-font-body);
    background: var(--choca-dark);
    color: var(--choca-white);
    min-height: 600px;
    border-radius: var(--choca-radius);
    overflow: hidden;
    padding: 0 0 32px;
    position: relative;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.choca-header {
    background: linear-gradient(135deg, var(--choca-green-dark) 0%, var(--choca-green) 100%);
    padding: 20px 28px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--choca-gold);
    gap: 12px;
    flex-wrap: wrap;
}
.choca-header__saludo {
    font-family: var(--choca-font-title);
    line-height: 1;
}
.choca-header__hola {
    font-size: 20px;
    color: rgba(255,255,255,.7);
    display: block;
}
.choca-header__nombre {
    font-size: 38px;
    color: var(--choca-gold);
    display: block;
    letter-spacing: 1px;
}
.choca-header__progreso {
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,215,0,.3);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}
#choca-count-obtenidos { font-size: 22px; font-weight: 900; color: var(--choca-gold); }
.choca-sep { opacity: .5; }
.choca-label { opacity: .65; margin-left: 4px; font-size: 13px; }


.toast {
    background-color: #1a1a1a !important; 
    color: #ffffff !important;           
    border-left: 5px solid #2ecc71 !important; 
    padding: 12px 20px;
    border-radius: 4px;                  
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); 
    opacity: 1 !important;                 
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.choca-layout {
    display: grid;
    grid-template-columns: 100px 1fr 150px;
    gap: 0;
    align-items: start;
    padding: 24px 12px 0;
}

@media (max-width: 768px) {
    .choca-layout {
        grid-template-columns: 1fr;
        padding: 16px 8px 0;
    }
    .choca-side--left { order: 3; display: flex; flex-direction: row; justify-content: center; gap: 24px; padding: 0 0 12px; }
    .choca-side--right { order: 2; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 0 0 12px; align-items: center; }
}

/* ── SIDES ───────────────────────────────────────────────────── */
.choca-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 12px;
}

/* ── BOTONES ICONO ───────────────────────────────────────────── */
.choca-icon-btn {
    background: rgba(255,255,255,.07);
    border-radius: 14px;
    color: var(--choca-white);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 8px;
    font-size: 8px;
    font-family: var(--choca-font-body);
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: background .2s, transform .15s;
    width: 80%;
}
.choca-icon-btn svg { width: 28px; height: 28px; }
.choca-icon-btn:hover { background: rgba(255,255,255,.14); transform: scale(1.05); }

/* ── SOBRE BOTÓN ─────────────────────────────────────────────── */
.choca-sobre-btn {
    cursor: pointer;
    position: relative;
    width: 80px;
    text-align: center;
}
.choca-sobre-preview {
    width: 70px;
    height: auto;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.6));
    transition: transform .25s;
}
.choca-sobre-btn:not(.choca-sobre-btn--usado):hover .choca-sobre-preview {
    transform: translateY(-6px) scale(1.06);
}
.choca-sobre-pulse {
    display: block;
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid var(--choca-gold);
    animation: sobre-ring 1.8s ease-out infinite;
    pointer-events: none;
}
@keyframes sobre-ring {
    0%   { transform: translateX(-50%) scale(.8); opacity: .9; }
    100% { transform: translateX(-50%) scale(1.6); opacity: 0; }
}
.choca-grayscale { filter: grayscale(1) opacity(.5); }
.choca-countdown {
    background: rgba(0,0,0,.6);
    border-radius: 8px;
    padding: 4px 6px;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 800;
    color: var(--choca-red);
    font-variant-numeric: tabular-nums;
}

/* ── REPETIDOS ───────────────────────────────────────────────── */
.choca-repetidos-info {
    text-align: center;
    line-height: 1;
}
#choca-rep-count { font-size: 26px; font-weight: 900; color: var(--choca-gold); display: block; }
.choca-rep-label  { font-size: 10px; text-transform: uppercase; opacity: .6; letter-spacing: .5px; }


/* ── Inicio de sesión ───────────────────────────────────────────────── */

.choca-login-req {
    text-align: center;
    margin: 20px 0;
  	padding: 40px;
}

.choca-login-btn {
    display: inline-block;
    background-color: #51aa4f; 
    color: #fff !important;    
    padding: 10px 20px;
    text-decoration: none !important;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.choca-login-btn:hover {
    background-color: #428c41; 
    color: #fff !important;
}

/* ── CÓDIGO ──────────────────────────────────────────────────── */
.choca-codigo-box {
    width: 100%;
}
.choca-codigo-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .6;
    margin-bottom: 5px;
  	color:white;
	text-align:center;
}
.choca-codigo-input-wrap {
    display: flex;
    gap: 4px;
}
.choca-codigo-input-wrap input {
    flex: 1;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 4px;
    padding: 7px 8px;
    text-align: center;
    text-transform: uppercase;
    width: 0;
    transition: border-color .2s;
}
.choca-codigo-input-wrap input:focus {
    outline: none;
    border-color: var(--choca-gold);
}
.choca-codigo-input-wrap button {
    background: var(--choca-green-light);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    padding: 0 12px;
    transition: background .2s;
}
.choca-codigo-input-wrap button:hover { background: var(--choca-green); }
.choca-codigo-msg {
    font-size: 11px;
    margin-top: 4px;
    min-height: 16px;
    transition: color .2s;
}
.choca-codigo-msg.ok  { color: #6effaa; }
.choca-codigo-msg.err { color: var(--choca-red); }

/* ── ÁLBUM ───────────────────────────────────────────────────── */
.choca-album {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 8px;
}

.choca-grupo__titulo {
    font-family: var(--choca-font-title);
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--choca-gold);
    margin: 0 0 12px;
    padding-left: 4px;
    border-left: 4px solid var(--choca-green-light);
    padding-left: 10px;
}

.choca-grid {
 	display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    margin: 0 auto; 
    gap: 10px;
  	/*background-image: url("/wp-content/uploads/2026/06/Choca-Locoz-ColeccionadorDigital-910x880-Junio2026-V1-1.png");*/
  	background-position: center center; 
  	background-repeat: no-repeat;
  	background-size: 100% 100%;
}

/* ── CARDS ───────────────────────────────────────────────────── */
.choca-card {
    /*background: var(--choca-card-bg);*/
  	background-image: url("/wp-content/uploads/2026/06/Cuadrito-coleccionadro-digital.png");
  	background-position: center center; 
  	background-repeat: no-repeat;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 2/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: default;
    /*border: 1px solid rgba(255,255,255,.07);*/
    transition: transform .2s, box-shadow .2s;
}
.choca-card--unlocked {
    border-color: rgba(45,155,88,.4);
    box-shadow: 0 0 12px rgba(45,155,88,.25);
}
.choca-card--unlocked:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 28px rgba(45,155,88,.35);
}
.choca-card--locked {
    background: var(--choca-card-locked);
}

.choca-card__img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: filter .3s;
}
.choca-card--locked .choca-card__img {
    filter: grayscale(1) brightness(.35);
}

.choca-card__placeholder {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,.02),
        rgba(255,255,255,.02) 4px,
        transparent 4px,
        transparent 14px
    );
}

.choca-card__nombre {
    position: relative;
    z-index: 2;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    width: 100%;
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    padding: 18px 4px 6px;
    line-height: 1.2;
    letter-spacing: .3px;
}
.choca-card--locked .choca-card__nombre { opacity: .4; }

.choca-card__lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    opacity: .3;
    color: #fff;
}
.choca-card__lock svg { width: 28px; height: 28px; }

.choca-card__badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--choca-red);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    border-radius: 50px;
    padding: 2px 5px;
    line-height: 1;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* Carta que "vuela" al álbum */
.choca-card-flying {
    position: fixed;
    width: 80px;
    aspect-ratio: 2/3;
    z-index: 9999;
    pointer-events: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
    transition: top .7s cubic-bezier(.25,.8,.25,1),
                left .7s cubic-bezier(.25,.8,.25,1),
                transform .7s cubic-bezier(.25,.8,.25,1),
                opacity .3s ease .5s;
}
.choca-card-flying img { width: 100%; height: 100%; object-fit: cover; }

/* ── COMPARTIR ───────────────────────────────────────────────── */
.choca-compartir {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 28px 16px 0;
    flex-wrap: wrap;
}
.choca-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--choca-font-body);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    transition: transform .15s, opacity .2s;
}
.choca-share-btn:hover { transform: scale(1.05); opacity: .9; }
.choca-share-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.choca-share-btn--wa { background: #25D366; color: #fff; }
.choca-share-btn--fb { background: #1877F2; color: #fff; }
.choca-share-btn--dl { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }

/* ── OVERLAY SOBRE ───────────────────────────────────────────── */
.choca-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.choca-sobre-stage {
    position: relative;
    width: min(480px, 90vw);
    text-align: center;
}
.choca-sobre-anim {
    position: relative;
    display: inline-block;
    width: 220px;
    height: 300px;
    margin: 0 auto;
}
/* Sobre completo — visible al inicio, se oculta justo antes de separar */
.sobre-completo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .25s ease;
    z-index: 3;
}
/* Las mitades se muestran solo durante la animación */
.sobre-mitad {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.25,1,.5,1), opacity .6s ease;
    display: none; 
    z-index: 2;
}
.mitad-izq { left: 0; object-position: left; transform-origin: bottom left; }
.mitad-der { right: 0; object-position: right; transform-origin: bottom right; }

.choca-sobre-resultado {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: scale(.6) translateY(20px);
    transition: opacity .5s ease .3s, transform .5s cubic-bezier(.175,.885,.32,1.275) .3s;
    z-index: 5;
}
.choca-sobre-resultado.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.choca-sobre-resultado-card {
    background: var(--choca-card-bg);
    border-radius: 10px;
    overflow: hidden;
    width: 110px;
    flex-shrink: 0;
    border: 2px solid var(--choca-green-light);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.choca-sobre-resultado-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.choca-sobre-resultado-card .rc-nombre {
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    padding: 5px 4px;
    background: var(--choca-green-dark);
}
.choca-sobre-resultado-card .rc-badge {
    background: var(--choca-red);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-align: center;
    padding: 2px;
}

.choca-overlay-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: rgba(255,255,255,.6);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: color .2s;
}
.choca-overlay-close:hover { color: #fff; }

/* ── POPUPS ──────────────────────────────────────────────────── */
.choca-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.choca-popup__inner {
    background: #121f12;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.choca-popup__inner--sm { max-width: 360px; }
.choca-popup__titulo {
    font-family: var(--choca-font-title);
    font-size: 28px;
    letter-spacing: 1px;
    color: #ffd700;
    margin: 0 0 6px;
}
.choca-popup__sub { font-size: 13px; opacity: .7; margin: 0 0 8px;color:white; }
.choca-popup__close {
    position: absolute;
    top: 14px; right: 16px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,.5);
    cursor: pointer;
    font-size: 18px;
}
.choca-popup__close:hover { color: #fff; }
.choca-popup__btns { display: flex; gap: 10px; margin-top: 16px; }

/* Mini grid para intercambio */
.choca-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}
.choca-mini-card {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: border-color .15s, transform .15s;
    background: var(--choca-card-bg);
}
.choca-mini-card img { width: 100%; height: 100%; object-fit: cover; }
.choca-mini-card .mc-badge {
    position: absolute;
    top: 3px; right: 3px;
    background: var(--choca-red);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    border-radius: 50px;
    padding: 1px 4px;
}
.choca-mini-card:hover  { border-color: rgba(255,255,255,.3); transform: scale(1.03); }
.choca-mini-card.selected { border-color: var(--choca-gold); box-shadow: 0 0 10px rgba(255,215,0,.4); }

/* Matches list */
.choca-matches-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.choca-match-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 10px 14px;
    transition: background .2s;
}
.choca-match-row:hover { background: rgba(255,255,255,.1); }
.choca-match-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--choca-green-light); }
.choca-match-nombre { flex: 1; font-weight: 700; font-size: 14px; }
.choca-match-btn {
    background: var(--choca-green-light);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    padding: 7px 14px;
    transition: background .2s;
}
.choca-match-btn:hover { background: var(--choca-green); }

/* Confirm detail */
.choca-confirm-detail { display: flex; align-items: center; gap: 16px; justify-content: center; padding: 16px 0; }
.choca-confirm-detail .cc-card { width: 80px; border-radius: 8px; overflow: hidden; border: 2px solid var(--choca-green-light); background: var(--choca-card-bg); }
.choca-confirm-detail .cc-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.choca-confirm-detail .cc-arrow { font-size: 28px; color: var(--choca-gold); }

/* Animación intercambio */
.choca-popup--anim .choca-popup__inner { background: transparent; border: none; }
.choca-intercambio-anim {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
}
.ci-card { width: 100px; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: var(--choca-card-bg); border: 2px solid var(--choca-green-light); }
.ci-card img { width: 100%; height: 100%; object-fit: cover; }
.ci-arrows { font-size: 40px; color: #ffd700; animation: ci-pulse 1s ease-in-out infinite; }
@keyframes ci-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }

/* ── BOTONES GENERALES ───────────────────────────────────────── */
.choca-btn-primary {
    background: #51AA4F;
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    font-family: var(--choca-font-body);
    font-size: 14px;
    font-weight: 800;
    padding: 12px 28px;
    transition: transform .15s, opacity .2s;
    width: 50%;
  
  	display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.choca-btn-primary::before {
    content: "";
    background-image: url('https://chocalocoz.mx/wp-content/uploads/2026/06/Enviar-solicitudes.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 18px; 
    height: 18px;
}

.choca-btn-primary:hover:not(:disabled) { transform: scale(1.03); }
.choca-btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.choca-btn-secondary {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    font-family: var(--choca-font-body);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    transition: background .2s;
    flex: 1;
  	width: 50%;
}
.choca-btn-secondary:hover { background: rgba(255,255,255,.14); }


/* ── SCROLL ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--choca-green); border-radius: 10px; }

/* ── ANIMACIONES ENTRADA ─────────────────────────────────────── 
.choca-card { animation: card-in .3s ease both; }
@keyframes card-in { from { opacity:0; transform:scale(.9) translateY(8px); } to { opacity:1; transform:none; } }*/

/* Unlock flash */
@keyframes unlock-flash {
    0%   { box-shadow: 0 0 0 0 rgba(255,215,0,.8); }
    50%  { box-shadow: 0 0 0 16px rgba(255,215,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,215,0,0); }
}
.choca-card.just-unlocked {
    animation: unlock-flash .8s ease;
    border-color: var(--choca-gold) !important;
}

/* ══════════════════════════════════════════════════════
   AJUSTES v2.1
══════════════════════════════════════════════════════ */

/* ── CARTA VOLADORA ──────────────────────────────────── */
.choca-card-flying {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.7), 0 0 20px rgba(45,155,88,.5);
    border: 2px solid rgba(45,155,88,.6);
}
.choca-card-flying img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── ANIMACIÓN LLEGADA AL ÁLBUM ──────────────────────── */
@keyframes card-land-flash {
    0%   { box-shadow: 0 0 0   0   rgba(255,215,0,.9), 0 0 0   0   rgba(45,155,88,.6); transform: scale(1.18); }
    40%  { box-shadow: 0 0 20px 8px rgba(255,215,0,.6), 0 0 30px 10px rgba(45,155,88,.4); transform: scale(1.12); }
    70%  { transform: scale(1.04); }
    100% { box-shadow: 0 0 0   0   rgba(255,215,0,0),  0 0 0   0   rgba(45,155,88,0);  transform: scale(1); }
}

.choca-card.just-unlocked {
    animation: card-land-flash 1.1s cubic-bezier(.25,.8,.25,1) forwards !important;
    border-color: var(--choca-gold) !important;
    z-index: 10;
    position: relative;
}

/* ── SOBRE: OVERLAY CENTRADO ─────────────────────────── */
/* Ya existe .choca-overlay – reforzar z-index y centrado */
#choca-sobre-overlay {
    z-index: 9500 !important;
    position: fixed !important;
    inset: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Resultado ampliado y centrado */
.choca-sobre-resultado {
    position: static !important;    /* salir del stacking context del sobre */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transform: scale(.7) translateY(30px);
    transition: opacity .5s ease .2s, transform .55s cubic-bezier(.175,.885,.32,1.275) .2s;
    margin-top: 28px;
}
.choca-sobre-resultado.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Reposicionar el resultado FUERA del contenedor del sobre */
.choca-sobre-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(520px, 94vw);
}
.choca-sobre-resultado-card {
    width: 120px;
    flex-shrink: 0;
    background: var(--choca-card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--choca-green-light);
    box-shadow: 0 10px 30px rgba(0,0,0,.6);
    animation: rc-appear .4s cubic-bezier(.175,.885,.32,1.275) both;
}
.choca-sobre-resultado-card:nth-child(1) { animation-delay: .05s; }
.choca-sobre-resultado-card:nth-child(2) { animation-delay: .18s; }
.choca-sobre-resultado-card:nth-child(3) { animation-delay: .31s; }

@keyframes rc-appear {
    from { opacity:0; transform:scale(.6) translateY(20px); }
    to   { opacity:1; transform:scale(1)  translateY(0); }
}

.choca-sobre-resultado-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}
.choca-sobre-resultado-card .rc-nombre {
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    padding: 6px 4px;
    background: var(--choca-green-dark);
    letter-spacing: .3px;
}
.choca-sobre-resultado-card .rc-badge {
    background: var(--choca-red);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-align: center;
    padding: 3px;
    letter-spacing: .5px;
}

/* Botón de cerrar del overlay (arriba derecha, siempre visible) */
.choca-overlay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: rgba(255,255,255,.8);
    cursor: pointer;
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    z-index: 10;
}
.choca-overlay-close:hover {
    background: rgba(255,255,255,.25);
    color: #fff;
}

/* ── ANIMACIÓN SOBRE CARGANDO ────────────────────────── */
@keyframes vibrar-sobre {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-3px) rotate(-1deg); }
    50%  { transform: translateX(0); }
    75%  { transform: translateX(3px) rotate(1deg); }
    100% { transform: translateX(0); }
}
.cargando-anim {
    animation: vibrar-sobre .18s infinite;
}

/* ── POPUP: CENTRADO + OVERLAY OSCURO ────────────────── */
.choca-popup {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,.82) !important;
    z-index: 9200 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* Entrada suave: fade + scale */
.choca-popup .choca-popup__inner {
    animation: popup-in .28s cubic-bezier(.175,.885,.32,1.275) both;
}
@keyframes popup-in {
    from { opacity:0; transform:scale(.88) translateY(14px); }
    to   { opacity:1; transform:scale(1)   translateY(0); }
}


/* ══════════════════════════════════════════════════════
   v3.2 — Sobre stack · animaciones · toast · UI premium
══════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════
   SECCIÓN DE SOBRES 
══════════════════════════════════════════════════════ */

/* Wrapper: columna centrada sin caja visual */
.choca-sobre-stack-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding-top: 8px;
}

/* Stack container — altura suficiente para 3 capas */
.choca-sobre-stack {
    position: relative;
    width: 120px;
    height: 118px;
    margin: 0 auto;
    cursor: pointer;
}

/* FIX #3: Capas con profundidad real:
   layer 1 = frente (sin offset)
   layer 2 = medio  (+4px der, -8px arriba, 94% escala, 80% opacidad)
   layer 3 = atrás  (+8px der, -16px arriba, 88% escala, 60% opacidad) */
.choca-sobre-layer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform:
        translateX(calc(-50% + (var(--layer, 1) - 1) * 6px))
        translateY(calc((var(--layer, 1) - 1) * -9px))
        scale(calc(1 - (var(--layer, 1) - 1) * 0.065));
    opacity: 1;
    transform-origin: bottom center;
    z-index: var(--layer, 1);
    transition: transform .35s ease, opacity .35s ease;
}

/* FIX #5: imagen completa del sobre en todas las capas */
.choca-sobre-layer img {
    width: 80px;
    height: auto;
    display: block;
    filter: drop-shadow(0 5px 12px rgba(0,0,0,.55));
    user-select: none;
    -webkit-user-drag: none;
}

/* Profundidad visual por brillo */
.choca-sobre-layer--3 { filter: brightness(1); }
.choca-sobre-layer--2 { filter: brightness(.86); }
.choca-sobre-layer--1 { filter: brightness(.72);   }

/* Estado vacío */
.choca-sobre-layer--vacio img {
    filter: grayscale(1) brightness(.35);
    cursor: default;
}

/* Hover: elevar el sobre delantero 
.choca-sobre-stack:hover {
    transform: translateX(0%) translateY(-12px) scale(1.02);
}*/

/* Botón CTA invisible sobre toda la pila */
.choca-sobre-cta {
    position: absolute;
    inset: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    border-radius: 6px;
}

.choca-sobre-cta:hover, .choca-sobre-cta:focus  {
    background: transparent !important;
    border: none !important;
}

.choca-sobre-cta:focus-visible {
    outline: 2px solid var(--choca-gold);
    outline-offset: 4px;
}

/* FIX #2: Badge numérico — círculo rojo esquina sup-der */
.choca-sobre-badge {
    position: absolute;
    top: -5px;
    right: -1px;
    background: var(--choca-red);
    color: #fff;
    font-family: var(--choca-font-body);
    font-size: 12px;
    font-weight: 900;
    min-width: 20px;
    height: 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,.5), 0 0 0 2px rgba(0,0,0,.3);
    animation: badge-pulse 2.2s ease-in-out infinite;
    pointer-events: none;
    line-height: 1;
    border: 1.5px solid rgba(255,255,255,.25);
}
@keyframes badge-pulse {
    0%,100% { transform: scale(1); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
    50%      { transform: scale(1.15); box-shadow: 0 2px 12px rgba(230,57,70,.6); }
}

/* FIX #9: Mensaje sin sobres — debajo del stack */
.choca-sobre-vacio-msg {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: center;
    margin-top: -4px;
}

/* FIX #10: Botón "¡Abrir mi sobre!" */
.choca-btn-abrir {
    background: linear-gradient(135deg, var(--choca-green-light) 0%, var(--choca-green) 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    font-family: var(--choca-font-body);
    font-size: 0.5em;
    font-weight: 900;
    letter-spacing: .8px;
    padding: 9px 20px;
    text-transform: uppercase;
    transition: transform .15s, opacity .2s, box-shadow .2s;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(45,155,88,.4);
}
.choca-btn-abrir:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(45,155,88,.55);
}
.choca-btn-abrir:active:not(:disabled) { transform: scale(.97); }
.choca-btn-abrir--disabled,
.choca-btn-abrir:disabled {
    opacity: .35;
    cursor: not-allowed;
    background: rgba(255,255,255,.1);
    box-shadow: none;
}

/* ── CONTADOR DE SOBRES — sin caja cuadrada ──────────── */
.choca-sobre-contador {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 800;
    color: rgba(255,255,255,.7);
}

.cs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

#choca-sobres-count {
    font-size: 18px;
    color: var(--choca-gold);
    font-weight: 900;
}
.cs-label {
    opacity: .55;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── COUNTDOWN ───────────────────────────────────────── */
.choca-countdown {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,.5);
    line-height: 1.4;
    transition: opacity .3s;
}
.choca-countdown .cd-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .6;
    margin-bottom: 2px;
}
#choca-timer {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: var(--choca-red);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}
.choca-hidden { display: none !important; }

/* ══════════════════════════════════════════════════════
   CHOCALOCOZ INTERACTIVOS — FIX #14 (sin flickering)
══════════════════════════════════════════════════════ */
.choca-card--unlocked { cursor: pointer; }
.choca-card--unlocked:hover .choca-card__img {
    transform: scale(1.06);
    filter: brightness(1.08) drop-shadow(0 0 6px rgba(255,215,0,.4));
    transition: transform .2s ease, filter .2s ease;
}
.choca-card__img { transition: transform .2s ease, filter .2s ease; }
.choca-card--unlocked::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,215,0,.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}
.choca-card--unlocked:hover::after { opacity: 1; }

/* FIX #14: Animación lateral (movimiento izq-der-centro)
   NO toca opacity, display, visibility, z-index 
@keyframes choca-rebote {
    0%   { transform: translateX(0)    rotate(0); }
    20%  { transform: translateX(-12px) rotate(-6deg); }
    40%  { transform: translateX(10px)  rotate(5deg); }
    60%  { transform: translateX(-6px)  rotate(-3deg); }
    80%  { transform: translateX(4px)   rotate(2deg); }
    100% { transform: translateX(0)    rotate(0); }
}*/

@keyframes choca-rebote {
    0%   { transform: translateX(0)     rotate(0);     }
    20%  { transform: translateX(-10px) rotate(-5deg); }
    40%  { transform: translateX(9px)   rotate(4deg);  }
    60%  { transform: translateX(-5px)  rotate(-2deg); }
    80%  { transform: translateX(3px)   rotate(1deg);  }
    100% { transform: translateX(0)     rotate(0);     }
}

/* FIX #14: solo transform, sin z-index ni position */
.choca-card.choca-rebote {
    animation: choca-rebote .5s cubic-bezier(.36,.07,.19,.97) both;
}

/* FIX #15: Flash de llegada al álbum — solo brillo, sin ocultar 
@keyframes card-land-flash {
    0%   { box-shadow: 0 0 0   0   rgba(255,215,0,.9); }
    35%  { box-shadow: 0 0 18px 8px rgba(255,215,0,.55); }
    70%  { box-shadow: 0 0 8px  3px rgba(255,215,0,.2); }
    100% { box-shadow: 0 0 0   0   rgba(255,215,0,0); }
}*/

@keyframes card-land-flash {
    0%   { box-shadow: 0 0 0    0    rgba(255,215,0,.0); }
    15%  { box-shadow: 0 0 20px 10px rgba(255,215,0,.8); }
    50%  { box-shadow: 0 0 12px 5px  rgba(255,215,0,.4); }
    100% { box-shadow: 0 0 0    0    rgba(255,215,0,.0); }
}
.choca-card.just-unlocked {
    animation: card-land-flash .9s ease forwards !important;
    border-color: var(--choca-gold) !important;
}

/* ══════════════════════════════════════════════════════
   TOAST SYSTEM — FIX #8
══════════════════════════════════════════════════════ */
#choca-toast-wrap {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 99999;
    pointer-events: none;
    width: max-content;
    max-width: 90vw;
}
.choca-toast {
    background: var(--choca-green);
    color: #fff;
    font-family: var(--choca-font-body);
    font-size: 14px;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 28px rgba(0,0,0,.45);
    opacity: 0;
    transform: translateY(12px) scale(.96);
    transition: opacity .3s ease, transform .3s ease;
    text-align: center;
    line-height: 1.4;
    white-space: pre-line;
    max-width: 340px;
}
.choca-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.choca-toast--ok  { background: #2d9b58; }
.choca-toast--err { background: #e63946; }
.choca-toast--info { background: rgba(30,50,30,.95); border: 1px solid rgba(255,255,255,.12); }

/* RC badge nuevo */
.rc-badge--nuevo {
    background: var(--choca-gold) !important;
    color: var(--choca-dark) !important;
}

/* Texto de grid vacio en popups */
.choca-grid-empty {
    opacity: .55;
    font-size: 12px;
    text-align: center;
    padding: 12px 4px;
    line-height: 1.5;
 	color: white;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
    .choca-sobre-stack-wrapper {
        flex-direction: column;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        padding-bottom: 8px;
    }
    .choca-sobre-stack { width: 150px; height: 150px; }
    .choca-sobre-layer img { width: 130px; }
    .choca-btn-abrir { font-size: 11px; padding: 8px 16px; }
    .choca-codigo-box{width:80%}
    .choca-sobre-anim { width: 160px !important; height: 230px !important; }
  
  	.choca-btn-primary { width: 100% }
  	.choca-btn-solicitudes { width: 100% }
}

/* ══════════════════════════════════════════════════════
   v3.3 — Animación sobre mejorada · sobres más grandes · intercambio asíncrono
══════════════════════════════════════════════════════ */

/* ── SOBRE STACK MÁS GRANDE ──────────────────────────── */
.choca-sobre-stack {
    width: 150px !important;
    margin: 0 auto;
}
.choca-sobre-layer img {
    width: 110px !important;
    height: auto;
}
.choca-sobre-badge {
    top: -8px !important;
    right: -4px !important;
    font-size: 14px !important;
    min-width: 24px !important;
    height: 24px !important;
}

/* ── ANIMACIÓN SACUDIDA PREVIA A LA APERTURA ────────── */
@keyframes sobre-sacudida {
    0%   { transform: translateX(0) rotate(0deg) scale(1); }
    10%  { transform: translateX(-8px) rotate(-4deg) scale(1.02); }
    20%  { transform: translateX(8px)  rotate(4deg)  scale(1.02); }
    30%  { transform: translateX(-6px) rotate(-3deg) scale(1.04); }
    40%  { transform: translateX(6px)  rotate(3deg)  scale(1.04); }
    50%  { transform: translateX(-4px) rotate(-2deg) scale(1.06); }
    60%  { transform: translateX(4px)  rotate(2deg)  scale(1.06); }
    70%  { transform: translateX(-2px) rotate(-1deg) scale(1.04); }
    80%  { transform: translateX(2px)  rotate(1deg)  scale(1.02); }
    90%  { transform: translateX(-1px) rotate(0deg)  scale(1.01); }
    100% { transform: translateX(0)    rotate(0deg)  scale(1); }
}
.sobre-sacudida {
    animation: sobre-sacudida .4s cubic-bezier(.36,.07,.19,.97) both;
}

/* ── OVERLAY SOBRE — anim container más alto ─────────── */
.choca-sobre-anim {
    position: relative;
    display: inline-block;
    width: 200px !important;
    height: 280px !important;
    margin: 0 auto 20px;
}

/* Sobre completo: visible y centrado */
.sobre-completo {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 3;
}

/* Mitades: ocultas por defecto */
.sobre-mitad {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 2;
}
.mitad-izq { left: 0;  object-position: left;  transform-origin: bottom left; }
.mitad-der { right: 0; object-position: right; transform-origin: bottom right; }

/* ── INTERCAMBIO: solicitudes popup ─────────────────── */
#choca-popup-solicitudes .choca-popup__inner {
    max-width: 600px;
}
.choca-match-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
  	align-items:center;
}
.choca-match-detalle {
    font-size: 11px;
    opacity: .7;
    line-height: 1.4;
}
.choca-match-detalle img.mc-thumb {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    vertical-align: middle;
    margin: 0 3px;
}
.choca-match-btn--accept {
    background: var(--choca-gold) !important;
    color: var(--choca-dark) !important;
}
.choca-match-btn--accept:hover {
    background: var(--choca-gold-dark) !important;
}

/* Confirm detail mejorado */
.cc-exchange-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    padding: 16px 0 8px;
}
.cc-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.cc-side .cc-label {
    font-size: 11px;
    opacity: .6;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cc-con-usuario {
    text-align: center;
    font-size: 13px;
    opacity: .8;
    margin: 4px 0 0;
}

/* Botones popup intercambio */
.choca-popup-intercambio-btns {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.choca-popup-intercambio-btns .choca-btn-primary {
    flex: 1;
}
.choca-btn-solicitudes {
    background: #52AA4F;
    border: 1px solid rgba(255,215,0,.3);
    border-radius: 50px;
    color: white;
    cursor: pointer;
    font-family: var(--choca-font-body);
    font-size: 13px;
    font-weight: 700;
    padding: 11px 20px;
    transition: background .2s;
    white-space: nowrap;
  
  	display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.choca-btn-solicitudes::before {
    content: "";
    background-image: url('https://chocalocoz.mx/wp-content/uploads/2026/06/mis-solicitudes.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 18px; 
    height: 18px;
}


.choca-btn-solicitudes:hover {
    background: rgba(255,255,255,.15);
}

/* Icono de solicitudes pendientes en botón intercambio */
.choca-icon-btn .solicitudes-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--choca-red);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    min-width: 16px;
    height: 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Titulo popup solicitudes */
#choca-solicitudes-titulo {
    font-family: var(--choca-font-title);
    font-size: 24px;
    color: #ffd700;
    margin: 0 0 12px;
    letter-spacing: 1px;
}


/* ═══════════════════════════════════════════════════════════
   v3.5 — Banderas · Solicitudes mejoradas · Sin popup confirmar
═══════════════════════════════════════════════════════════ */

/* ── Bandera en choca-card ─────────────────────────────── */
.choca-card__nombre {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-wrap: wrap;
}
.choca-card__bandera {
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Mini card con label (nombre + bandera) ────────────── */
.choca-mini-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: 6px 4px 4px;
    background: rgba(255,255,255,0.04);
    transition: border-color .15s, background .15s;
    width: 90px;
}
.choca-mini-card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.choca-mini-card.selected { border-color: var(--choca-gold) !important; background: rgba(255,215,0,.1) !important; }
.choca-mini-card img { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; }

.mc-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    width: 100%;
}
.mc-flag { font-size: 14px; line-height: 1; }
.mc-name {
    font-size: 9px;
    color: rgba(255,255,255,.8);
    text-align: center;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
}
.mc-badge {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--choca-green);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    border-radius: 50px;
    padding: 2px 5px;
    white-space: nowrap;
}

/* ── Filtro en popup solicitudes ───────────────────────── */
.choca-filtro-box {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.choca-filtro-label {
    font-size: 12px;
    color: #c9a800;
    font-weight: 700;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.choca-filtro-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.choca-filtro-select {
    flex: 1;
    min-width: 180px;
    background: rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    padding: 7px 10px;
    font-family: var(--choca-font-body);
}
.choca-filtro-select option { background: #1a2e1a; }
.choca-btn-filtro {
    background: var(--choca-green);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-family: var(--choca-font-body);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    transition: background .2s;
    white-space: nowrap;
}
.choca-btn-filtro:hover { background: #237a3d; }
.choca-btn-filtro--clear {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
}
.choca-btn-filtro--clear:hover { background: rgba(255,255,255,.18); }

/* ── Fila de solicitud mejorada con imágenes y banderas ── */
.choca-match-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    margin-bottom: 8px;
    transition: border-color .2s, background .2s;
}
.choca-match-row--compatible {
    border-color: rgba(45,155,88,.5) !important;
    background: rgba(45,155,88,.07) !important;
}
.choca-match-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.15);
}
.choca-match-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.choca-match-nombre {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
}
.choca-match-chocas {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.choca-match-choca {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: rgba(255,255,255,.7);
    text-align: center;
    max-width: 100%;
}
.choca-match-choca span { word-break: break-word; line-height: 1.2; }
.mc-thumb-lg {
    width: 44px; height: 44px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(0,0,0,.3);
}
.mc-rol {
    font-size: 9px;
    color: var(--choca-gold);
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.ci-arrows {
    font-size: 20px;
    color: #ffd700;
    flex-shrink: 0;
}
.choca-compatible-badge {
    display: inline-block;
    background: rgba(45,155,88,.25);
    border: 1px solid rgba(45,155,88,.5);
    border-radius: 50px;
    color: #5cd48a;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
}
.choca-match-btn {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 12px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
}
.choca-match-btn:hover { background: rgba(255,255,255,.18); }
.choca-match-btn--accept {
    background: var(--choca-green) !important;
    border-color: transparent !important;
}
.choca-match-btn--accept:hover { background: #237a3d !important; }

/* ── Animación intercambio: nombres debajo de las imágenes ── */
.ci-card img { width: 90px; height: 90px; object-fit: contain; border-radius: 10px; }
.ci-card span { display: block; font-size: 11px; color: rgba(255,255,255,.8); text-align: center; margin-top: 4px; }

/* ── Popup solicitudes más ancho ──────────────────────── */
#choca-popup-solicitudes .choca-popup__inner { max-width: 640px; }
.choca-matches-list { max-height: 400px; overflow-y: auto; }

@media (max-width: 520px) {
    .choca-match-chocas { gap: 6px; }
    .mc-thumb-lg { width: 36px; height: 36px; }
    .choca-match-choca { max-width: 35%; font-size: 9px; }
    .choca-filtro-row { flex-direction: row; justify-content: center; gap: 15px; }
    .choca-filtro-select { min-width: 100%; }
}

/* ── Bandera como imagen (v3.5.1) ──────────────────────── */

/* En el choca-card del álbum */
.choca-card__bandera {
    width: 18px;
    height: auto;
    border-radius: 2px;
    object-fit: cover;
    vertical-align: middle;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* En mini-cards del popup intercambio */
.mc-label .choca-flag-img,
.mc-label img.choca-flag-img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,.4);
    display: block;
    margin: 0 auto 2px;
}

/* En filas de solicitudes */
.choca-match-choca .choca-flag-img {
    width: 16px;
    height: 11px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,.3);
    display: inline;
}

/* Quitar mc-flag span (ya no se usa) */
.mc-flag { display: none; }

/* ═══════════════════════════════════════════════════════════
   v3.6 — Mis solicitudes · validación visual · filtro corregido
═══════════════════════════════════════════════════════════ */

/* Botón "Mis solicitudes" en popup proponer */
.choca-btn-solicitudes--mis {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.2);
    color: rgba(255,255,255,.85);
}
.choca-btn-solicitudes--mis:hover { background: rgba(255,255,255,.15); }

/* Acción + advertencia debajo del botón Aceptar */
.choca-match-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}
.choca-warn-msg {
    font-size: 10px;
    color: #ff8a8a;
    text-align: right;
    max-width: 130px;
    line-height: 1.3;
}
.choca-match-btn--disabled {
    background: rgba(255,255,255,.06) !important;
    color: rgba(255,255,255,.35) !important;
    cursor: not-allowed !important;
    border-color: rgba(255,255,255,.1) !important;
}
.choca-match-btn--disabled:hover { background: rgba(255,255,255,.06) !important; }

/* Mis solicitudes: badge de estado */
.choca-estado-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-radius: 50px;
    padding: 3px 9px;
    margin-top: 6px;
    align-self: flex-start;
}
.choca-estado-badge.is-pendiente  { background: rgba(255,215,0,.18); color: #c9a800; border: 1px solid rgba(255,215,0,.35); }
.choca-estado-badge.is-completado { background: rgba(45,155,88,.18); color: #5cd48a; border: 1px solid rgba(45,155,88,.4); }
.choca-estado-badge.is-cancelado  { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.15); }

.choca-mis-row { align-items: flex-start; }
.choca-match-btn--cancel {
    background: rgba(220,60,60,.18) !important;
    border: 1px solid rgba(220,60,60,.4) !important;
    color: #ff8a8a !important;
}
.choca-match-btn--cancel:hover { background: rgba(220,60,60,.28) !important; }

@media (max-width: 520px) {
    .choca-match-action { align-items: stretch; }
    .choca-warn-msg { max-width: 100%; text-align: left; }
}

/* ═══════════════════════════════════════════════════════════
   v3.7 — Mensaje "Intercambiando…" · efecto switch · brillo final
═══════════════════════════════════════════════════════════ */

/* Permitir que el wrapper se posicione en columna con el mensaje debajo */
.choca-popup--anim .choca-popup__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* Mensaje de estado debajo de las cards */
.ci-status {
    font-family: var(--choca-font-title);
    font-size: 16px;
    color: rgba(255,255,255,.75);
    letter-spacing: .5px;
    margin: 0;
    text-align: center;
    animation: ci-status-pulse 1.2s ease-in-out infinite;
}
@keyframes ci-status-pulse {
    0%, 100% { opacity: .55; }
    50%      { opacity: 1; }
}
.ci-status--done {
    color: var(--choca-gold);
    animation: none;
    opacity: 1;
    font-size: 18px;
    text-shadow: 0 0 12px rgba(255,215,0,.6);
}

/* ── Efecto switch: las dos cards giran sobre sí mismas e intercambian posición ── */
.choca-intercambio-anim {
    position: relative;
    transition: none;
}
.choca-intercambio-anim .ci-card {
    transition: transform .7s cubic-bezier(.65,0,.35,1), box-shadow .4s ease;
    transform-style: preserve-3d;
}

/* Cuando se agrega .ci-switching: las cards se deslizan intercambiando lugares
   y giran sobre su propio eje, simulando el "switch" del intercambio. */
.choca-intercambio-anim.ci-switching .ci-card--left {
    transform: translateX(calc(100% + 24px)) rotateY(360deg);
}
.choca-intercambio-anim.ci-switching .ci-card--right {
    transform: translateX(calc(-100% - 24px)) rotateY(-360deg);
}

/* Las flechas giran más rápido durante el switch para enfatizar el movimiento */
.choca-intercambio-anim.ci-switching .ci-arrows {
    animation: ci-pulse .35s ease-in-out infinite;
}

/* ── Estado final: ambas cards se iluminan en dorado al completarse ── */
.choca-intercambio-anim.ci-done .ci-card {
    border-color: var(--choca-gold) !important;
    box-shadow: 0 0 24px 6px rgba(255,215,0,.55), 0 0 8px 2px rgba(255,215,0,.4) inset;
}
.choca-intercambio-anim.ci-done .ci-arrows {
    animation: none;
    color: var(--choca-gold);
    text-shadow: 0 0 16px rgba(255,215,0,.8);
}

@media (max-width: 480px) {
    .ci-status { font-size: 14px; }
    .ci-status--done { font-size: 16px; }
}
