/* Estilos para Publicidad a Dedo */

.card-publi-dedo {
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    border: 2px solid #d4af37;
    overflow: hidden;
    position: relative;
    padding: 0 !important;
}

.publi-dedo-header {
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.publi-dedo-header h3 {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.publi-dedo-header p {
    color: #bdc3c7;
    font-size: 0.85rem;
    margin: 5px 0 0;
}

.publi-dedo-vs-container {
    display: flex;
    position: relative;
    background: #000;
}

.publi-dedo-option {
    flex: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.publi-dedo-option img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.publi-dedo-option:hover img {
    transform: scale(1.1);
}

.publi-dedo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publi-dedo-option:hover .publi-dedo-overlay {
    opacity: 1;
}

.publi-dedo-name {
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.btn-elige {
    background: #d4af37;
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #d4af37;
    color: #000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.2rem;
    z-index: 10;
    border: 3px solid #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* Efecto de puntos ganados */
@keyframes pointsFloat {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-50px); opacity: 0; }
}

.points-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2cbd0f;
    font-size: 2rem;
    font-weight: 900;
    pointer-events: none;
    z-index: 100;
    animation: pointsFloat 1.5s ease-out forwards;
}

/* Estilo para el anuncio personalizado */
.card-ad-personalized {
    border-left: 5px solid #d4af37 !important;
}

.ad-brand-name {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin: 8px 0 5px 0;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.ad-personalized-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d4af37;
    color: #000;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
    z-index: 5;
}

/* Estado de Agradecimiento (Transformación) */
.publi-dedo-thanks {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    min-height: 250px;
    background: linear-gradient(135deg, #0a0a0c, #1a1a1f);
    animation: fadeInScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.publi-dedo-thanks .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.publi-dedo-thanks i {
    font-size: 1.8rem;
    color: #d4af37;
}

.publi-dedo-thanks h4 {
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.publi-dedo-thanks p {
    color: #bdc3c7;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.publi-dedo-thanks .points-badge {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #000;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
