/* Arkadium88 — cuadro de opinión / feedback (todas las webs) */
.ark-feedback-fab {
    position: fixed;
    bottom: 24px;
    left: 16px;
    z-index: 9996;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(26, 32, 44, 0.95);
    color: #e2e8f0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ark-feedback-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}
.ark-feedback-fab .icon { font-size: 1.1rem; }

.ark-feedback-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.65);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.ark-feedback-overlay.open { display: flex; }

.ark-feedback-dialog {
    width: min(420px, 100%);
    max-height: min(88vh, 640px);
    background: linear-gradient(165deg, #1a202c, #0b0d13);
    border: 1px solid #3d495c;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.ark-feedback-header {
    padding: 16px 18px;
    border-bottom: 1px solid #2d3748;
}
.ark-feedback-header h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--ark-feedback-accent, #00d2ff);
    font-family: 'Outfit', 'Inter', sans-serif;
}
.ark-feedback-header p {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.45;
}

.ark-feedback-sentiment {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px 0;
}
.ark-feedback-chip {
    flex: 1;
    min-width: 90px;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1px solid #3d495c;
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e0;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}
.ark-feedback-chip.on {
    border-color: var(--ark-feedback-accent, #00d2ff);
    background: rgba(0, 210, 255, 0.12);
    color: #e2e8f0;
}

.ark-feedback-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 80px;
    max-height: 220px;
}
.ark-feedback-msg {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.5;
    max-width: 92%;
}
.ark-feedback-msg.user {
    align-self: flex-end;
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.25);
}
.ark-feedback-msg.assistant {
    align-self: flex-start;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #ddd6fe;
}

.ark-feedback-input-wrap {
    padding: 12px 18px 14px;
    border-top: 1px solid #2d3748;
}
.ark-feedback-input-wrap textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #3d495c;
    background: #0d1117;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 0.88rem;
    margin-bottom: 10px;
}
.ark-feedback-input-wrap textarea:focus {
    outline: none;
    border-color: var(--ark-feedback-accent, #00d2ff);
}
.ark-feedback-actions {
    display: flex;
    gap: 8px;
}
.ark-feedback-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}
.ark-feedback-send {
    background: var(--ark-feedback-accent, #00d2ff);
    color: #0b0d13;
}
.ark-feedback-close-btn {
    background: transparent;
    border: 1px solid #3d495c !important;
    color: #94a3b8;
    flex: 0 0 auto;
    padding: 12px 16px !important;
}
.ark-feedback-status {
    font-size: 0.72rem;
    color: #64748b;
    padding: 0 18px 8px;
    min-height: 18px;
}

.ark-feedback-share {
    padding: 12px 18px 16px;
    border-top: 1px solid #2d3748;
    background: rgba(0, 0, 0, 0.2);
}
.ark-feedback-share-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
}
.ark-feedback-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.ark-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #3d495c;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e0;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
    padding: 0;
}
.ark-share-btn svg {
    width: 20px;
    height: 20px;
}
.ark-share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}
.ark-share-btn.whatsapp:hover { background: #25D366; border-color: #25D366; }
.ark-share-btn.facebook:hover { background: #1877F2; border-color: #1877F2; }
.ark-share-btn.x:hover { background: #000; border-color: #555; }
.ark-share-btn.linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.ark-share-btn.telegram:hover { background: #0088cc; border-color: #0088cc; }
.ark-share-btn.pinterest:hover { background: #E60023; border-color: #E60023; }
.ark-share-btn.reddit:hover { background: #FF4500; border-color: #FF4500; }
.ark-share-btn.email:hover { background: #64748b; border-color: #94a3b8; }
.ark-share-btn.copy:hover,
.ark-share-btn.native:hover { background: var(--ark-feedback-accent, #00d2ff); border-color: var(--ark-feedback-accent, #00d2ff); color: #0b0d13; }

@media (max-width: 480px) {
    .ark-feedback-fab { bottom: 96px; left: 12px; }
}
